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


java.lang.Object
   org.cougaar.planning.plugin.util.PluginHelper
      org.cougaar.logistics.plugin.inventory.TaskUtils

TaskUtils
public class TaskUtils extends PluginHelper implements Serializable(Code)
Provides convenience methods.



Constructor Summary
public  TaskUtils(UtilsProvider provider)
    
public  TaskUtils(Logger aLogger)
    

Method Summary
public  doublecalculateDemand(Task t, long minStart, long maxEnd)
    
public  doublecalculateFilled(Task t, long minStart, long maxEnd)
    
public  voidchangeDatePrefs(NewTask task, long start, long end, InventoryManager inventoryPlugin, LogisticsInventoryPG invPG)
    
public  TaskchangeTask(Task prev_task, Task new_task)
     Change the prev task's preferences to the new tasks preferences if they are different.
Parameters:
  prev_task - previously published task.
Parameters:
  new_task - already defined to have the same taskKey as task a.
public  doubleconvertResultsToDailyRate(Task task, double demandRate)
    
public  NewTaskcopySupplyTask(Task origTask, long start, long end, LogisticsInventoryPG invPG, InventoryManager inventoryPlugin)
    
public static  PreferencecreateDemandRatePreference(PlanningFactory rf, Rate rate)
    
public  PreferencecreateTimePreference(long bestDay, long early, long end, int aspectType, MessageAddress clusterId, PlanningFactory planningFactory, LogisticsInventoryPG thePG)
     Create a Time Preference for a Refill Task or a Demand Task Use a Piecewise Linear Scoring Function.
public static  RategetARAspectRate(AllocationResult ar)
    
public  doublegetActualDemand(Task task, long startTime, long endTime, long minStart)
    
public static  ObjectgetCustomer(Task task)
    
public  CollectiongetDailyQuantities(Task task)
    
public  doublegetDailyQuantity(Task task)
    
public  doublegetDailyQuantity(Task task, long time)
    
public  doublegetDailyQuantity(Task task, long start, long end)
    
public static  doublegetDailyQuantity(Rate r)
    
public  doublegetDouble(Scalar measure)
     Given a Scalar, return a double value representing Gallons for Volume, Eaches for Count and Short Tons for Mass.
public  doublegetGrantedQuantity(Task t)
    
public static  doublegetPreference(Task t, int aspect_type)
     return the preference of the given aspect type.
public static  doublegetQuantity(Task task)
    
public static  doublegetQuantity(AllocationResult ar)
    
public  doublegetQuantity(Task task, AllocationResult ar)
    
public  doublegetQuantity(Task task, AllocationResult ar, long time_spanned)
    
public  RategetRate(Task task)
    
public  RategetRate(Task task, long time)
    
public  RategetRate(Task task, long start, long end)
    
public  CollectiongetReportedDailyQuantities(Task task)
    
public  CollectiongetReportedDailyQuantities(Task task, AllocationResult ar)
    
public  longgetReportedEndTime(Task task)
    
public  longgetReportedStartTime(Task task)
    
public  StringgetTaskItemName(Task task)
    
public  TimeUtilsgetTimeUtils()
    
public  doublegetTotalQuantity(Task task)
    
public  doublegetTotalQuantity(Task task, long startTime, long endTime)
    
public  doublegetTotalQuantity(Task task, double demandRate, long startTime, long endTime)
    
public static  CollectiongetUnallocatedTasks(Collection tasks, Verb verb)
    
public  booleanisActualShortfall(Task t, boolean includeTemps)
    
public  booleanisDirectObjectOfType(Task t, String type)
    
public  booleanisFlowRate(Task task)
    
public static  booleanisInternal(Task task)
    
public  booleanisLevel2(Task t)
    
public  booleanisMyDemandForecastProjection(Task task, String orgName)
    
public static  booleanisMyInventoryProjection(Task task, String myOrgName)
    
public static  booleanisMyNonRefillTask(Task task, String myOrgName)
    
public static  booleanisMyRefillTask(Task task, String myOrgName)
    
public  booleanisProjFailure(Task t, long minStart, boolean includeTemps)
    
public static  booleanisProjection(Task t)
    
public  booleanisReadyForTransport(Task task)
    
public static  booleanisSupply(Task t)
    
public static  booleanisTaskOfType(Task t, String type)
    
public static  booleanisTaskOfTypeString(Task t, String type)
    
public  SchedulenewObjectSchedule(Collection tasks)
    
