| org.cougaar.planning.plugin.legacy.SimplePlugin org.cougaar.mlm.plugin.organization.OrgRTDataPlugin
OrgRTDataPlugin | public class OrgRTDataPlugin extends SimplePlugin (Code) | | Plugin to create a local asset and the Report tasks
associated with all the local asset's relationships based on an
initialization file - -prototype-ini.dat
Local asset must have ClusterPG and
RelationshipPG, Presumption is that the 'other' assets in all the
relationships have both Cluster and Relationship PGs.
Currently assumes that each Agent has exactly 1 local asset.
|
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 filename, String agentId, String relationship) | protected void | cloneMe(String sendto, String caproles) | 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) | protected NewTask | createRFS(Organization client, Organization reportingOrg, Collection roles) | protected NewTask | createReportTask(Organization reportingOrg, OrganizationAdapter sendto, Collection roles, long startTime, long endTime) | protected void | createSuperior(String sup) | protected boolean | didSpawn() | public void | execute() | protected int | getMeasureUnit(String measureClass, String unitOfMeasure) | public void | load() | 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.
|
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
|
createSuperior | protected void createSuperior(String sup)(Code) | | |
didSpawn | protected boolean didSpawn()(Code) | | |
execute | public void execute()(Code) | | |
getMeasureUnit | protected int getMeasureUnit(String measureClass, String unitOfMeasure)(Code) | | Returns the integer value for the appropriate
unitOfMeasure field in the measureClass
|
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) | | |
|
|