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


java.lang.Object
   org.cougaar.planning.ldm.plan.ClusterObjectFactoryImpl
      org.cougaar.planning.ldm.PlanningFactoryImpl

PlanningFactoryImpl
class PlanningFactoryImpl extends ClusterObjectFactoryImpl implements Factory,PlanningFactory,ClusterObjectFactory(Code)
Factory methods for all LDM objects.



Constructor Summary
public  PlanningFactoryImpl(LDMServesPlugin ldm)
     Constructor.

Method Summary
final public  voidaddAssetFactory(EssentialAssetFactory af)
     register an assetfactory with us so that we can (1) find an asset class from an asset name and (2) can figure out which factory to use for a given asset class.
final public  voidaddPropertyGroupFactory(Object pf)
     register a propertyfactory with us so that short (no package!) property group names may be used in createPropertyGroup(String).
final public  AssetcloneInstance(Asset asset)
     make an evil twin of an instance.
final public  booleancontainsAssetFactory(Object f)
    
final public  booleancontainsPropertyGroupFactory(Object pf)
    
final public  AssetcopyInstance(Asset asset)
     Make a copy of an instance.
public  Objectcreate(String objectname)
    
public  Objectcreate(Class objectclass)
    
final public  AssetcreateAggregate(Asset prototypeAsset, int quantity)
     Create an aggregate asset instance of a prototypical asset.
final public  AssetcreateAggregate(String prototypeAssetTypeId, int quantity)
     Create an aggregate asset instance of a prototypical asset.
final public  AssetcreateAsset(String classname)
     Create a raw Asset instance for use by LDM Plugins which are PrototypeProviders. The asset created will have *no* propertygroups. This *always* creates a prototype of the specific class. most plugins want to call getPrototype(String typeid);
Parameters:
  classname - One of the defined LDM class names.
final public  AssetcreateAsset(Class assetClass)
     Create a raw Asset instance for use by LDM Plugins which are PrototypeProviders.
final public  AssetcreateInstance(Asset prototypeAsset)
     Create an instance of a prototypical asset. This variation does not add an ItemIdentificationCode to the constructed asset instance.
final public  AssetcreateInstance(String prototypeAssetTypeId)
     Create an instance of a prototypical asset. This variation does not add an ItemIdentificationCode to the constructed asset instance.
final public  AssetcreateInstance(Asset prototypeAsset, String uniqueId)
     Create an instance of a prototypical asset, specifying an initial UniqueID for its itemIdentificationPG .
final public  AssetcreateInstance(String prototypeAssetTypeId, String uniqueId)
     Create an instance of a prototypical asset, specifying an initial UniqueID for its itemIdentificationPG.
public  AssetcreateInstance(String prototypeAssetTypeId, int quantity)
     Create an aggregate asset instance of a prototypical asset.
final public  PropertyGroupcreatePropertyGroup(String propertyName)
     create a new property group, given a PropertyGroup name.
final public  PropertyGroupcreatePropertyGroup(Class propertyClass)
     create a new property group, given a PropertyGroupGroup name.
final public  PropertyGroupcreatePropertyGroup(PropertyGroup originalProperty)
    
final public  AssetcreatePrototype(String classname, String typeid)
     convenience routine for creating prototype assets.
final public  AssetcreatePrototype(Class assetclass, String typeid)
     convenience routine for creating prototype assets.
final public  AssetcreatePrototype(String classname, String typeid, String nomen)
     convenience routine for creating prototype assets.
final public  AssetgetPrototype(String aTypeName)
     Find a prototype Asset based on it's typeid description, (e.g.


Constructor Detail
PlanningFactoryImpl
public PlanningFactoryImpl(LDMServesPlugin ldm)(Code)
Constructor. Create a new instance of the Factory.
Parameters:
  ldm - LDM object so that Factory can provide convenience aliases to prototype cache, etc.




Method Detail
addAssetFactory
final public void addAssetFactory(EssentialAssetFactory af)(Code)
register an assetfactory with us so that we can (1) find an asset class from an asset name and (2) can figure out which factory to use for a given asset class.



addPropertyGroupFactory
final public void addPropertyGroupFactory(Object pf)(Code)
register a propertyfactory with us so that short (no package!) property group names may be used in createPropertyGroup(String). Either a PropertyGroupFactory class or an instance of such may be passed in.



