| org.cougaar.planning.ldm.plan.ScheduleImpl org.cougaar.planning.ldm.plan.RoleScheduleImpl
RoleScheduleImpl | public class RoleScheduleImpl extends ScheduleImpl implements RoleSchedule,NewRoleSchedule(Code) | | A RoleSchedule is a representation of an asset's scheduled
commitments. These commitments(plan elements) are stored
in a collection. RoleSchedules do not travel with an
asset accross agent boundaries, therefore, the roleschedule
is only valid while that asset is assigned to the current agent.
|
RoleScheduleImpl | public RoleScheduleImpl(Asset theasset)(Code) | | Constructor
Parameters: theasset - this roleschedule is attached to |
addAspectValues | public double addAspectValues(Collection elementsToAdd, int aspecttype)(Code) | | Convenience utility that adds the requested aspectvalues of the estimated
allocationresult of each PlanElement (RoleSchedule Element) in the given
orderedset.
If the requested aspecttype is not defined for any of the elements, nothing
will be added to the sum for that particular element.
This utility should be used to add aspecttypes like quantity, cost, etc.
double The sum of the aspectvalues Parameters: elementsToAdd - A set of roleschedule elements (planelements) to add See Also: org.cougaar.planning.ldm.plan.AspectType |
addToRoleSchedule | public synchronized void addToRoleSchedule(PlanElement aPlanElement)(Code) | | Cougaar INTERNAL METHOD - SHOULD NEVER BE CALLED BY A PLUGIN
add a single planelement to the roleschedule container
Parameters: aPlanElement - PlanElement to add |
getAsset | public Asset getAsset()(Code) | | the Asset of this roleschedule. |
getEncapsulatedRoleSchedule | public synchronized Collection getEncapsulatedRoleSchedule(long start, long end)(Code) | | |
getEqualAspectValues | public synchronized Collection getEqualAspectValues(int aspect, double value)(Code) | | |
getOverlappingRoleSchedule | public synchronized Collection getOverlappingRoleSchedule(long start, long end)(Code) | | |
getRoleScheduleElements | public Enumeration getRoleScheduleElements()(Code) | | get an enumeration over a copy of all of the schedule elements of this
schedule.
Note that this is a copy, changes to the underlying schedule will not be
reflected in the Enumeration.
Enumeration{ScheduleElement} |
getRoleScheduleID | public String getRoleScheduleID(int i)(Code) | | |
getRoleScheduleIDs | public synchronized String[] getRoleScheduleIDs()(Code) | | |
removeFromRoleSchedule | public synchronized void removeFromRoleSchedule(PlanElement aPlanElement)(Code) | | Cougaar INTERNAL METHOD - SHOULD NEVER BE CALLED BY A PLUGIN
remove a single planelement from the roleschedule container
Parameters: aPlanElement - PlanElement to remove |
setAvailableSchedule | public void setAvailableSchedule(Schedule avschedule)(Code) | | SHOULD *ONLY* BE CALLED BY THE ASSET CREATOR or THE ASSETTRANSFER LP!
set the availableschedule
Parameters: avschedule - - the schedule that the asset is assigned or available to this agent |
|
|