Java Doc for PlanElementImpl.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) 


java.lang.Object
   org.cougaar.core.blackboard.PublishableAdapter
      org.cougaar.planning.ldm.plan.PlanElementImpl

All known Subclasses:   org.cougaar.planning.ldm.plan.DispositionImpl,  org.cougaar.planning.ldm.plan.ExpansionImpl,  org.cougaar.planning.ldm.plan.AllocationImpl,  org.cougaar.planning.ldm.plan.AggregationImpl,  org.cougaar.planning.ldm.plan.AssetTransferImpl,
PlanElementImpl
abstract public class PlanElementImpl extends PublishableAdapter implements PlanElement,NewPlanElement,PEforCollections,ScheduleElement,ActiveSubscriptionObject,ActivePersistenceObject,BeanInfo(Code)
PlanElement Implementation PlanElements represent the association of a Plan, a Task, and a Disposition (where a Disposition is either an Allocation, an Expansion, an Aggregation, or an AssetTransfer). A Disposition (as defined above) are subclasses of PlanElement. PlanElements make a Plan. For Example, a task "move 15 tanks..." with an Allocation(an Asset, estimated penalty and estimated schedule) of 15 HETs could represent a PlanElement.


Field Summary
protected  AllocationResultestAR
    
protected transient  booleannotify
    