cloneInstance
final public Asset cloneInstance(Asset asset)(Code)
make an evil twin of an instance. The result will be a shallow copy of the original (as in copyInstance), with locked PropertyGroups. The copy will have the same UID as the original, so will, in a systems sense actually be the same asset. It could be very bad for multiple clones of an asset to show up in someone's Blackboard. This method should be used when subsetting the capabilities of an asset for some other consumer. Eg. when you want to allow a client to use just one capability of your organization. Note: This method name may change.



containsAssetFactory
final public boolean containsAssetFactory(Object f)(Code)



containsPropertyGroupFactory
final public boolean containsPropertyGroupFactory(Object pf)(Code)
true iff the factory parameter is already registered as apropertygroup factory.



copyInstance
final public Asset copyInstance(Asset asset)(Code)
Make a copy of an instance. The result will be a shallow copy of the original - that is, it will share most PropertyGroups with the original instance. The differences will be that the copy's PGs will be locked and the copy will have a different UID. The copy will truly be a different asset which happens to (initially) have identical propertygroups. This method should be used to create new assets which are very much like another instance. The use of this method is a less-desirable alternative to creating a new instance of your original's prototype and then adding back any extra properties. This is less desirable because it doesn't allow the LDM to participate in the construction of the copy.



create
public Object create(String objectname)(Code)
dummy for create(String) *



create
public Object create(Class objectclass)(Code)
dummy for create(Class) *



createAggregate
final public Asset createAggregate(Asset prototypeAsset, int quantity)(Code)
Create an aggregate asset instance of a prototypical asset.



createAggregate
final public Asset createAggregate(String prototypeAssetTypeId, int quantity)(Code)
Create an aggregate asset instance of a prototypical asset.



createAsset
final public Asset createAsset(String classname)(Code)
Create a raw Asset instance for use by LDM Plugins which are PrototypeProviders. The asset created will have *no* propertygroups. This *always* creates a prototype of the specific class. most plugins want to call getPrototype(String typeid);
Parameters:
  classname - One of the defined LDM class names. This mustbe the actual class name without the package path. For example,"Container" is correct, "org.cougaar.planning.ldm.asset.Container" is not.



createAsset
final public Asset createAsset(Class assetClass)(Code)
Create a raw Asset instance for use by LDM Plugins which are PrototypeProviders. The asset created will have *no* propertygroups. This *always* creates a prototype of the specific class. most plugins want to call getPrototype(String typeid);
Parameters:
  assetClass - an LDM Asset class.



createInstance
final public Asset createInstance(Asset prototypeAsset)(Code)
Create an instance of a prototypical asset. This variation does not add an ItemIdentificationCode to the constructed asset instance. Without itemIDs, multiple instances of a prototype will test as .equals(), and can be confusing if they're added to the logplan. Most users will find #createInstance(Asset, String) more convenient.



createInstance
final public Asset createInstance(String prototypeAssetTypeId)(Code)
Create an instance of a prototypical asset. This variation does not add an ItemIdentificationCode to the constructed asset instance. Without itemIDs, multiple instances of a prototype will test as .equals(), and can be confusing if they're added to the logplan. Most users will find #createInstance(String, String) more convenient.



createInstance
final public Asset createInstance(Asset prototypeAsset, String uniqueId)(Code)
Create an instance of a prototypical asset, specifying an initial UniqueID for its itemIdentificationPG .



createInstance
final public Asset createInstance(String prototypeAssetTypeId, String uniqueId)(Code)
Create an instance of a prototypical asset, specifying an initial UniqueID for its itemIdentificationPG.



createInstance
public Asset createInstance(String prototypeAssetTypeId, int quantity)(Code)
Create an aggregate asset instance of a prototypical asset.



createPropertyGroup
final public PropertyGroup createPropertyGroup(String propertyName)(Code)
create a new property group, given a PropertyGroup name. The name should not have any package prefix and should be the cannonical name (not the implementation class name).



createPropertyGroup
final public PropertyGroup createPropertyGroup(Class propertyClass)(Code)
create a new property group, given a PropertyGroupGroup name. The name should not have any package prefix and should be the cannonical name (not the implementation class name).



createPropertyGroup
final public PropertyGroup createPropertyGroup(PropertyGroup originalProperty)(Code)
a copy of another property group *



createPrototype
final public Asset createPrototype(String classname, String typeid)(Code)
convenience routine for creating prototype assets. does a createAsset followed by setting the TypeIdentification to the specified string.



createPrototype
final public Asset createPrototype(Class assetclass, String typeid)(Code)
convenience routine for creating prototype assets. does a createAsset followed by setting the TypeIdentification to the specified string.



