Java Doc for TransportExpanderPlugin.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.lib.filter.UTILExpanderPluginAdapter
   org.cougaar.logistics.plugin.trans.TransportExpanderPlugin

All known Subclasses:   org.cougaar.logistics.plugin.trans.SeaTransportExpanderPlugin,
TransportExpanderPlugin
public class TransportExpanderPlugin extends UTILExpanderPluginAdapter implements UTILAssetListener(Code)
Breaks up incoming tasks into aggregates that are no bigger than the largest carrier asset. Carrier could be truck, ship, or plane.


Field Summary
final protected static  doubleCAP_FUDGE
    
protected  booleandidSetCapacity
    
protected  GLMPrepPhraseglmPrepHelper
    
protected  LDMServesPluginldmProtoCache
    
protected  doublemaxContainCapacity
    
protected  doublemaxPassengerCapacity
    
protected  UTILAssetCallbackmyAssetCallback
    
 intuniqueID
    


Method Summary
protected  voidadjustDimensions(GLMAsset asset, PhysicalPG originalPhysicalPG, double tons)
    
public  voidattachPG(Asset asset, PropertyGroup thisPG)
    
protected  voidcalculateCommonMaxContain(double[] maxcontain)
    
protected  voidexpandAggregates(Task task, Vector subtasks)
    
 expands aggregate assets into truck-sized chunks, putting the 
 subtasks into subtasks 
 Rounds the item wt to the same precision as vishnu uses so no disaggreements
 about how much a truck can hold.
protected  voidexpandLowFi(Task task, Vector subtasks)
    
protected  voidexpandLowFiAsset(Task task, Vector subtasks)
    
 expands aggregate assets into truck-sized chunks, putting the 
 subtasks into subtasks 
 Rounds the item wt to the same precision as vishnu uses so no disaggreements
 about how much a truck can hold.
public  double[]getAssetMaxContain(GLMAsset glmasset)
    
public  intgetAssetQuantity(AggregateAsset aggAsset)
    
protected  ForUnitPGgetForUnitPG(Asset asset)
    
public  doublegetItemContribution(GLMAsset itemAsset)
    
protected  ListgetPrunedTaskList(List tasks)
    
public  VectorgetSubtasks(Task task)
     Breaks up task aggregates into truck sized chunks if bigger than biggest truck.
protected  AssetgetTruckSizedAsset(Asset itemProto, PhysicalPG originalPhysicalPG, String itemID, double contrib)
    
protected  StringgetUniqueID(Asset boxProto)
    
public  voidhandleChangedAssets(Enumeration newAssets)
    
public  voidhandleNewAssets(Enumeration newAssets)
    
 Place to handle new assets.
public  booleaninterestingAsset(Asset a)
    
public  booleaninterestingTask(Task task)
     State that we are interested in all transport tasks
Parameters:
  task - the task to test.
protected  booleanisSelfPropelled(Task t, Asset directObject)
    
public  voidlocalSetup()
    
 TaskmakeTask(Task parentTask, Asset directObject, ForUnitPG unitPG)
     Makes subtask of parent task, with given direct object.
public  voidprocessTasks(java.util.List tasks)
    
public  voidresetCapacities()
    
protected  voidsetItemPG(Asset newAsset, Asset boxProto)
    
public  voidsetupFilters()
    
 The idea is to add subscriptions (via the filterCallback), and when 
 they change, to have the callback react to the change, and tell 
 the listener (many times the plugin) what to do.
 voidtest()
    

Field Detail
CAP_FUDGE
final protected static double CAP_FUDGE(Code)



didSetCapacity
protected boolean didSetCapacity(Code)



glmPrepHelper
protected GLMPrepPhrase glmPrepHelper(Code)



ldmProtoCache
protected LDMServesPlugin ldmProtoCache(Code)



maxContainCapacity
protected double maxContainCapacity(Code)



maxPassengerCapacity
protected double maxPassengerCapacity(Code)



myAssetCallback
protected UTILAssetCallback myAssetCallback(Code)



uniqueID
int uniqueID(Code)





Method Detail
adjustDimensions
protected void adjustDimensions(GLMAsset asset, PhysicalPG originalPhysicalPG, double tons)(Code)



attachPG
public void attachPG(Asset asset, PropertyGroup thisPG)(Code)
Since FOR preps are lost a custom property is added to determine unit



calculateCommonMaxContain
protected void calculateCommonMaxContain(double[] maxcontain)(Code)
calculates the max contain -- smallest of all seen



expandAggregates
protected void expandAggregates(Task task, Vector subtasks)(Code)
 expands aggregate assets into truck-sized chunks, putting the 
 subtasks into subtasks 
 Rounds the item wt to the same precision as vishnu uses so no disaggreements
 about how much a truck can hold.
 



