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


org.cougaar.logistics.plugin.trans.base.SequentialPlannerPlugin
   org.cougaar.logistics.plugin.trans.SequentialGlobalAirPlugin

All known Subclasses:   org.cougaar.logistics.plugin.trans.SequentialGlobalSeaPlugin,
SequentialGlobalAirPlugin
public class SequentialGlobalAirPlugin extends SequentialPlannerPlugin implements GLMOrganizationListener,BlackboardPlugin(Code)
 This class orchestrates the backwards planning that goes on in GLMTrans.
 It makes decisions about how to expand incoming tasks into their appropriate
 forms, e.g CONUSGround-Air-TheaterGround.  It monitors the state of each subtask
 and then notices when a task that is dependent on another has all its dependencies
 met and is ready to be planned.  This task is then planned.
 

Inner Class :abstract protected static class ElementBase extends SequentialScheduleElement
Inner Class :protected static class TheaterPortion extends ElementBase
Inner Class :protected static class AirPortion extends ElementBase
Inner Class :protected static class ConusPortion extends ElementBase

Field Summary
public static  intCONUS_THEATER_DIVIDING_LONGITUDE
    
protected  longbestDateBackoff
    
protected  TranscomDataXMLizedataXMLizer
    
protected transient  AssetUtilglmAssetHelper
    
protected transient  GLMPrepPhraseglmPrepHelper
    
protected  Locatorlocator
    
protected  GLMOrganizationCallbackmyOrgCallback
    
public  intnumTheaterGroundAgents
    
protected  MaproleToOrg
    
 booleanshouldRefreshOrgList
    
 booleanwarnedBefore
    


Method Summary
protected  booleanallNecessaryAssetsReported()
    
protected  booleanallNecessaryAssetsReportedMiddleStep()
    
protected  OrganizationchooseAmongOrgs(List orgs)
     this could be more sophisticated in the future Right now, just round-robin.
public  SchedulecreateEmptyPlan(Task parent)
    
protected  GLMOrganizationCallbackcreateOrganizationCallback()
    
protected  UTILFilterCallbackcreateThreadCallback(UTILGenericListener bufferingThread)
    
public  OrganizationfindOrgForMiddleStep(Task ignored)
    
public  OrganizationfindOrgWithRole(Role role)
     cache role to org mapping

Supports spawning -- choosing among several possible subordinates with role role.

public  UTILAllocategetAllocHelper()
    
public  AssetUtilgetAssetHelper()
    
public  BlackboardServicegetBlackboard()
    
protected  DategetEarlyArrivalMiddleStep(Task task, Date best)
    
public  UTILExpandgetExpandHelper()
    
public  LocatorgetLocator()
    
public  LoggergetLogger()
    
public  intgetNumTheaterGroundAgents()
    
public  EnumerationgetOrganizationAssets()
    
protected  GLMOrganizationCallbackgetOrganizationCallback()
    
protected  ListgetOrgsWithRole(Role role)
    
 LocationgetPOD(Task task)
    
 LocationgetPOENearestToFromLocMiddleStep(Task parentTask)
    
protected  Location[]getPOEandPOD(Task parentTask, Task subtask)
    
 Given a task, find the POE and POD for the task 
 This will be a search among possible POEs and PODs for those that
 are closest to the FROM-TO pair on the parent task.
public  UTILPreferencegetPrefHelper()
    
public  GLMPrepPhrasegetPrepHelper()
    
public  OrganizationgetSelf()
    
public  voidhandleChangedOrganization(Enumeration org_assets)
    
public  voidhandleNewOrganization(Enumeration org_assets)
    
public  voidhandleTask(Task t)
    
public  booleaninterestingAsset(Asset asset)
    
public  booleaninterestingExpandedTask(Task t)
    
public  booleaninterestingTask(Task t)
    
public  voidlocalSetup()
    
