| org.cougaar.planning.ldm.plan.Task
All known Subclasses: org.cougaar.planning.ldm.plan.TaskImpl,
Inner Class :interface TaskChangeReport extends ChangeReport | |
Inner Class :class PreferenceChangeReport implements TaskChangeReport | |
Inner Class :class PrepositionChangeReport implements TaskChangeReport | |
beforeCommitment | boolean beforeCommitment(Date currentdate)(Code) | | Check to see if the current time is before the Commitment date.
Will return true if we have not reached the commitment date.
Will return true if the commitment date is undefined.
Will return false if we have passed the commitment date.
Parameters: currentdate - The current date. |
getCommitmentDate | Date getCommitmentDate()(Code) | | WARNING: This method may return null if the commitment date is undefined.
The task commitment date of a task represents the date past which the planning
module will warn if the task is changed or removed. Commitment dates in the planning
domain are used to note the last possible date that a task could be changed before
the supplier has committed resources to fill or commit the task. E.g. If a supplier
has an order and ship lead time of 3 days, then the task's commitment date should be
atleast 3 days before the desired delivery date (usually represented with an end
date preference).
Date The Commitment date of this task. |
getContext | Context getContext()(Code) | | Get the problem Context (if any) for this task.
See Also: Context |
getDirectObject | Asset getDirectObject()(Code) | | Returns the Asset (or AssetGroup) that is being acted upon
by the Task. For example, in the task "fuel
vehicle 14 ..." the direct object is "vehicle 14".
the Direct Object of the task. |
getParentTaskUID | UID getParentTaskUID()(Code) | | Returns the UID of the base or parent task of
a given task, where the given task is
an expansion of the base task. The
parent task could be "move vehicles
from point a to point b ...". An
expanded task could be "fuel vehicles ...".
UID basetask = fueltask.getParentTaskUID();
UID of the Task that is the "parenttask" |
getPlan | Plan getPlan()(Code) | | Plan.RealityPlan -- this slot is unused / deprecated |
getPlanElement | PlanElement getPlanElement()(Code) | | Returns PlanElement that this Task is associated with.
Can be used to discern between expandable and non-expandable
Tasks. If Task has no PlanElement associated with it, will
return null.
|
getPreference | Preference getPreference(int aspect_type)(Code) | | return the preference for the given aspect type
will return null if there is not a preference defined for this aspect type
Parameters: aspect_type - The Aspect referenced by the preference |
getPreferences | Enumeration getPreferences()(Code) | | get the preferences on this task.
Enumeration{Preference} |
getPreferredValue | double getPreferredValue(int aspect_type)(Code) | | return the preferred value for a given aspect type
from the defined preference (and scoring function)
will return Double.NaN if there is not a preference defined for this aspect type
Parameters: aspect_type - The Aspect referenced by the preference |
getPrepositionalPhrase | PrepositionalPhrase getPrepositionalPhrase(String preposition)(Code) | | Return the first PrepositionalPhrase found with the
specified Preposition. Returns null if not found.
Parameters: preposition - One of the strings named in org.cougaar.planning.ldm.plan.Preposition. |
getPrepositionalPhrases | Enumeration getPrepositionalPhrases()(Code) | | Returns the prepositional phrase(s) of the Task.
A PrepositionalPhrase object contains a String
representation of the preposition (from, to, with, etc.)
and an object representing the indirect object. The indirect
object will be an Asset which can represent an Asset, AssetGroup or Location.
For example, in the task
"UnitA requisitions commodityB from UnitC"...
the PrepositionalPhrase is "from UnitC".
An enumeration of PrepositionalPhrases See Also: Preposition |
getPriority | byte getPriority()(Code) | | Get the priority of this task.
Note that this should only be used when there are competing tasks
from the SAME customer.
The priority of this task See Also: org.cougaar.planning.ldm.plan.Priority |
getVerb | Verb getVerb()(Code) | | The getVerb method returns the verb of the Task.
For example, in the Task "fuel vehicles...", the
Verb is the object represented by "fuel".
Verb mytaskverb = fueltask.getVerb();
the Verb of the Task. |
getWorkflow | Workflow getWorkflow()(Code) | | All Tasks are members of
a Workflow. The tasks that are expansions
of a basetask are placed in one workflow.
For example, the fueltask will be a member
of a workflow that contains all of the tasks
and constraints needed to complete the basetask.
Workflow myworkflow = fueltask.getWorkflow();
Workflow Returns the Workflow that the task is a member of. |
isDeleted | boolean isDeleted()(Code) | | Get the deleted status of this task.
|
|
|