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
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptioncopy()
Copies the load into a new Object.double
getAdjustedLoadValue
(ILoadCapacity simpleLoadCapacity) Gets the adjusted load value.long
Gets the maximal desired time for transportation in millis.boolean
isTimed()
Checks if is timed.Merge two loads.toString()
typeName()
Gets the type name.visited
(ILoadCapacity cap, double acceptedLoadValue, long resourceArrivalTime) After aILoadCapacity
visited 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, setSearchIndex
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
Methods inherited from interface com.dna.jopt.member.unit.pnd.load.ILoad
getLoadValue, getPriority, isFlexible, isFuzzyVisit, isRequest, setLoad
Methods 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:ILoad
Merge two loads. -
visited
Description copied from interface:ILoad
After aILoadCapacity
visited 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:ILoad
Checks 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:
isTimed
in interfaceILoad
- Overrides:
isTimed
in classAbstractLoad
- Returns:
- true, if is timed
-
getAdjustedLoadValue
Description copied from interface:ILoad
Gets the adjusted load value. For Loads likeUnloadAllLoad
the 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:
getAdjustedLoadValue
in interfaceILoad
- Parameters:
simpleLoadCapacity
- the simple load capacity- Returns:
- the adjusted load value
-
typeName
Description copied from interface:IPNDItem
Gets the type name. -
toString
-
copy
Description copied from interface:ILoad
Copies the load into a new Object. -
getMaxTransportTimeMillis
public long getMaxTransportTimeMillis()Description copied from interface:ITimedLoad
Gets the maximal desired time for transportation in millis.- Specified by:
getMaxTransportTimeMillis
in interfaceITimedLoad
- Returns:
- the max transport time millis
-