protected  voidmakeLocator()
    
 booleanneedsAirOrSea(Task task)
     if the task is coming from CONUS, needs an air leg to get it to theater Also, if the task is coming from an airbase, e.g.
 booleanneedsCONUS(Task task)
    
 booleanneedsTheater(Task task)
     needs a theater leg if TO location is not an airbase OR if FROM loc is in theater (i.e.
protected  voidremovePrepsFromMiddleStep(Task new_task)
    
protected  voidreplanDependingTasks(Task parentTask, long beforeTime)
     re-examine the workflow to see if the any tasks overlap the time of the recently changed allocation, if they do, replan tasks that depend on it.
protected  voidreplanPortion(Expansion exp, SequentialScheduleElement spe)
    
public  voidsetupFilters()
    
 booleanstartsAtPOE(Task task)
    
 booleanstartsInCONUS(Task task)
     sort of cheesy, but anything starting west of 25 degrees Longitude gets an initial ground leg.
 booleanstartsInTheater(Task task)
     sort of cheesy, but anything starting east of 25 degrees Longitude gets a final theater leg.
protected  Stringtype()
    

Field Detail
CONUS_THEATER_DIVIDING_LONGITUDE
public static int CONUS_THEATER_DIVIDING_LONGITUDE(Code)



bestDateBackoff
protected long bestDateBackoff(Code)



dataXMLizer
protected TranscomDataXMLize dataXMLizer(Code)



glmAssetHelper
protected transient AssetUtil glmAssetHelper(Code)



glmPrepHelper
protected transient GLMPrepPhrase glmPrepHelper(Code)



locator
protected Locator locator(Code)



myOrgCallback
protected GLMOrganizationCallback myOrgCallback(Code)



numTheaterGroundAgents
public int numTheaterGroundAgents(Code)



roleToOrg
protected Map roleToOrg(Code)



shouldRefreshOrgList
boolean shouldRefreshOrgList(Code)



warnedBefore
boolean warnedBefore(Code)





Method Detail
allNecessaryAssetsReported
protected boolean allNecessaryAssetsReported()(Code)



allNecessaryAssetsReportedMiddleStep
protected boolean allNecessaryAssetsReportedMiddleStep()(Code)
overridden in sequentialglobalseaplugin



chooseAmongOrgs
protected Organization chooseAmongOrgs(List orgs)(Code)
this could be more sophisticated in the future Right now, just round-robin.



createEmptyPlan
public Schedule createEmptyPlan(Task parent)(Code)



createOrganizationCallback
protected GLMOrganizationCallback createOrganizationCallback()(Code)



createThreadCallback
protected UTILFilterCallback createThreadCallback(UTILGenericListener bufferingThread)(Code)



findOrgForMiddleStep
public Organization findOrgForMiddleStep(Task ignored)(Code)



findOrgWithRole
public Organization findOrgWithRole(Role role)(Code)
cache role to org mapping

Supports spawning -- choosing among several possible subordinates with role role.

Calls chooseAmongOrgs.
See Also:   SequentialGlobalAirPlugin.chooseAmongOrgs




getAllocHelper
public UTILAllocate getAllocHelper()(Code)



getAssetHelper
public AssetUtil getAssetHelper()(Code)



getBlackboard
public BlackboardService getBlackboard()(Code)
implemented for BlackboardPlugin interface -- need public access!



getEarlyArrivalMiddleStep
protected Date getEarlyArrivalMiddleStep(Task task, Date best)(Code)



getExpandHelper
public UTILExpand getExpandHelper()(Code)



getLocator
public Locator getLocator()(Code)



getLogger
public Logger getLogger()(Code)



getNumTheaterGroundAgents
public int getNumTheaterGroundAgents()(Code)



getOrganizationAssets
public Enumeration getOrganizationAssets()(Code)



getOrganizationCallback
protected GLMOrganizationCallback getOrganizationCallback()(Code)



getOrgsWithRole
protected List getOrgsWithRole(Role role)(Code)
thought this might help, but didn't - self org and individual org role schedules do in fact agree



getPOD
Location getPOD(Task task)(Code)
Uses locator to get POD



getPOENearestToFromLocMiddleStep
Location getPOENearestToFromLocMiddleStep(Task parentTask)(Code)



getPOEandPOD
protected Location[] getPOEandPOD(Task parentTask, Task subtask)(Code)
 Given a task, find the POE and POD for the task 
 This will be a search among possible POEs and PODs for those that
 are closest to the FROM-TO pair on the parent task.
 The choice will be affected by the how long it takes
 to get from POE to POD.
 



getPrefHelper
public UTILPreference getPrefHelper()(Code)



getPrepHelper
public GLMPrepPhrase getPrepHelper()(Code)



getSelf
public Organization getSelf()(Code)



handleChangedOrganization
public void handleChangedOrganization(Enumeration org_assets)(Code)



handleNewOrganization
public void handleNewOrganization(Enumeration org_assets)(Code)



handleTask
public void handleTask(Task t)(Code)



interestingAsset
public boolean interestingAsset(Asset asset)(Code)
Implemented for AssetListener interface
only interested in airports/seaports



interestingExpandedTask
public boolean interestingExpandedTask(Task t)(Code)



interestingTask
public boolean interestingTask(Task t)(Code)
Implemented for UTILGenericListener interface Look for tasks that 1) Have TRANSPORT as their verb
Parameters:
  t - Task to check for interest boolean true if task is interesting
See Also:   org.cougaar.lib.callback.UTILGenericListener



localSetup
public void localSetup()(Code)



makeLocator
protected void makeLocator()(Code)
Instantiate the Locator, which adds a LocationCallback



needsAirOrSea
boolean needsAirOrSea(Task task)(Code)
if the task is coming from CONUS, needs an air leg to get it to theater Also, if the task is coming from an airbase, e.g. Rhein Mein in Germany



needsCONUS
boolean needsCONUS(Task task)(Code)



needsTheater
boolean needsTheater(Task task)(Code)
needs a theater leg if TO location is not an airbase OR if FROM loc is in theater (i.e. starts in theater).



removePrepsFromMiddleStep
protected void removePrepsFromMiddleStep(Task new_task)(Code)



replanDependingTasks
protected void replanDependingTasks(Task parentTask, long beforeTime)(Code)
re-examine the workflow to see if the any tasks overlap the time of the recently changed allocation, if they do, replan tasks that depend on it.



