| org.cougaar.planning.plugin.legacy.SimplePlugin org.cougaar.mlm.plugin.organization.OrgTPRTDataPlugin
OrgTPRTDataPlugin | public class OrgTPRTDataPlugin extends SimplePlugin (Code) | | This is a modified version of the OrgRTDataPlugin. OrgTPRTDataPlugin
reads time-dependent superior/subordinate relationships from a
-relationships.ini file in place of the information found in the
[Relationships] section in the -prototype-ini.dat file and
puts the times associated with the relationships
in the RFS and RFD tasks in place of the DEFAULT_START_TIME and DEFAULT_END_TIME.
If the -relationships.ini is absent or has the wrong format, it
defaults to the behavior of the OrgRTDataPlugin.
|
Method Summary | |
protected int | FillOrganizationVector(Organization org, int newVal, StreamTokenizer tokens, String relationship) Fills in the organization_vector with arrays of relationship, agentName and capableroles triples. | protected void | ParsePrototypeFile(String agentId, String relationship) | protected void | cloneMe(String sendto, String caproles, String startTimeStr, String endTimeStr) | protected void | createAndCallSetter(Object classInstance, String className, String setterName, String type, Object value) Creates and calls the appropriate "setter" method for the classInstance
which is of type className. | protected Object | createMeasureObject(String className, double quantity, String unitOfMeasure) | protected Organization | createOrganization(String orgStr) | protected NewTask | createRFD(Organization sup, Organization sub, Collection roles, String startTimeStr, String endTimeStr) | protected NewTask | createRFS(Organization client, Organization reportingOrg, Collection roles, String startTimeStr, String endTimeStr) | protected NewTask | createReportTask(Organization reportingOrg, OrganizationAdapter sendto, Collection roles, long startTime, long endTime) | protected void | createSuperior(String sup, String startTimeStr, String endTimeStr) | protected void | execute() | protected int | getMeasureUnit(String measureClass, String unitOfMeasure) | protected Vector | parseRelationshipFile(String agentId, String relationship) | protected long[] | parseTimeStrings(String startTimeStr, String endTimeStr) | protected Object | parseWithCOF(Class cl, String val) | protected void | processOrganizations() Parses the prototype-ini file and in the process sets up
the organization_vector with pairs of "relationship"/"organization"
It then loops through the vector and for each organization
it parses the appropriate prototype-ini file. | protected int | setAssignmentForOrganization(Organization org, String prop, int newVal, StreamTokenizer tokens) | protected int | setPropertyForOrganization(Organization org, String prop, int newVal, StreamTokenizer tokens) | protected void | setupSubscriptions() |
FillOrganizationVector | protected int FillOrganizationVector(Organization org, int newVal, StreamTokenizer tokens, String relationship)(Code) | | Fills in the organization_vector with arrays of relationship, agentName and capableroles triples.
|
ParsePrototypeFile | protected void ParsePrototypeFile(String agentId, String relationship)(Code) | | |
createAndCallSetter | protected void createAndCallSetter(Object classInstance, String className, String setterName, String type, Object value)(Code) | | Creates and calls the appropriate "setter" method for the classInstance
which is of type className.
|
createMeasureObject | protected Object createMeasureObject(String className, double quantity, String unitOfMeasure)(Code) | | Returns a measure object which is an instance of className and has
a quantity of unitOfMeasure
|
execute | protected void execute()(Code) | | |
getMeasureUnit | protected int getMeasureUnit(String measureClass, String unitOfMeasure)(Code) | | Returns the integer value for the appropriate
unitOfMeasure field in the measureClass
|
parseRelationshipFile | protected Vector parseRelationshipFile(String agentId, String relationship)(Code) | | reads time-phased support and superior relationships from a file
|
parseTimeStrings | protected long[] parseTimeStrings(String startTimeStr, String endTimeStr)(Code) | | |
processOrganizations | protected void processOrganizations()(Code) | | Parses the prototype-ini file and in the process sets up
the organization_vector with pairs of "relationship"/"organization"
It then loops through the vector and for each organization
it parses the appropriate prototype-ini file.
|
setAssignmentForOrganization | protected int setAssignmentForOrganization(Organization org, String prop, int newVal, StreamTokenizer tokens)(Code) | | Creates the Position, fills in the slots based on what's in the prototype-ini file
and then sets it for (or adds it to) the organization
|
setPropertyForOrganization | protected int setPropertyForOrganization(Organization org, String prop, int newVal, StreamTokenizer tokens)(Code) | | Creates the property, fills in the slots based on what's in the prototype-ini file
and then sets it for (or adds it to) the organization
|
setupSubscriptions | protected void setupSubscriptions()(Code) | | |
|
|