Class RequestFlexLoad
java.lang.Object
com.dna.jopt.member.unit.pnd.load.AbstractLoad
com.dna.jopt.member.unit.pnd.load.flexload.MixedFlexLoad
com.dna.jopt.member.unit.pnd.load.flexload.RequestFlexLoad
- Direct Known Subclasses:
CoupledRequestFlexLoad
-
Field Summary
Fields -
Constructor Summary
ConstructorsConstructorDescriptionRequestFlexLoad(String loadId) RequestFlexLoad(String loadId, int intialLoadValue) RequestFlexLoad(String loadId, int initialLoadValue, boolean isFuzzyVisit) RequestFlexLoad(String loadId, int initialLoadValue, boolean initialIsRequest, boolean isFuzzyVisit) -
Method Summary
Modifier and TypeMethodDescriptioncopy()Copies the load into a new Object.booleanChecks if is request.Merge two loads.typeName()Gets the type name.visited(ILoadCapacity cap, double acceptedLoadValue, long resourceArrivalTime) After aILoadCapacityvisited a load, the load gets the information, what load value was accepted by the capacity and when the capcity arrived at the load.Methods inherited from class MixedFlexLoad
getAdjustedLoadValue, isFlexible, toStringMethods inherited from class AbstractLoad
getId, getLoadValue, getPriority, getSearchIndex, isFuzzyVisit, isTimed, setLoad, setSearchIndexMethods inherited from class Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface ILoad
getLoadValue, getPriority, isFuzzyVisit, isTimed, setLoadMethods inherited from interface IPNDItem
getId, getSearchIndex, setSearchIndex
-
Field Details
-
TYPE_NAME
- See Also:
-
-
Constructor Details
-
RequestFlexLoad
public RequestFlexLoad(String loadId, int initialLoadValue, boolean initialIsRequest, boolean isFuzzyVisit) -
RequestFlexLoad
-
RequestFlexLoad
-
RequestFlexLoad
-
-
Method Details
-
merge
-
visited
Description copied from interface:ILoadAfter aILoadCapacityvisited a load, the load gets the information, what load value was accepted by the capacity and when the capcity arrived at the load.- Specified by:
visitedin interfaceILoad- Overrides:
visitedin classMixedFlexLoad- Parameters:
cap- the capacceptedLoadValue- the accepted load valueresourceArrivalTime- the resource arrival time- Returns:
- the i load
-
isRequest
public boolean isRequest()Description copied from interface:ILoadChecks if is request. A request means the load wants to get goods from aILoadCapacity. If request is false, the load automatically supplies goods to a capacity.- Specified by:
isRequestin interfaceILoad- Overrides:
isRequestin classAbstractLoad- Returns:
- true, if is request
-
typeName
-
copy
-