Java Doc for OrgTPRTDataPlugin.java in  » Science » Cougaar12_4 » org » cougaar » mlm » plugin » organization » Java Source Code / Java DocumentationJava Source Code and Java Documentation

Java Source Code / Java Documentation
1. 6.0 JDK Core
2. 6.0 JDK Modules
3. 6.0 JDK Modules com.sun
4. 6.0 JDK Modules com.sun.java
5. 6.0 JDK Modules sun
6. 6.0 JDK Platform
7. Ajax
8. Apache Harmony Java SE
9. Aspect oriented
10. Authentication Authorization
11. Blogger System
12. Build
13. Byte Code
14. Cache
15. Chart
16. Chat
17. Code Analyzer
18. Collaboration
19. Content Management System
20. Database Client
21. Database DBMS
22. Database JDBC Connection Pool
23. Database ORM
24. Development
25. EJB Server geronimo
26. EJB Server GlassFish
27. EJB Server JBoss 4.2.1
28. EJB Server resin 3.1.5
29. ERP CRM Financial
30. ESB
31. Forum
32. GIS
33. Graphic Library
34. Groupware
35. HTML Parser
36. IDE
37. IDE Eclipse
38. IDE Netbeans
39. Installer
40. Internationalization Localization
41. Inversion of Control
42. Issue Tracking
43. J2EE
44. JBoss
45. JMS
46. JMX
47. Library
48. Mail Clients
49. Net
50. Parser
51. PDF
52. Portal
53. Profiler
54. Project Management
55. Report
56. RSS RDF
57. Rule Engine
58. Science
59. Scripting
60. Search Engine
61. Security
62. Sevlet Container
63. Source Control
64. Swing Library
65. Template Engine
66. Test Coverage
67. Testing
68. UML
69. Web Crawler
70. Web Framework
71. Web Mail
72. Web Server
73. Web Services
74. Web Services apache cxf 2.0.1
75. Web Services AXIS2
76. Wiki Engine
77. Workflow Engines
78. XML
79. XML UI
Java
Java Tutorial
Java Open Source
Jar File Download
Java Articles
Java Products
Java by API
Photoshop Tutorials
Maya Tutorials
Flash Tutorials
3ds-Max Tutorials
Illustrator Tutorials
GIMP Tutorials
C# / C Sharp
C# / CSharp Tutorial
C# / CSharp Open Source
ASP.Net
ASP.NET Tutorial
JavaScript DHTML
JavaScript Tutorial
JavaScript Reference
HTML / CSS
HTML CSS Reference
C / ANSI-C
C Tutorial
C++
C++ Tutorial
Ruby
PHP
Python
Python Tutorial
Python Open Source
SQL Server / T-SQL
SQL Server / T-SQL Tutorial
Oracle PL / SQL
Oracle PL/SQL Tutorial
PostgreSQL
SQL / MySQL
MySQL Tutorial
VB.Net
VB.Net Tutorial
Flash / Flex / ActionScript
VBA / Excel / Access / Word
XML
XML Tutorial
Microsoft Office PowerPoint 2007 Tutorial
Microsoft Office Excel 2007 Tutorial
Microsoft Office Word 2007 Tutorial
Java Source Code / Java Documentation » Science » Cougaar12_4 » org.cougaar.mlm.plugin.organization 
Source Cross Reference  Class Diagram Java Document (Java Doc) 


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.

Inner Class :public static class HomeLocationScheduleElement extends TaggedLocationScheduleElement

Field Summary
final protected static  Collectionpackages
    


Method Summary
protected  intFillOrganizationVector(Organization org, int newVal, StreamTokenizer tokens, String relationship)
     Fills in the organization_vector with arrays of relationship, agentName and capableroles triples.
protected  voidParsePrototypeFile(String agentId, String relationship)
    
protected  voidcloneMe(String sendto, String caproles, String startTimeStr, String endTimeStr)
    
protected  voidcreateAndCallSetter(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  ObjectcreateMeasureObject(String className, double quantity, String unitOfMeasure)
    
protected  OrganizationcreateOrganization(String orgStr)
    
protected  NewTaskcreateRFD(Organization sup, Organization sub, Collection roles, String startTimeStr, String endTimeStr)
    
protected  NewTaskcreateRFS(Organization client, Organization reportingOrg, Collection roles, String startTimeStr, String endTimeStr)
    
protected  NewTaskcreateReportTask(Organization reportingOrg, OrganizationAdapter sendto, Collection roles, long startTime, long endTime)
    
protected  voidcreateSuperior(String sup, String startTimeStr, String endTimeStr)
    
protected  voidexecute()
    
protected  intgetMeasureUnit(String measureClass, String unitOfMeasure)
    
protected  VectorparseRelationshipFile(String agentId, String relationship)
    
protected  long[]parseTimeStrings(String startTimeStr, String endTimeStr)
    
protected  ObjectparseWithCOF(Class cl, String val)
    
protected  voidprocessOrganizations()
     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  intsetAssignmentForOrganization(Organization org, String prop, int newVal, StreamTokenizer tokens)
    
protected  intsetPropertyForOrganization(Organization org, String prop, int newVal, StreamTokenizer tokens)
    
protected  voidsetupSubscriptions()
    

Field Detail
packages
final protected static Collection packages(Code)





Method Detail
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)



cloneMe
protected void cloneMe(String sendto, String caproles, String startTimeStr, String endTimeStr)(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



createOrganization
protected Organization createOrganization(String orgStr)(Code)



createRFD
protected NewTask createRFD(Organization sup, Organization sub, Collection roles, String startTimeStr, String endTimeStr)(Code)



createRFS
protected NewTask createRFS(Organization client, Organization reportingOrg, Collection roles, String startTimeStr, String endTimeStr)(Code)



createReportTask
protected NewTask createReportTask(Organization reportingOrg, OrganizationAdapter sendto, Collection roles, long startTime, long endTime)(Code)



createSuperior
protected void createSuperior(String sup, String startTimeStr, String endTimeStr)(Code)



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)



parseWithCOF
protected Object parseWithCOF(Class cl, String val)(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)



Methods inherited from org.cougaar.planning.plugin.legacy.SimplePlugin
public AllocationResult createEstimatedAllocationResult(Task t, double confidenceRating, boolean success)(Code)(Java Doc)
public void createPublishExpansion(Task parent)(Code)(Java Doc)
final protected void cycle()(Code)(Java Doc)
abstract protected void execute()(Code)(Java Doc)
final public void initialize() throws StateModelException(Code)(Java Doc)
public void load(Object object) throws StateModelException(Code)(Java Doc)
final protected void prerun()(Code)(Java Doc)
final public void resume() throws StateModelException(Code)(Java Doc)
protected void setExecutionDelay(long minDelay, long maxDelay)(Code)(Java Doc)
abstract protected void setupSubscriptions()(Code)(Java Doc)
final public void start() throws StateModelException(Code)(Java Doc)
final public void stop() throws StateModelException(Code)(Java Doc)
final public void suspend() throws StateModelException(Code)(Java Doc)

www.java2java.com | Contact Us
Copyright 2009 - 12 Demo Source and Support. All rights reserved.
All other trademarks are property of their respective owners.