protected  AllocationResultobsAR
     There are four allocation results: estAR is set by the plugin often as a copy of the reported rcvAR is computed from downstream results (e.g.
public transient  PropertyChangeSupportpcs
    
protected  AllocationResultrcvAR
    
protected  AllocationResultrepAR
    
protected transient  Tasktask
    

Constructor Summary
public  PlanElementImpl()
    
public  PlanElementImpl(UID uid)
    
public  PlanElementImpl(Plan p, Task t)
    

Method Summary
public  booleanabutSchedule(ScheduleElement se)
    
public  voidaddPropertyChangeListener(PropertyChangeListener pcl)
    
protected  voidaddPropertyDescriptors(Collection c)
    
protected  voidaddToRoleSchedule(Asset asset)
    
public  voidaddingToBlackboard(Subscriber s, boolean commit)
    
public  voidchangingInBlackboard(Subscriber s, boolean commit)
    
public  voidcheckRehydration(Logger logger)
    
protected  voidfixAsset(Asset asset)
    
public  BeanInfo[]getAdditionalBeanInfo()
    
public  AnnotationgetAnnotation()
    
public  BeanDescriptorgetBeanDescriptor()
    
public  ClaimablegetClaimable()
    
public  intgetDefaultEventIndex()
    
public  intgetDefaultPropertyIndex()
    
public  DategetEndDate()
     End Date is millisecond-precision, exclusive time of end.
public  longgetEndTime()
    
public  AllocationResultgetEstimatedResult()
     Returns the estimated allocation result that is related to performing the Task.
public  EventSetDescriptor[]getEventSetDescriptors()
    
public  java.awt.ImagegetIcon(int iconKind)
    
public  MethodDescriptor[]getMethodDescriptors()
    
public  AllocationResultgetObservedResult()
     Returns the observed allocation result.
public  PlangetPlan()
    
public  PropertyDescriptor[]getPropertyDescriptors()
    
public  AllocationResultgetReceivedResult()
     Returns the received allocation result.
public  AllocationResultgetReportedResult()
     Returns the reported allocation result.
public  DategetStartDate()
     Start date is a millisecond-precision, inclusive time of start.
public  longgetStartTime()
    
public  TaskgetTask()
     This returns the Task of the PlanElement.
public  UIDgetUID()
    
protected static  Stringhc(Object o)
    
public  booleanincluded(Date date)
     is the Date on or after the start time and strictly before the end time? boolean whether the date is included in this time interval.
public  booleanincluded(long time)
    
public  booleanoverlapSchedule(ScheduleElement se)
    
public  voidpostRehydration(Logger logger)
    
protected  voidremoveFromRoleSchedule(Asset asset)
    
public  voidremovePropertyChangeListener(PropertyChangeListener pcl)
    
public  voidremovingFromBlackboard(Subscriber s, boolean commit)
    
public  voidresetTask(Task t)
     Sets the Task of the PlanElement.
public  voidsetAnnotation(Annotation pluginAnnotation)
    
public  voidsetEstimatedResult(AllocationResult estimatedresult)
     Set the estimated allocation result so that a notification will propagate up another level.
public  voidsetNotification(boolean v)
    
public  voidsetObservedResult(AllocationResult obsres)
     Set or update the observed AllocationResult.
public  voidsetPlan(Plan p)
    
public  voidsetReceivedResult(AllocationResult rcvres)
     CALLED BY INFRASTRUCTURE ONLY - AFTER RESULTS HAVE BEEN COMPUTED ACROSS TASKS.
public  voidsetReportedResult(AllocationResult repres)
    
public  voidsetTask(Task t)
     This sets the Task of the PlanElement.
public  voidsetUID(UID uid)
    
public  booleanshouldDoNotification()
    
public  booleanskipUnpublishedPersist(Logger logger)
    
public  StringtoString()
    

Field Detail
estAR
protected AllocationResult estAR(Code)



notify
protected transient boolean notify(Code)



obsAR
protected AllocationResult obsAR(Code)
There are four allocation results: estAR is set by the plugin often as a copy of the reported rcvAR is computed from downstream results (e.g. by workflow aggregators) obsAR is set from observed events (event monitor) repAR is the merge of obsAR and rcvAR and is lazily evaluated



pcs
public transient PropertyChangeSupport pcs(Code)



rcvAR
protected AllocationResult rcvAR(Code)



repAR
protected AllocationResult repAR(Code)



task
protected transient Task task(Code)




Constructor Detail
PlanElementImpl
public PlanElementImpl()(Code)



PlanElementImpl
public PlanElementImpl(UID uid)(Code)



PlanElementImpl
public PlanElementImpl(Plan p, Task t)(Code)




Method Detail
abutSchedule
public boolean abutSchedule(ScheduleElement se)(Code)
Does the scheduleElement meet/abut the schedule?



addPropertyChangeListener
public void addPropertyChangeListener(PropertyChangeListener pcl)(Code)



addPropertyDescriptors
protected void addPropertyDescriptors(Collection c) throws IntrospectionException(Code)



addToRoleSchedule
protected void addToRoleSchedule(Asset asset)(Code)



addingToBlackboard
public void addingToBlackboard(Subscriber s, boolean commit)(Code)



changingInBlackboard
public void changingInBlackboard(Subscriber s, boolean commit)(Code)



checkRehydration
public void checkRehydration(Logger logger)(Code)



fixAsset
protected void fixAsset(Asset asset)(Code)
reset asset role-schedules post-rehydration *



getAdditionalBeanInfo
public BeanInfo[] getAdditionalBeanInfo()(Code)



getAnnotation
public Annotation getAnnotation()(Code)



getBeanDescriptor
public BeanDescriptor getBeanDescriptor()(Code)



getClaimable
public Claimable getClaimable()(Code)



getDefaultEventIndex
public int getDefaultEventIndex()(Code)



getDefaultPropertyIndex
public int getDefaultPropertyIndex()(Code)



getEndDate
public Date getEndDate()(Code)
End Date is millisecond-precision, exclusive time of end. Date End time for the task



getEndTime
public long getEndTime()(Code)



getEstimatedResult
public AllocationResult getEstimatedResult()(Code)
Returns the estimated allocation result that is related to performing the Task. AllocationResult



getEventSetDescriptors
public EventSetDescriptor[] getEventSetDescriptors()(Code)



getIcon
public java.awt.Image getIcon(int iconKind)(Code)



getMethodDescriptors
public MethodDescriptor[] getMethodDescriptors()(Code)



getObservedResult
public AllocationResult getObservedResult()(Code)
Returns the observed allocation result. AllocationResult



getPlan
public Plan getPlan()(Code)
Plan the plan this planelement is a part of



getPropertyDescriptors
public PropertyDescriptor[] getPropertyDescriptors()(Code)



getReceivedResult
public AllocationResult getReceivedResult()(Code)
Returns the received allocation result. AllocationResult



getReportedResult
public AllocationResult getReportedResult()(Code)
Returns the reported allocation result. AllocationResult



getStartDate
public Date getStartDate()(Code)
Start date is a millisecond-precision, inclusive time of start. Date Start time for the task



getStartTime
public long getStartTime()(Code)



getTask
public Task getTask()(Code)
This returns the Task of the PlanElement. Task



getUID
public UID getUID()(Code)



hc
protected static String hc(Object o)(Code)



included
public boolean included(Date date)(Code)
is the Date on or after the start time and strictly before the end time? boolean whether the date is included in this time interval.



included
public boolean included(long time)(Code)
is the time on or after the start time and strictly before the end time? boolean whether the time is included in this time interval



overlapSchedule
public boolean overlapSchedule(ScheduleElement se)(Code)
Does the scheduleelement overlap (not merely abut) the schedule? boolean whether schedules overlap



postRehydration
public void postRehydration(Logger logger)(Code)



removeFromRoleSchedule
protected void removeFromRoleSchedule(Asset asset)(Code)



removePropertyChangeListener
public void removePropertyChangeListener(PropertyChangeListener pcl)(Code)



removingFromBlackboard
public void removingFromBlackboard(Subscriber s, boolean commit)(Code)



resetTask
public void resetTask(Task t)(Code)
Sets the Task of the PlanElement. This method differs from setTask in that it is expected that the PlanElement is already attached to a Task so the Task and PlanElement are rewired accordingly.
Parameters:
  t - - The new Task that the PlanElement is referencing.



setAnnotation
public void setAnnotation(Annotation pluginAnnotation)(Code)



setEstimatedResult
public void setEstimatedResult(AllocationResult estimatedresult)(Code)
Set the estimated allocation result so that a notification will propagate up another level.
Parameters:
  estimatedresult -



setNotification
public void setNotification(boolean v)(Code)



setObservedResult
public void setObservedResult(AllocationResult obsres)(Code)
Set or update the observed AllocationResult. Should be called only by the event monitor.
Parameters:
  obsres - the new observed AllocationResult object associated with this pe



setPlan
public void setPlan(Plan p)(Code)

Parameters:
  p - - set the plan this planelement is a part of



setReceivedResult
public void setReceivedResult(AllocationResult rcvres)(Code)
CALLED BY INFRASTRUCTURE ONLY - AFTER RESULTS HAVE BEEN COMPUTED ACROSS TASKS.
Parameters:
  rcvres - the new received AllocationResult object associated with this pe



setReportedResult
public void setReportedResult(AllocationResult repres)(Code)



setTask
public void setTask(Task t)(Code)
This sets the Task of the PlanElement. Also sets the planelement of the task
Parameters:
  t -



setUID
public void setUID(UID uid)(Code)



shouldDoNotification
public boolean shouldDoNotification()(Code)



skipUnpublishedPersist
public boolean skipUnpublishedPersist(Logger logger)(Code)



toString
public String toString()(Code)



Methods inherited from org.cougaar.core.blackboard.PublishableAdapter
public boolean isPersistable()(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.