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


org.cougaar.planning.ldm.plan.ScheduleImpl
   org.cougaar.planning.ldm.plan.RoleScheduleImpl

RoleScheduleImpl
public class RoleScheduleImpl extends ScheduleImpl implements RoleSchedule,NewRoleSchedule(Code)
A RoleSchedule is a representation of an asset's scheduled commitments. These commitments(plan elements) are stored in a collection. RoleSchedules do not travel with an asset accross agent boundaries, therefore, the roleschedule is only valid while that asset is assigned to the current agent.



Constructor Summary
public  RoleScheduleImpl(Asset theasset)
    

Method Summary
public  doubleaddAspectValues(Collection elementsToAdd, int aspecttype)
     Convenience utility that adds the requested aspectvalues of the estimated allocationresult of each PlanElement (RoleSchedule Element) in the given orderedset.
public synchronized  voidaddToRoleSchedule(PlanElement aPlanElement)
    
public  AssetgetAsset()
    
public  SchedulegetAvailableSchedule()
    
public  CollectiongetEncapsulatedRoleSchedule(Date start, Date end)
    
public synchronized  CollectiongetEncapsulatedRoleSchedule(long start, long end)
    
public synchronized  CollectiongetEqualAspectValues(int aspect, double value)
    
public synchronized  CollectiongetMatchingRoleElements(Role aRole)
    
public  CollectiongetOverlappingRoleSchedule(Date start, Date end)
    
public synchronized  CollectiongetOverlappingRoleSchedule(long start, long end)
    
public  EnumerationgetRoleScheduleElements()
     get an enumeration over a copy of all of the schedule elements of this schedule.
public  StringgetRoleScheduleID(int i)
    
public synchronized  String[]getRoleScheduleIDs()
    
public synchronized  voidremoveFromRoleSchedule(PlanElement aPlanElement)
    
public  voidsetAvailableSchedule(Schedule avschedule)
    


Constructor Detail
RoleScheduleImpl
public RoleScheduleImpl(Asset theasset)(Code)
Constructor
Parameters:
  theasset - this roleschedule is attached to




Method Detail
addAspectValues
public double addAspectValues(Collection elementsToAdd, int aspecttype)(Code)
Convenience utility that adds the requested aspectvalues of the estimated allocationresult of each PlanElement (RoleSchedule Element) in the given orderedset. If the requested aspecttype is not defined for any of the elements, nothing will be added to the sum for that particular element. This utility should be used to add aspecttypes like quantity, cost, etc. double The sum of the aspectvalues
Parameters:
  elementsToAdd - A set of roleschedule elements (planelements) to add
See Also:   org.cougaar.planning.ldm.plan.AspectType



addToRoleSchedule
public synchronized void addToRoleSchedule(PlanElement aPlanElement)(Code)
Cougaar INTERNAL METHOD - SHOULD NEVER BE CALLED BY A PLUGIN add a single planelement to the roleschedule container
Parameters:
  aPlanElement - PlanElement to add



getAsset
public Asset getAsset()(Code)
the Asset of this roleschedule.



getAvailableSchedule
public Schedule getAvailableSchedule()(Code)



getEncapsulatedRoleSchedule
public Collection getEncapsulatedRoleSchedule(Date start, Date end)(Code)



getEncapsulatedRoleSchedule
public synchronized Collection getEncapsulatedRoleSchedule(long start, long end)(Code)



getEqualAspectValues
public synchronized Collection getEqualAspectValues(int aspect, double value)(Code)



getMatchingRoleElements
public synchronized Collection getMatchingRoleElements(Role aRole)(Code)



getOverlappingRoleSchedule
public Collection getOverlappingRoleSchedule(Date start, Date end)(Code)



getOverlappingRoleSchedule
public synchronized Collection getOverlappingRoleSchedule(long start, long end)(Code)



getRoleScheduleElements
public Enumeration getRoleScheduleElements()(Code)
get an enumeration over a copy of all of the schedule elements of this schedule. Note that this is a copy, changes to the underlying schedule will not be reflected in the Enumeration. Enumeration{ScheduleElement}