expandLowFi
protected void expandLowFi(Task task, Vector subtasks)(Code)



expandLowFiAsset
protected void expandLowFiAsset(Task task, Vector subtasks)(Code)
 expands aggregate assets into truck-sized chunks, putting the 
 subtasks into subtasks 
 Rounds the item wt to the same precision as vishnu uses so no disaggreements
 about how much a truck can hold.
 



getAssetMaxContain
public double[] getAssetMaxContain(GLMAsset glmasset)(Code)



getAssetQuantity
public int getAssetQuantity(AggregateAsset aggAsset)(Code)
gets the quantity of items in this task Sub classes may want to override this
Parameters:
  aggAsset - asset that has quantity quantity in int



getForUnitPG
protected ForUnitPG getForUnitPG(Asset asset)(Code)



getItemContribution
public double getItemContribution(GLMAsset itemAsset)(Code)
gets the contribution each individual item makes to consuming the capacity of the transport vehicle Sub classes may want to override this
Parameters:
  itemAsset - -- the asset of the direct object of the task double of the contribution in TONS



getPrunedTaskList
protected List getPrunedTaskList(List tasks)(Code)



getSubtasks
public Vector getSubtasks(Task task)(Code)
Breaks up task aggregates into truck sized chunks if bigger than biggest truck. This is defined by a parameter : maxTruckContainWeight
Parameters:
  task - the task to expand a vector with the exapnded subtask



getTruckSizedAsset
protected Asset getTruckSizedAsset(Asset itemProto, PhysicalPG originalPhysicalPG, String itemID, double contrib)(Code)



getUniqueID
protected String getUniqueID(Asset boxProto)(Code)



handleChangedAssets
public void handleChangedAssets(Enumeration newAssets)(Code)



handleNewAssets
public void handleNewAssets(Enumeration newAssets)(Code)
 Place to handle new assets.
 Looks for least common denominator
 

Parameters:
  newAssets - new assets found in the container



interestingAsset
public boolean interestingAsset(Asset a)(Code)
 Implemented for UTILAssetListener
 OVERRIDE to see which assets you
 think are interesting
 

Parameters:
  a - asset to check for notification boolean true if asset is interesting



interestingTask
public boolean interestingTask(Task task)(Code)
State that we are interested in all transport tasks
Parameters:
  task - the task to test. true if the tasks verb is TRANSPORT, false otherwise



isSelfPropelled
protected boolean isSelfPropelled(Task t, Asset directObject)(Code)



localSetup
public void localSetup()(Code)



makeTask
Task makeTask(Task parentTask, Asset directObject, ForUnitPG unitPG)(Code)
Makes subtask of parent task, with given direct object. removes OFTYPE prep, since it's not needed by scheduler



processTasks
public void processTasks(java.util.List tasks)(Code)



resetCapacities
public void resetCapacities()(Code)



setItemPG
protected void setItemPG(Asset newAsset, Asset boxProto)(Code)



setupFilters
public void setupFilters()(Code)
 The idea is to add subscriptions (via the filterCallback), and when 
 they change, to have the callback react to the change, and tell 
 the listener (many times the plugin) what to do.
 Override and call super to add new filters, or override 
 createXXXCallback to change callback behaviour.
 



test
void test()(Code)



Fields inherited from org.cougaar.lib.filter.UTILExpanderPluginAdapter
protected UTILExpand expand(Code)(Java Doc)
protected UTILExpandableTaskCallback myInputTaskCallback(Code)(Java Doc)
protected boolean wantConfidence(Code)(Java Doc)

Methods inherited from org.cougaar.lib.filter.UTILExpanderPluginAdapter
public void changeExpansion(Expansion exp)(Code)(Java Doc)
protected UTILFilterCallback createExpansionCallback()(Code)(Java Doc)
protected UTILFilterCallback createThreadCallback(UTILGenericListener bufferingThread)(Code)(Java Doc)
protected UTILFilterCallback getInputTaskCallback()(Code)(Java Doc)
public Vector getSubtasks(Task t)(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 handleRemovedTask(Task t)(Code)(Java Doc)
public void handleSuccessfulExpansion(Expansion exp, List successfulSubtasks)(Code)(Java Doc)
public void handleTask(Task t)(Code)(Java Doc)
public boolean interestingExpandedTask(Task t)(Code)(Java Doc)
public boolean interestingTask(Task t)(Code)(Java Doc)
public void localSetup()(Code)(Java Doc)
public void processTasks(List tasks)(Code)(Java Doc)
public void publishChangedExpansion(Expansion exp)(Code)(Java Doc)
public void reportChangedExpansion(Expansion exp)(Code)(Java Doc)
public void setupFilters()(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.