replanPortion
protected void replanPortion(Expansion exp, SequentialScheduleElement spe)(Code)



setupFilters
public void setupFilters()(Code)
Organization Listener **



startsAtPOE
boolean startsAtPOE(Task task)(Code)



startsInCONUS
boolean startsInCONUS(Task task)(Code)
sort of cheesy, but anything starting west of 25 degrees Longitude gets an initial ground leg. (The 25 degrees can be set with a system property.)



startsInTheater
boolean startsInTheater(Task task)(Code)
sort of cheesy, but anything starting east of 25 degrees Longitude gets a final theater leg. (The 25 degrees can be set with a system property.)



type
protected String type()(Code)



Fields inherited from org.cougaar.logistics.plugin.trans.base.SequentialPlannerPlugin
protected List delayedTasks(Code)(Java Doc)
protected UTILAllocationCallback myAllocCallback(Code)(Java Doc)
protected UTILAssetCallback myAssetCallback(Code)(Java Doc)
protected UTILExpansionCallback myExpansionCallback(Code)(Java Doc)
protected UTILExpandableTaskCallback myInputTaskCallback(Code)(Java Doc)
protected long waitTime(Code)(Java Doc)

Methods inherited from org.cougaar.logistics.plugin.trans.base.SequentialPlannerPlugin
protected boolean allNecessaryAssetsReported()(Code)(Java Doc)
protected void attachSubtask(Task subtask, SequentialScheduleElement spe)(Code)(Java Doc)
public void changeExpansion(Expansion exp)(Code)(Java Doc)
protected UTILAllocationCallback createAllocCallback()(Code)(Java Doc)
protected UTILAssetCallback createAssetCallback()(Code)(Java Doc)
abstract public Schedule createEmptyPlan(Task parent)(Code)(Java Doc)
protected UTILExpansionCallback createExpansionCallback()(Code)(Java Doc)
protected UTILFilterCallback createThreadCallback(UTILGenericListener bufferingThread)(Code)(Java Doc)
public void enterHash(String key, SequentialScheduleElement obj)(Code)(Java Doc)
protected void execute()(Code)(Java Doc)
protected UTILAllocationCallback getAllocCallback()(Code)(Java Doc)
protected UTILAssetCallback getAssetCallback()(Code)(Java Doc)
final protected Iterator getAssets()(Code)(Java Doc)
public Map getChildToParentUID()(Code)(Java Doc)
protected SequentialScheduleElement getElement(Task child, Task parent, String uid)(Code)(Java Doc)
protected UTILExpansionCallback getExpansionCallback()(Code)(Java Doc)
protected UTILFilterCallback getInputTaskCallback()(Code)(Java Doc)
public Task getParentTask(Task child, String uid)(Code)(Java Doc)
protected List getPrunedTaskList(List tasks)(Code)(Java Doc)
public void handleChangedAssets(Enumeration e)(Code)(Java Doc)
public void handleConstraintViolation(Expansion exp, List violatedConstraints)(Code)(Java Doc)
public void handleFailedExpansion(Expansion exp, List failedSubTaskResults)(Code)(Java Doc)
public void handleIllFormedTask(Task t)(Code)(Java Doc)
public void handleNewAssets(Enumeration e)(Code)(Java Doc)
public void handleRemovedAlloc(Allocation alloc)(Code)(Java Doc)
public boolean handleRescindedAlloc(Allocation alloc)(Code)(Java Doc)
public void handleSuccessfulAlloc(Allocation alloc)(Code)(Java Doc)
public void handleSuccessfulExpansion(Expansion exp, List successfulSubtasks)(Code)(Java Doc)
public void handleTask(Task t)(Code)(Java Doc)
public boolean interestingAsset(Asset a)(Code)(Java Doc)
public boolean interestingExpandedTask(Task t)(Code)(Java Doc)
public boolean interestingNotification(Task t)(Code)(Java Doc)
public boolean interestingTask(Task t)(Code)(Java Doc)
public void localSetup()(Code)(Java Doc)
public boolean needToRescind(Allocation alloc)(Code)(Java Doc)
public void processTasks(List tasks)(Code)(Java Doc)
public PlanningFactory publicGetFactory()(Code)(Java Doc)
public MessageAddress publicGetMessageAddress()(Code)(Java Doc)
public String publicGetMyClusterName()(Code)(Java Doc)
public Plan publicGetRealityPlan()(Code)(Java Doc)
public void publicPublishAdd(Object o)(Code)(Java Doc)
public void publicPublishChange(Object o)(Code)(Java Doc)
public void publishChangedExpansion(Expansion exp)(Code)(Java Doc)
public void publishRemovalOfAllocation(Allocation alloc)(Code)(Java Doc)
protected void replanDependingTasks(Task parentTask, long beforeTime)(Code)(Java Doc)
public void reportChangedExpansion(Expansion exp)(Code)(Java Doc)
public void setupFilters()(Code)(Java Doc)
public void turnCrank(Task task)(Code)(Java Doc)
public boolean wantToChangeExpansion(Expansion exp)(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.