getRoleScheduleID
public String getRoleScheduleID(int i)(Code)



getRoleScheduleIDs
public synchronized String[] getRoleScheduleIDs()(Code)



removeFromRoleSchedule
public synchronized void removeFromRoleSchedule(PlanElement aPlanElement)(Code)
Cougaar INTERNAL METHOD - SHOULD NEVER BE CALLED BY A PLUGIN remove a single planelement from the roleschedule container
Parameters:
  aPlanElement - PlanElement to remove



setAvailableSchedule
public void setAvailableSchedule(Schedule avschedule)(Code)
SHOULD *ONLY* BE CALLED BY THE ASSET CREATOR or THE ASSETTRANSFER LP! set the availableschedule
Parameters:
  avschedule - - the schedule that the asset is assigned or available to this agent



Fields inherited from org.cougaar.planning.ldm.plan.ScheduleImpl
final protected static String EOL(Code)(Java Doc)
protected Class scheduleElementType(Code)(Java Doc)
protected String scheduleType(Code)(Java Doc)

Methods inherited from org.cougaar.planning.ldm.plan.ScheduleImpl
public Collection UnderlyingContainer()(Code)(Java Doc)
public synchronized boolean add(Object o)(Code)(Java Doc)
public synchronized void addScheduleElement(ScheduleElement aScheduleElement)(Code)(Java Doc)
public synchronized void applyThunkToScheduleElements(Thunk t)(Code)(Java Doc)
public synchronized void clearScheduleElements()(Code)(Java Doc)
public synchronized Collection filter(UnaryPredicate predicate)(Code)(Java Doc)
public synchronized Enumeration getAllScheduleElements()(Code)(Java Doc)
public synchronized Collection getEncapsulatedScheduleElements(Date startDate, Date endDate)(Code)(Java Doc)
public synchronized Collection getEncapsulatedScheduleElements(long startTime, long endTime)(Code)(Java Doc)
public synchronized Date getEndDate()(Code)(Java Doc)
public synchronized Date getEndDate_quiet()(Code)(Java Doc)
public synchronized long getEndTime()(Code)(Java Doc)
protected int getModCount()(Code)(Java Doc)
public synchronized Collection getOverlappingScheduleElements(Date startDate, Date endDate)(Code)(Java Doc)
public synchronized Collection getOverlappingScheduleElements(long startTime, long endTime)(Code)(Java Doc)
public synchronized ScheduleElement getScheduleElement(int i)(Code)(Java Doc)
public Class getScheduleElementType()(Code)(Java Doc)
public synchronized ScheduleElement[] getScheduleElements()(Code)(Java Doc)
public synchronized Collection getScheduleElementsWithDate(Date aDate)(Code)(Java Doc)
public synchronized Collection getScheduleElementsWithTime(long aTime)(Code)(Java Doc)
public String getScheduleType()(Code)(Java Doc)
public synchronized Date getStartDate()(Code)(Java Doc)
public synchronized Date getStartDate_quiet()(Code)(Java Doc)
public synchronized long getStartTime()(Code)(Java Doc)
public boolean isAppropriateScheduleElement(Object o)(Code)(Java Doc)
public synchronized Iterator iterator()(Code)(Java Doc)
public synchronized ListIterator listIterator()(Code)(Java Doc)
public ListIterator listIterator(int index)(Code)(Java Doc)
public static void main(String[] args)(Code)(Java Doc)
protected Iterator protectedIterator()(Code)(Java Doc)
public synchronized void removeScheduleElement(ScheduleElement aScheduleElement)(Code)(Java Doc)
public synchronized void setScheduleElement(ScheduleElement aScheduleElement)(Code)(Java Doc)
public synchronized void setScheduleElementType(Class setype)(Code)(Java Doc)
public synchronized void setScheduleElements(Collection collection)(Code)(Java Doc)
public synchronized void setScheduleElements(Enumeration someScheduleElements)(Code)(Java Doc)
public synchronized void setScheduleType(String type)(Code)(Java Doc)
public synchronized List subList(int fromIndex, int toIndex)(Code)(Java Doc)
public String toString()(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.