public  CollectionsplitProjection(Task task, List howToSplit, InventoryManager invPlugin)
    
public  StringtaskDesc(Task task)
    


Constructor Detail
TaskUtils
public TaskUtils(UtilsProvider provider)(Code)



TaskUtils
public TaskUtils(Logger aLogger)(Code)




Method Detail
calculateDemand
public double calculateDemand(Task t, long minStart, long maxEnd)(Code)



calculateFilled
public double calculateFilled(Task t, long minStart, long maxEnd)(Code)



changeDatePrefs
public void changeDatePrefs(NewTask task, long start, long end, InventoryManager inventoryPlugin, LogisticsInventoryPG invPG)(Code)



changeTask
public Task changeTask(Task prev_task, Task new_task)(Code)
Change the prev task's preferences to the new tasks preferences if they are different.
Parameters:
  prev_task - previously published task.
Parameters:
  new_task - already defined to have the same taskKey as task a. null if the two tasks are the same,or returns task a modified for a publishChange.



convertResultsToDailyRate
public double convertResultsToDailyRate(Task task, double demandRate)(Code)



copySupplyTask
public NewTask copySupplyTask(Task origTask, long start, long end, LogisticsInventoryPG invPG, InventoryManager inventoryPlugin)(Code)
copies a Supply task from another to split it*



createDemandRatePreference
public static Preference createDemandRatePreference(PlanningFactory rf, Rate rate)(Code)



createTimePreference
public Preference createTimePreference(long bestDay, long early, long end, int aspectType, MessageAddress clusterId, PlanningFactory planningFactory, LogisticsInventoryPG thePG)(Code)
Create a Time Preference for a Refill Task or a Demand Task Use a Piecewise Linear Scoring Function. For details see the IM SDD.
Parameters:
  bestDay - The time you want this preference to represent
Parameters:
  early - The earliest time this preference can have
Parameters:
  end - The last time this preference can have (such as Oplan end time)
Parameters:
  aspectType - The AspectType of the preference- should be start_time or end_time
Parameters:
  clusterId - Agent cluster ID
Parameters:
  planningFactory - Planning factory from plugin
Parameters:
  thePG - InventoryPG for the item maintained by a refill task Preference The new Time Preference



getARAspectRate
public static Rate getARAspectRate(AllocationResult ar)(Code)



getActualDemand
public double getActualDemand(Task task, long startTime, long endTime, long minStart)(Code)



getCustomer
public static Object getCustomer(Task task)(Code)

Parameters:
  task - Value of the FOR Preposition if available, else null



getDailyQuantities
public Collection getDailyQuantities(Task task)(Code)



getDailyQuantity
public double getDailyQuantity(Task task)(Code)



getDailyQuantity
public double getDailyQuantity(Task task, long time)(Code)



getDailyQuantity
public double getDailyQuantity(Task task, long start, long end)(Code)



getDailyQuantity
public static double getDailyQuantity(Rate r)(Code)



getDouble
public double getDouble(Scalar measure)(Code)
Given a Scalar, return a double value representing Gallons for Volume, Eaches for Count and Short Tons for Mass.



getGrantedQuantity
public double getGrantedQuantity(Task t)(Code)



getPreference
public static double getPreference(Task t, int aspect_type)(Code)
return the preference of the given aspect type. Returns null if the task does not have the given aspect.



getQuantity
public static double getQuantity(Task task)(Code)



getQuantity
public static double getQuantity(AllocationResult ar)(Code)



getQuantity
public double getQuantity(Task task, AllocationResult ar)(Code)



getQuantity
public double getQuantity(Task task, AllocationResult ar, long time_spanned)(Code)



getRate
public Rate getRate(Task task)(Code)



getRate
public Rate getRate(Task task, long time)(Code)



getRate
public Rate getRate(Task task, long start, long end)(Code)



getReportedDailyQuantities
public Collection getReportedDailyQuantities(Task task)(Code)



getReportedDailyQuantities
public Collection getReportedDailyQuantities(Task task, AllocationResult ar)(Code)



getReportedEndTime
public long getReportedEndTime(Task task)(Code)



getReportedStartTime
public long getReportedStartTime(Task task)(Code)



getTaskItemName
public String getTaskItemName(Task task)(Code)



getTimeUtils
public TimeUtils getTimeUtils()(Code)



getTotalQuantity
public double getTotalQuantity(Task task)(Code)



getTotalQuantity
public double getTotalQuantity(Task task, long startTime, long endTime)(Code)



