Java Doc for AssetDataPlugin.java in  » Science » Cougaar12_4 » org » cougaar » planning » plugin » asset » 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.planning.plugin.asset 
Source Cross Reference  Class Diagram Java Document (Java Doc) 


org.cougaar.planning.plugin.legacy.SimplePlugin
   org.cougaar.planning.plugin.asset.AssetDataPlugin

All known Subclasses:   org.cougaar.mlm.plugin.organization.OrgDataPlugin,  org.cougaar.mlm.plugin.organization.SimpleOrgDataPlugin,  org.cougaar.planning.plugin.asset.AssetDataParamPlugin,
AssetDataPlugin
public class AssetDataPlugin extends SimplePlugin (Code)
Generic plugin to create a local asset and the Report tasks associated with all the local asset's relationships. 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. Extensions of this class load this information from specific media such as files. Now supports adding additional relationships via plugin parameters. Each parameter represents 1 relationship between the local asset and some 'other' asset. Parameter must completely identify both the other asset and the relationship. Building the other asset requires knowing the asset's message address (ClusterPG), item identification (ItemIdentificationPG), and type identification (TypeIdentificationPG). Building the relationship requires knowing the role and optionally the start and end times. Parameter format - Relationship:MessageAddress=,\ ItemIdentification=,\ TypeIdentification=,\ Role=\ StartTime=\ EndTime= Sample parameter - Relationship:MessageAddress=DISCOM-1-AD,ItemIdentification=DISCOM-1-AD,TypeIdentification=UTC/NBTTT,Role=Superior,StartTime=01/01/2001 12:00 am,EndTime= 01/01/2010 11:59 pm StartTime and EndTime specifications are optional. Will default to getDefaultStartTime()/getDefaultEndTime() if not included


Field Summary
final public static  StringATTRIBUTE_DELIMITER
    
protected static  TrivialTimeSpanETERNITY
    
final public static  StringKEYWORD_DELIMITER
    
final public static  StringRELATIONSHIP_KEY
    
final public static  StringSELF
    
final public static  StringVALUE_DELIMITER
    
protected  StringmyAssetClassName
    
protected  AssetInitializerServicemyAssetInitializerService
    
protected  DateFormatmyDateFormat
    
protected  AssetmyLocalAsset
    
protected  LoggingServicemyLogger
    
protected  MapmyOtherAssets
    
protected  PlanningFactorymyPlanningFactory
    
protected  ListmyRelationships
    
protected static  Collectionpackages
    


Method Summary
protected  voidaddParamRelationship(String param)
    
protected  voidaddParamRelationships()
    
protected  voidaddPropertyToAsset(PropertyGroup pg)
    
protected  voidaddRelationship(String typeId, String itemId, String otherAgentId, String roleName, long start, long end)
    
protected  voidcallSetter(NewPropertyGroup pg, String setterName, String type, Object[] arguments)
     Creates and calls the appropriate "setter" method for the property which is of type className.
protected  ObjectcreateMeasureObject(String className, double quantity, String unitOfMeasure)
    
protected  voidcreateMyLocalAsset(String assetClassName)
    
protected  NewPropertyGroupcreatePropertyGroup(String propertyName)
    
protected  NewTaskcreateReportTask(Asset reportingAsset, Asset sendto, Collection roles, long startTime, long endTime)
    
public  voidexecute()
    
protected  AssetgetAsset(String className, String itemIdentification, String typeIdentification, String agentName)
    
protected  AssetDataReadergetAssetDataReader()
    
public  longgetDefaultEndTime()
    
public  longgetDefaultStartTime()
    
protected  intgetMeasureUnit(String measureClass, String unitOfMeasure)
    
protected  VerbgetReportVerb(Collection roles)
    
protected  StringgetType(String type)
    
protected  voidinitAssets()
    
public  voidload(Object object)
    
public  longparseDate(String dateString)
    
protected  ObjectparseExpr(String type, String arg)
    
protected  ObjectparseWithCOF(Class cl, String val)
    
protected  voidprocessAssets()
    
protected  voidreport(Relationship relationship)
    
public  voidsetAssetInitializerService(AssetInitializerService ais)
    
protected  voidsetLocationSchedule(String latStr, String lonStr)
    
protected  voidsetupSubscriptions()
    

Field Detail
ATTRIBUTE_DELIMITER
final public static String ATTRIBUTE_DELIMITER(Code)



ETERNITY
protected static TrivialTimeSpan ETERNITY(Code)



KEYWORD_DELIMITER
final public static String KEYWORD_DELIMITER(Code)



RELATIONSHIP_KEY
final public static String RELATIONSHIP_KEY(Code)



SELF
final public static String SELF(Code)



VALUE_DELIMITER
final public static String VALUE_DELIMITER(Code)



myAssetClassName
protected String myAssetClassName(Code)



myAssetInitializerService
protected AssetInitializerService myAssetInitializerService(Code)



myDateFormat
protected DateFormat myDateFormat(Code)



myLocalAsset
protected Asset myLocalAsset(Code)



myLogger
protected LoggingService myLogger(Code)



myOtherAssets
protected Map myOtherAssets(Code)



myPlanningFactory
protected PlanningFactory myPlanningFactory(Code)



myRelationships
protected List myRelationships(Code)



packages
protected static Collection packages(Code)





Method Detail
addParamRelationship
protected void addParamRelationship(String param)(Code)



addParamRelationships
protected void addParamRelationships()(Code)



addPropertyToAsset
protected void addPropertyToAsset(PropertyGroup pg)(Code)



addRelationship
protected void addRelationship(String typeId, String itemId, String otherAgentId, String roleName, long start, long end)(Code)



callSetter
protected void callSetter(NewPropertyGroup pg, String setterName, String type, Object[] arguments)(Code)
Creates and calls the appropriate "setter" method for the property 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



createMyLocalAsset
protected void createMyLocalAsset(String assetClassName)(Code)



createPropertyGroup
protected NewPropertyGroup createPropertyGroup(String propertyName) throws Exception(Code)



createReportTask
protected NewTask createReportTask(Asset reportingAsset, Asset sendto, Collection roles, long startTime, long endTime)(Code)



execute
public void execute()(Code)



getAsset
protected Asset getAsset(String className, String itemIdentification, String typeIdentification, String agentName)(Code)



getAssetDataReader
protected AssetDataReader getAssetDataReader()(Code)



getDefaultEndTime
public long getDefaultEndTime()(Code)



getDefaultStartTime
public long getDefaultStartTime()(Code)



getMeasureUnit
protected int getMeasureUnit(String measureClass, String unitOfMeasure)(Code)
Returns the integer value for the appropriate unitOfMeasure field in the measureClass



getReportVerb
protected Verb getReportVerb(Collection roles)(Code)



getType
protected String getType(String type)(Code)



initAssets
protected void initAssets()(Code)



load
public void load(Object object) throws StateModelException(Code)



parseDate
public long parseDate(String dateString) throws ParseException(Code)



parseExpr
protected Object parseExpr(String type, String arg)(Code)



parseWithCOF
protected Object parseWithCOF(Class cl, String val)(Code)



processAssets
protected void processAssets()(Code)
Parses the prototype-ini file and in the process sets up the relationships with pairs of "relationship"/"asset



report
protected void report(Relationship relationship)(Code)



setAssetInitializerService
public void setAssetInitializerService(AssetInitializerService ais)(Code)



setLocationSchedule
protected void setLocationSchedule(String latStr, String lonStr)(Code)



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.