Class TimedLoad
java.lang.Object
com.dna.jopt.member.unit.pnd.load.AbstractLoad
com.dna.jopt.member.unit.pnd.load.timed.TimedLoad
- All Implemented Interfaces:
IPNDItem,ILoad,ITimedLoad
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptioncopy()Copies the load into a new Object.doublegetAdjustedLoadValue(ILoadCapacity simpleLoadCapacity) Gets the adjusted load value.longGets the maximal desired time for transportation in millis.booleanisTimed()Checks if is timed.Merge two loads.toString()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 com.dna.jopt.member.unit.pnd.load.AbstractLoad
getId, getLoadValue, getPriority, getSearchIndex, isFlexible, isFuzzyVisit, isRequest, setLoad, setSearchIndexMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface com.dna.jopt.member.unit.pnd.load.ILoad
getLoadValue, getPriority, isFlexible, isFuzzyVisit, isRequest, setLoadMethods inherited from interface com.dna.jopt.member.unit.pnd.IPNDItem
getId, getSearchIndex, setSearchIndex
-
Field Details
-
TYPE_NAME
- See Also:
-
-
Constructor Details
-
TimedLoad
public TimedLoad(String loadId, int loadValue, int priority, long maxTransportTimeMillis, boolean isRequest, boolean isFuzzyVisit) -
TimedLoad
-
-
Method Details
-
merge
Description copied from interface:ILoadMerge two loads. -
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. -
isTimed
public boolean isTimed()Description copied from interface:ILoadChecks if is timed. The goods of a timed load desirably only stays a limited time within a ResourceDepot. If the time between pickup and delivery of timed load is longer that a predefined maximal value, the Optimizer will assign penalty cost.- Specified by:
isTimedin interfaceILoad- Overrides:
isTimedin classAbstractLoad- Returns:
- true, if is timed
-
getAdjustedLoadValue
Description copied from interface:ILoadGets the adjusted load value. For Loads likeUnloadAllLoadthe load adjust to the loadValue a capacity is holding. Meaning, to unload all goods from a capacity, the load to be visited simply requests all goods from a capacity.- Specified by:
getAdjustedLoadValuein interfaceILoad- Parameters:
simpleLoadCapacity- the simple load capacity- Returns:
- the adjusted load value
-
typeName
Description copied from interface:IPNDItemGets the type name. -
toString
-
copy
Description copied from interface:ILoadCopies the load into a new Object. -
getMaxTransportTimeMillis
public long getMaxTransportTimeMillis()Description copied from interface:ITimedLoadGets the maximal desired time for transportation in millis.- Specified by:
getMaxTransportTimeMillisin interfaceITimedLoad- Returns:
- the max transport time millis
-