createPrototype
final public Asset createPrototype(String classname, String typeid, String nomen)(Code)
convenience routine for creating prototype assets. does a createAsset followed by setting the TypeIdentification and the nomenclature to the specified string.



getPrototype
final public Asset getPrototype(String aTypeName)(Code)
Find a prototype Asset based on it's typeid description, (e.g. "NSN/1234567890123") either by looking up an existing object or by creating one of the appropriate type. Shorthand for LDMServesPlugin.getPrototype(aTypeName);



Fields inherited from org.cougaar.planning.ldm.plan.ClusterObjectFactoryImpl
final protected LDMServesPlugin ldm(Code)(Java Doc)

Methods inherited from org.cougaar.planning.ldm.plan.ClusterObjectFactoryImpl
public Aggregation createAggregation(Plan aPlan, Task aTask, Composition aComposition, AllocationResult estimatedresult)(Code)(Java Doc)
public Allocation createAllocation(Plan aPlan, Task aTask, Asset anAsset, AllocationResult estimatedresult, Role aRole)(Code)(Java Doc)
public AssetTransfer createAssetTransfer(Plan aPlan, Task aTask, Asset anAsset, Schedule aSchedule, Asset toAsset, AllocationResult estimatedresult, Role aRole)(Code)(Java Doc)
public Disposition createDisposition(Plan aPlan, Task aTask, AllocationResult result)(Code)(Java Doc)
public Expansion createExpansion(Plan aPlan, Task aTask, Workflow aWorkflow, AllocationResult estimatedresult)(Code)(Java Doc)
public Disposition createFailedDisposition(Plan aPlan, Task aTask, AllocationResult failure)(Code)(Java Doc)
public TransferableTransfer createTransferableTransfer(Transferable aTransferable, Asset anAsset)(Code)(Java Doc)
public MessageAddress getMessageAddress()(Code)(Java Doc)
public UID getNextUID()(Code)(Java Doc)
public Plan getRealityPlan()(Code)(Java Doc)
public Verb getVerb(String v)(Code)(Java Doc)
protected Class loadClass(String className) throws ClassNotFoundException(Code)(Java Doc)
public AllocationResult newAVAllocationResult(double rating, boolean success, AspectValue[] aspectvalues)(Code)(Java Doc)
public AllocationResult newAVPhasedAllocationResult(double rating, boolean success, AspectValue[] rollupavs, Collection phasedresults)(Code)(Java Doc)
public NewAlert newAlert()(Code)(Java Doc)
public NewAlertParameter newAlertParameter()(Code)(Java Doc)
public AllocationResult newAllocationResult(double rating, boolean success, int[] aspecttypes, double[] result)(Code)(Java Doc)
public AllocationResult newAllocationResult(double rating, boolean success, AspectValue[] avrs)(Code)(Java Doc)
public NewAssetAssignment newAssetAssignment()(Code)(Java Doc)
public AssetRescind newAssetRescind(Asset asset, Asset rescindeeAsset, Schedule rescindSchedule)(Code)(Java Doc)
public NewAssetVerification newAssetVerification()(Code)(Java Doc)
public NewAssetVerification newAssetVerification(Asset asset, Asset assignee, Schedule schedule)(Code)(Java Doc)
public NewAssignedAvailabilityElement newAssignedAvailabilityElement()(Code)(Java Doc)
public NewAssignedAvailabilityElement newAssignedAvailabilityElement(Asset assignee, long startTime, long endTime)(Code)(Java Doc)
public NewSchedule newAssignedAvailabilitySchedule(Enumeration availElements)(Code)(Java Doc)
public NewSchedule newAssignedAvailabilitySchedule()(Code)(Java Doc)
public NewAssignedRelationshipElement newAssignedRelationshipElement()(Code)(Java Doc)
public NewAssignedRelationshipElement newAssignedRelationshipElement(Asset assetA, Role roleA, Asset assetB, long startTime, long endTime)(Code)(Java Doc)
public NewAssignedRelationshipElement newAssignedRelationshipElement(Relationship relationship)(Code)(Java Doc)
public NewSchedule newAssignedRelationshipSchedule(Enumeration elements)(Code)(Java Doc)
public NewSchedule newAssignedRelationshipSchedule()(Code)(Java Doc)
public BulkEstimate newBulkEstimate(Task atask, List prefsets, double conf)(Code)(Java Doc)
public NewComposition newComposition()(Code)(Java Doc)
public NewConstraint newConstraint()(Code)(Java Doc)
public NewDeletion newDeletion()(Code)(Java Doc)
public NewItineraryElement newItineraryElement()(Code)(Java Doc)
public NewSchedule newLocationRangeSchedule(Enumeration locationRangeElements)(Code)(Java Doc)
public NewLocationRangeScheduleElement newLocationRangeScheduleElement()(Code)(Java Doc)
public NewSchedule newLocationSchedule(Enumeration locationElements)(Code)(Java Doc)
public NewLocationScheduleElement newLocationScheduleElement()(Code)(Java Doc)
public NewMPTask newMPTask()(Code)(Java Doc)
public NewNotification newNotification()(Code)(Java Doc)
public AllocationResult newPhasedAllocationResult(double rating, boolean success, int[] aspecttypes, double[] rollup, Enumeration allresults)(Code)(Java Doc)
public AllocationResult newPhasedAllocationResult(double rating, boolean success, AspectValue[] avs, Enumeration allresults)(Code)(Java Doc)
public AllocationResult newPhasedAllocationResult(double rating, boolean success, AspectValue[] avs, Collection allresults)(Code)(Java Doc)
public Policy newPolicy(String policyType)(Code)(Java Doc)
public Preference newPreference(int aspecttype, ScoringFunction scorefunction)(Code)(Java Doc)
public Preference newPreference(int aspecttype, ScoringFunction scorefunction, double aweight)(Code)(Java Doc)
public NewPrepositionalPhrase newPrepositionalPhrase()(Code)(Java Doc)
public PrepositionalPhrase newPrepositionalPhrase(String s, Object io)(Code)(Java Doc)
public Relationship newRelationship(Role role1, HasRelationships object1, HasRelationships object2, TimeSpan timeSpan)(Code)(Java Doc)
public Relationship newRelationship(Role role1, HasRelationships object1, HasRelationships object2, long startTime, long endTime)(Code)(Java Doc)
public Relationship newRelationship(AssignedRelationshipElement assignedRelationship, Asset asset1, Asset asset2)(Code)(Java Doc)
public NewRelationshipSchedule newRelationshipSchedule(HasRelationships hasRelationships)(Code)(Java Doc)
public NewRelationshipSchedule newRelationshipSchedule(HasRelationships hasRelationships, Collection relationships)(Code)(Java Doc)
public NewReport newReport()(Code)(Java Doc)
public NewSchedule newSchedule(Enumeration scheduleElements)(Code)(Java Doc)
public NewScheduleElement newScheduleElement(Date start, Date end)(Code)(Java Doc)
public NewSchedule newSimpleSchedule(Date start, Date end)(Code)(Java Doc)
public NewSchedule newSimpleSchedule(long startTime, long endTime)(Code)(Java Doc)
public NewTask newTask()(Code)(Java Doc)
public NewTask newTask(UID uid)(Code)(Java Doc)
public TaskRescind newTaskRescind(Task task, MessageAddress destination)(Code)(Java Doc)
public TaskRescind newTaskRescind(UID taskUID, MessageAddress destination)(Code)(Java Doc)
public TaskRescind newTaskRescind(UID taskUID, MessageAddress destination, boolean deleted)(Code)(Java Doc)
public NewTransferableAssignment newTransferableAssignment()(Code)(Java Doc)
public NewTransferableRescind newTransferableRescind()(Code)(Java Doc)
public NewTransferableTransfer newTransferableTransfer()(Code)(Java Doc)
public NewTransferableVerification newTransferableVerification(Transferable t)(Code)(Java Doc)
public NewWorkflow newWorkflow()(Code)(Java Doc)
public NewTask shadowTask(Task t)(Code)(Java Doc)

Methods inherited from java.lang.Object
native protected Object clone() throws CloneNotSupportedException(Code)(Java Doc)
public boolean equals(Object obj)(Code)(Java Doc)
protected void finalize() throws Throwable(Code)(Java Doc)
final native public Class getClass()(Code)(Java Doc)
native public int hashCode()(Code)(Java Doc)
final native public void notify()(Code)(Java Doc)
final native public void notifyAll()(Code)(Java Doc)
public String toString()(Code)(Java Doc)
final native public void wait(long timeout) throws InterruptedException(Code)(Java Doc)
final public void wait(long timeout, int nanos) throws InterruptedException(Code)(Java Doc)
final public void wait() throws InterruptedException(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.