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


java.lang.Object
   org.cougaar.planning.plugin.util.PluginHelper
      org.cougaar.glm.plugins.TaskUtils

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


Field Summary
final public static  longMSEC_PER_DAY
    
final public static  NumberFormatdemandFormat_
    


Method Summary
public static  NewTaskaddPrepositionalPhrase(NewTask task, PrepositionalPhrase pp)
    
public static  StringarDesc(AllocationResult ar)
    
public static  booleancomparePreferences(Task a, Task b)
     Compare the preferences of two tasks return true if the tasks have preferences for the same aspect types and if all corresponding AspectValues are nearly equal.
public static  PreferencecreateDemandMultiplierPreference(PlanningFactory rf, double mult)
    
public static  PreferencecreateDemandRatePreference(PlanningFactory rf, Rate rate)
    
public static  doublegetDailyQuantity(Task task)
    
public static  doublegetDailyQuantity(Rate r)
    
public static  NumberFormatgetDemandFormat()
    
public static  StringgetDirectObjectID(Task task)
    
public static  doublegetMultiplier(Task task)
    
public static  StringgetNameOfConsumedItem(Task task)
    
public static  intgetNumericPriority(Task task)
    
public static  doublegetPreference(Task t, int aspect_type)
     return the preference of the given aspect type.
public static  StringgetPriority(Task task)
    
public static  doublegetQuantity(Task task)
    
public static  doublegetQuantity(AllocationResult ar)
    
public static  RategetRate(Task task)
    
public static  DategetRefillDate(Task refillTask)
    
public static  doublegetRefillQuantity(Task refillTask)
    
public static  longgetRefillTime(Task refillTask)
    
public static  StringgetTaskItemName(Task task)
    
public static  doublegetWithdrawQuantity(Task withdrawTask)
    
public static  booleanisDirectObjectOfType(Task t, String type)
    
public static  booleanisMyInventoryProjection(Task task, String myOrgName)
    
public static  booleanisMyRefillTask(Task task, String myOrgName)
    
public static  booleanisProjection(Task t)
    
public static  booleanisSupply(Task t)
    
public static  booleanisTaskOfType(Task t, String type)
    
public static  booleanisTaskPrepOfType(Task t, String type)
    
public static  StringprojectionDesc(Task task)
    
public static  voidreplacePrepositionalPhrase(NewTask task, PrepositionalPhrase pp)
    
public static  StringshortTaskDesc(Task task)
    
public static  StringtaskDesc(Task task)
    

Field Detail
MSEC_PER_DAY
final public static long MSEC_PER_DAY(Code)
number of msec per day



demandFormat_
final public static NumberFormat demandFormat_(Code)





Method Detail
addPrepositionalPhrase
public static NewTask addPrepositionalPhrase(NewTask task, PrepositionalPhrase pp)(Code)



arDesc
public static String arDesc(AllocationResult ar)(Code)



comparePreferences
public static boolean comparePreferences(Task a, Task b)(Code)
Compare the preferences of two tasks return true if the tasks have preferences for the same aspect types and if all corresponding AspectValues are nearly equal. This needs to be fixed to be more efficient.



createDemandMultiplierPreference
public static Preference createDemandMultiplierPreference(PlanningFactory rf, double mult)(Code)



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



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



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



getDemandFormat
public static NumberFormat getDemandFormat()(Code)



getDirectObjectID
public static String getDirectObjectID(Task task)(Code)



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



getNameOfConsumedItem
public static String getNameOfConsumedItem(Task task)(Code)



getNumericPriority
public static int getNumericPriority(Task task)(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.



getPriority
public static String getPriority(Task task)(Code)



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



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



getRate
public static Rate getRate(Task task)(Code)



getRefillDate
public static Date getRefillDate(Task refillTask)(Code)



getRefillQuantity
public static double getRefillQuantity(Task refillTask)(Code)



getRefillTime
public static long getRefillTime(Task refillTask)(Code)



getTaskItemName
public static String getTaskItemName(Task task)(Code)



getWithdrawQuantity
public static double getWithdrawQuantity(Task withdrawTask)(Code)



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



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



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



isProjection
public static boolean isProjection(Task t)(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'.



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



projectionDesc
public static String projectionDesc(Task task)(Code)



replacePrepositionalPhrase
public static void replacePrepositionalPhrase(NewTask task, PrepositionalPhrase pp)(Code)



shortTaskDesc
public static String shortTaskDesc(Task task)(Code)



taskDesc
public static 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.