| org.cougaar.planning.ldm.plan.PlanElementImpl org.cougaar.planning.ldm.plan.AssetTransferImpl
Constructor Summary | |
public | AssetTransferImpl() | public | AssetTransferImpl(Plan p, Task t, Asset a, Schedule s, Asset to, MessageAddress from) Constructor that assumes there is not a good estimated result at this time. | public | AssetTransferImpl(Plan p, Task t, Asset a, Schedule s, Asset to, MessageAddress from, AllocationResult estimatedresult, Role aRole) |
AssetTransferImpl | public AssetTransferImpl()(Code) | | |
AssetTransferImpl | public AssetTransferImpl(Plan p, Task t, Asset a, Schedule s, Asset to, MessageAddress from)(Code) | | Constructor that assumes there is not a good estimated result at this time.
Parameters: p - Parameters: t - Parameters: a - The asset being transferred Parameters: s - The schedule representing the time frame that the asset is being transferred for. Parameters: to - The Agent that will receive this asset for use Parameters: from - The Agent that is provided this asset for use |
AssetTransferImpl | public AssetTransferImpl(Plan p, Task t, Asset a, Schedule s, Asset to, MessageAddress from, AllocationResult estimatedresult, Role aRole)(Code) | | Constructor
Parameters: p - Parameters: t - Parameters: a - The asset being transferred Parameters: s - The schedule representing the time frame that the asset is being transferred for. Parameters: to - The Agent that will receive this asset for use Parameters: from - The Agent that is provided this asset for use Parameters: estimatedresult - Parameters: aRole - |
addingToBlackboard | public void addingToBlackboard(Subscriber s, boolean commit)(Code) | | |
changingInBlackboard | public void changingInBlackboard(Subscriber s, boolean commit)(Code) | | |
checkConflicts | public boolean checkConflicts()(Code) | | |
getAsset | public Asset getAsset()(Code) | | Asset - Asset being assigned |
getAssignee | public Asset getAssignee()(Code) | | Asset - The Asset to which the Asset is being assigned |
getAssignor | public MessageAddress getAssignor()(Code) | | Returns the Agent that the asset is assigned from.
MessageAddress representing the source of the asset |
getEndTime | public long getEndTime()(Code) | | |
getRole | public Role getRole()(Code) | | Return the Role this Asset is performing while transferred.
Role |
getSchedule | public Schedule getSchedule()(Code) | | Returns the Schedule for the "ownership" of the asset being transfered.
Schedule |
getStartTime | public long getStartTime()(Code) | | |
indicateAssetChange | public synchronized void indicateAssetChange()(Code) | | |
isAssetAvailabilityConflict | public boolean isAssetAvailabilityConflict()(Code) | | Checks to see if there is a potential conflict with the asset's
available schedule. ( Asset.getRoleSchedule().getAvailableSchedule() )
Will return true if there is a potential conflict.
boolean |
isAssetChangeIndicated | public synchronized boolean isAssetChangeIndicated()(Code) | | |
isPotentialConflict | public boolean isPotentialConflict()(Code) | | Checks to see if there is a protential conflict with another allocation
to the same asset.
Will return true if there is a potential conflict.
Will return false if there is NOT a potential conflict.
boolean |
postRehydration | public void postRehydration(Logger logger)(Code) | | |
removingFromBlackboard | public void removingFromBlackboard(Subscriber s, boolean commit)(Code) | | |
resetAssetChangeIndicated | public synchronized void resetAssetChangeIndicated()(Code) | | Infrastructure only: this actually should be locked
before calling this method so that we can tell if it
has changed again.
|
setAssetAvailabilityConflict | public void setAssetAvailabilityConflict(boolean availconflict)(Code) | | |
setCheckConflicts | public void setCheckConflicts(boolean check)(Code) | | |
setEstimatedResult | public void setEstimatedResult(AllocationResult estimatedresult)(Code) | | Set the estimated allocation result so that a notification will
propagate up another level.
Parameters: estimatedresult - |
setPotentialConflict | public void setPotentialConflict(boolean conflict)(Code) | | |
|
|