Java Doc for ScheduleImpl.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.util.SynchronizedTimeSpanSet
   org.cougaar.planning.ldm.plan.ScheduleImpl

All known Subclasses:   org.cougaar.planning.ldm.plan.RelationshipScheduleImpl,  org.cougaar.planning.ldm.plan.RoleScheduleImpl,  org.cougaar.glm.ldm.plan.LaborScheduleImpl,  org.cougaar.planning.ldm.plan.AssignedRelationshipScheduleImpl,
ScheduleImpl
public class ScheduleImpl extends SynchronizedTimeSpanSet implements Schedule,NewSchedule(Code)
A Schedule is an encapsulation of spatio-temporal relationships. It has a collection of ScheduleElements.


Field Summary
final protected static  StringEOL
    
protected  ClassscheduleElementType
    
protected  StringscheduleType
    

Constructor Summary
public  ScheduleImpl()
    
public  ScheduleImpl(Collection c)
     Construct a schedule which has the same elements as the specified collection.

Method Summary
public  CollectionUnderlyingContainer()
     Return the Collection.
public synchronized  booleanadd(Object o)
     add object to Schedule.
public synchronized  voidaddScheduleElement(ScheduleElement aScheduleElement)
     add a single schedule element to the already existing Schedule.
public synchronized  voidapplyThunkToScheduleElements(Thunk t)
    
public synchronized  voidclearScheduleElements()
    
public synchronized  Collectionfilter(UnaryPredicate predicate)
    
public synchronized  EnumerationgetAllScheduleElements()
     get an enumeration over a copy of all of the schedule elements of this schedule.
public synchronized  CollectiongetEncapsulatedScheduleElements(Date startDate, Date endDate)
     get a Collection of schedule elements that are fully bound or encapsulated by a date range.
public synchronized  CollectiongetEncapsulatedScheduleElements(long startTime, long endTime)
    
public synchronized  DategetEndDate()
    
public synchronized  DategetEndDate_quiet()
    
public synchronized  longgetEndTime()
    
protected  intgetModCount()
    
public synchronized  CollectiongetOverlappingScheduleElements(Date startDate, Date endDate)
     get a sorted Collection of schedule elements that have dates in the given range of dates.
public synchronized  CollectiongetOverlappingScheduleElements(long startTime, long endTime)
    
public synchronized  ScheduleElementgetScheduleElement(int i)
    
public  ClassgetScheduleElementType()
    
public synchronized  ScheduleElement[]getScheduleElements()
    
public synchronized  CollectiongetScheduleElementsWithDate(Date aDate)
     get a colleciton of schedule elements that include this date.
public synchronized  CollectiongetScheduleElementsWithTime(long aTime)
    
public  StringgetScheduleType()
    
public synchronized  DategetStartDate()
    
public synchronized  DategetStartDate_quiet()
    
public synchronized  longgetStartTime()
    
public  booleanisAppropriateScheduleElement(Object o)
    
public synchronized  Iteratoriterator()
     returns Iterator over a copy of the Schedule.
public synchronized  ListIteratorlistIterator()
     listIterator - Returns an iterator of the elements in this list (in proper sequence).
public  ListIteratorlistIterator(int index)
     listIterator - Returns a list iterator of the elements in this list (in proper sequence), starting at the specified position in the list.
public static  voidmain(String[] args)
    
protected  IteratorprotectedIterator()
    
public synchronized  voidremoveScheduleElement(ScheduleElement aScheduleElement)
    
public synchronized  voidsetScheduleElement(ScheduleElement aScheduleElement)
     set a single schedule element - used for a simple schedule container will be cleared before it is added to ensure that there is only one schedule element.
public synchronized  voidsetScheduleElementType(Class setype)
    
public synchronized  voidsetScheduleElements(Collection collection)
     Set the schedule elements for this schedule.
public synchronized  voidsetScheduleElements(Enumeration someScheduleElements)
    
public synchronized  voidsetScheduleType(String type)
    
public synchronized  ListsubList(int fromIndex, int toIndex)
     returns a subset from a copy of the Schedule.
public  StringtoString()
    

Field Detail
EOL
final protected static String EOL(Code)



scheduleElementType
protected Class scheduleElementType(Code)



scheduleType
protected String scheduleType(Code)




Constructor Detail
ScheduleImpl
public ScheduleImpl()(Code)
Construct an empty schedule *



ScheduleImpl
public ScheduleImpl(Collection c)(Code)
Construct a schedule which has the same elements as the specified collection. If the specified collection needs to be sorted, it will be.




Method Detail
UnderlyingContainer
public Collection UnderlyingContainer()(Code)
Return the Collection. This is now a noop.



add
public synchronized boolean add(Object o)(Code)
add object to Schedule. Verifies that object matches specifed ScheduleElement type.
Parameters:
  o - Object to add to Schedule boolean true if successful, else false



addScheduleElement
public synchronized void addScheduleElement(ScheduleElement aScheduleElement)(Code)
add a single schedule element to the already existing Schedule.
Parameters:
  aScheduleElement -



applyThunkToScheduleElements
public synchronized void applyThunkToScheduleElements(Thunk t)(Code)



clearScheduleElements
public synchronized void clearScheduleElements()(Code)



filter
public synchronized Collection filter(UnaryPredicate predicate)(Code)



getAllScheduleElements
public synchronized Enumeration getAllScheduleElements()(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}