getTotalQuantity
public double getTotalQuantity(Task task, double demandRate, long startTime, long endTime)(Code)



getUnallocatedTasks
public static Collection getUnallocatedTasks(Collection tasks, Verb verb)(Code)



isActualShortfall
public boolean isActualShortfall(Task t, boolean includeTemps)(Code)



isDirectObjectOfType
public boolean isDirectObjectOfType(Task t, String type)(Code)



isFlowRate
public boolean isFlowRate(Task task)(Code)



isInternal
public static boolean isInternal(Task task)(Code)

Parameters:
  task - the task true if the task has an packer INTERNAL prep phrase



isLevel2
public boolean isLevel2(Task t)(Code)



isMyDemandForecastProjection
public boolean isMyDemandForecastProjection(Task task, String orgName)(Code)



isMyInventoryProjection
public static boolean isMyInventoryProjection(Task task, String myOrgName)(Code)



isMyNonRefillTask
public static boolean isMyNonRefillTask(Task task, String myOrgName)(Code)



isMyRefillTask
public static boolean isMyRefillTask(Task task, String myOrgName)(Code)



isProjFailure
public boolean isProjFailure(Task t, long minStart, boolean includeTemps)(Code)



isProjection
public static boolean isProjection(Task t)(Code)



isReadyForTransport
public boolean isReadyForTransport(Task task)(Code)



isSupply
public static boolean isSupply(Task t)(Code)



isTaskOfType
public static boolean isTaskOfType(Task t, String type)(Code)

Parameters:
  t - the task
Parameters:
  type - type identification string true if the task's OFTYPE preposition's indirect object isan asset with nomeclature equal to 'type'.



isTaskOfTypeString
public static boolean isTaskOfTypeString(Task t, String type)(Code)

Parameters:
  t - the task
Parameters:
  type - type identification string true if the task's OFTYPE preposition's indirect object isan string with nomeclature equal to 'type'.



newObjectSchedule
public Schedule newObjectSchedule(Collection tasks)(Code)



splitProjection
public Collection splitProjection(Task task, List howToSplit, InventoryManager invPlugin)(Code)



taskDesc
public String taskDesc(Task task)(Code)



Methods inherited from org.cougaar.planning.plugin.util.PluginHelper
public static boolean checkChangeReports(Set reports, Class cls)(Code)(Java Doc)
public static AllocationResult createEstimatedAllocationResult(Task t, PlanningFactory ldmf, double confrating, boolean success)(Code)(Java Doc)
public static double getARAspectValue(AllocationResult ar, int type)(Code)(Java Doc)
public static long getEndTime(Task task)(Code)(Java Doc)
public static double getEndTime(AllocationResult ar)(Code)(Java Doc)
public static AspectValue getPreferenceBest(Task task, int aspect_type)(Code)(Java Doc)
public static double getPreferenceBestValue(Task task, int aspect_type)(Code)(Java Doc)
public static long getStartTime(Task task)(Code)(Java Doc)
public static double getStartTime(AllocationResult ar)(Code)(Java Doc)
public static NewTask makeSubtask(Task task, PlanningFactory ldmf)(Code)(Java Doc)
public static void publishAddExpansion(BlackboardService sub, Expansion exp)(Code)(Java Doc)
public static void removeSubTask(BlackboardService sub, Task task)(Code)(Java Doc)
public static void updateAllocationResult(IncrementalSubscription sub)(Code)(Java Doc)
public static boolean updatePlanElement(PlanElement pe)(Code)(Java Doc)
public static Aggregation wireAggregation(Task parent, NewMPTask mpTask, PlanningFactory ldmf, AllocationResult ar)(Code)(Java Doc)
public static Collection wireAggregation(Collection parents, NewMPTask mpTask, PlanningFactory ldmf, double confrating, boolean success)(Code)(Java Doc)
public static Expansion wireExpansion(Task parent, NewTask subTask, PlanningFactory ldmf)(Code)(Java Doc)
public static Expansion wireExpansion(Task parent, NewTask subTask, PlanningFactory ldmf, AllocationResult ar)(Code)(Java Doc)
public static void wireExpansion(Expansion exp, NewTask subTask)(Code)(Java Doc)
public static Expansion wireExpansion(Task parentTask, Vector subTasks, PlanningFactory ldmf)(Code)(Java Doc)
public static Expansion wireExpansion(Task parentTask, Vector subTasks, PlanningFactory ldmf, AllocationResult ar)(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.