Class CoupledRequestFlexLoad
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
com.dna.jopt.member.unit.pnd.load.flexload.CoupledRequestFlexLoad
-
Field Summary
Fields -
Constructor Summary
ConstructorsConstructorDescriptionCoupledRequestFlexLoad(String loadId, int intialLoadValue) CoupledRequestFlexLoad(String loadId, int initialLoadValue, boolean isFuzzyVisit) CoupledRequestFlexLoad(String loadId, int initialLoadValue, boolean initialIsRequest, boolean isFuzzyVisit, int coupledLoadValue, Map<String, List<String>> couplingMap) -
Method Summary
Modifier and TypeMethodDescriptionvoidaddCoupledDepot(String nodeId, String coupledDepotId) copy()Copies the load into a new Object.getCoupledDepot(String nodeId) intbooleanMerge two loads.voidsetCoupledDepotMap(Map<String, List<String>> couplingMap) voidsetCoupledLoadValue(int coupledLoadValue) 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 RequestFlexLoad
isRequestMethods 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
-
CoupledRequestFlexLoad
-
CoupledRequestFlexLoad
-
CoupledRequestFlexLoad
-
-
Method Details
-
setCoupledDepotMap
-
getRandomKey
-
getCoupledDepot
-
hasCoupledLoad
public boolean hasCoupledLoad() -
addCoupledDepot
-
getCoupledLoadValue
public int getCoupledLoadValue() -
setCoupledLoadValue
public void setCoupledLoadValue(int coupledLoadValue) -
copy
-
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 classRequestFlexLoad- Parameters:
cap- the capacceptedLoadValue- the accepted load valueresourceArrivalTime- the resource arrival time- Returns:
- the i load
-
merge
-
typeName
-