getEncapsulatedScheduleElements
public synchronized Collection getEncapsulatedScheduleElements(Date startDate, Date endDate)(Code)
get a Collection of schedule elements that are fully bound or encapsulated by a date range. OrderedSet



getEncapsulatedScheduleElements
public synchronized Collection getEncapsulatedScheduleElements(long startTime, long endTime)(Code)



getEndDate
public synchronized Date getEndDate()(Code)



getEndDate_quiet
public synchronized Date getEndDate_quiet()(Code)



getEndTime
public synchronized long getEndTime()(Code)



getModCount
protected int getModCount()(Code)



getOverlappingScheduleElements
public synchronized Collection getOverlappingScheduleElements(Date startDate, Date endDate)(Code)
get a sorted Collection of schedule elements that have dates in the given range of dates. Note that these schedule elements may or may not be fully bound by the date range - they may overlap. OrderedSet



getOverlappingScheduleElements
public synchronized Collection getOverlappingScheduleElements(long startTime, long endTime)(Code)



getScheduleElement
public synchronized ScheduleElement getScheduleElement(int i)(Code)



getScheduleElementType
public Class getScheduleElementType()(Code)



getScheduleElements
public synchronized ScheduleElement[] getScheduleElements()(Code)



getScheduleElementsWithDate
public synchronized Collection getScheduleElementsWithDate(Date aDate)(Code)
get a colleciton of schedule elements that include this date. Note that the schedule element can have a start or end date that equals the given date or the date may fall in the time span of a schedule element. OrderedSet



getScheduleElementsWithTime
public synchronized Collection getScheduleElementsWithTime(long aTime)(Code)



getScheduleType
public String getScheduleType()(Code)



getStartDate
public synchronized Date getStartDate()(Code)



getStartDate_quiet
public synchronized Date getStartDate_quiet()(Code)



getStartTime
public synchronized long getStartTime()(Code)



isAppropriateScheduleElement
public boolean isAppropriateScheduleElement(Object o)(Code)



iterator
public synchronized Iterator iterator()(Code)
returns Iterator over a copy of the Schedule. Prints a warning and dumps a stack trace. Use filter() to get an copy which can be iterated over without the warning. Iterator over a copy



listIterator
public synchronized ListIterator listIterator()(Code)
listIterator - Returns an iterator of the elements in this list (in proper sequence). Iterator does not support add(Object o)/set(Object o) ListIterator



listIterator
public ListIterator listIterator(int index)(Code)
listIterator - Returns a list iterator of the elements in this list (in proper sequence), starting at the specified position in the list. Iterator does not support add(Object o)/set(Object o) ListIterator



main
public static void main(String[] args)(Code)



protectedIterator
protected Iterator protectedIterator()(Code)



removeScheduleElement
public synchronized void removeScheduleElement(ScheduleElement aScheduleElement)(Code)



setScheduleElement
public synchronized void setScheduleElement(ScheduleElement aScheduleElement)(Code)
set a single schedule element - used for a simple schedule container will be cleared before it is added to ensure that there is only one schedule element.
Parameters:
  aScheduleElement -



setScheduleElementType
public synchronized void setScheduleElementType(Class setype)(Code)



setScheduleElements
public synchronized void setScheduleElements(Collection collection)(Code)
Set the schedule elements for this schedule. Note this method assumes that you are adding things to an empty container, hence it clears the container of old schedule elements before setting the new ones.



setScheduleElements
public synchronized void setScheduleElements(Enumeration someScheduleElements)(Code)



setScheduleType
public synchronized void setScheduleType(String type)(Code)



subList
public synchronized List subList(int fromIndex, int toIndex)(Code)
returns a subset from a copy of the Schedule. Prints a warning and dumps a stack trace. Subset made from a copy of the Schedule so that the Schedule continues to Synchronization safe. Use filter() to get an copy which can be iterated over without the warning. Iterator over a copy



toString
public String toString()(Code)



Methods inherited from org.cougaar.util.SynchronizedTimeSpanSet
public synchronized boolean add(Object o)(Code)(Java Doc)
public synchronized boolean addAll(Collection objects)(Code)(Java Doc)
public synchronized void clear()(Code)(Java Doc)
public synchronized boolean contains(Object o)(Code)(Java Doc)
public synchronized boolean containsAll(Collection c)(Code)(Java Doc)
public synchronized boolean equals(Object o)(Code)(Java Doc)
public synchronized Collection filter(UnaryPredicate predicate)(Code)(Java Doc)
public synchronized Object get(int index)(Code)(Java Doc)
public synchronized Object getMinimalIntersectingElement(long time)(Code)(Java Doc)
public synchronized int hashCode()(Code)(Java Doc)
public synchronized int indexOf(Object elem)(Code)(Java Doc)
public synchronized Object last()(Code)(Java Doc)
public synchronized int lastIndexOf(Object elem)(Code)(Java Doc)
public synchronized boolean remove(Object o)(Code)(Java Doc)
public synchronized Object remove(int index)(Code)(Java Doc)
public synchronized boolean removeAll(Collection objects)(Code)(Java Doc)
public synchronized boolean retainAll(Collection objects)(Code)(Java Doc)
public synchronized int size()(Code)(Java Doc)
public synchronized Object[] toArray()(Code)(Java Doc)
public synchronized Object[] toArray(Object a)(Code)(Java Doc)
public synchronized String toString()(Code)(Java Doc)
protected boolean unsafeUpdate(Collection c)(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.