Class TimedSupplyFlexLoad
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.TimedSupplyFlexLoad
-
Field Summary
-
Constructor Summary
ConstructorDescriptionTimedSupplyFlexLoad
(String loadId) TimedSupplyFlexLoad
(String loadId, int initialLoadValue) TimedSupplyFlexLoad
(String loadId, int initialLoadValue, boolean initialIsRequest, boolean isFuzzyVisit) -
Method Summary
Modifier and TypeMethodDescriptioncopy()
Copies the load into a new Object.boolean
Checks if is request.boolean
isTimed()
Checks if is timed.Merge two loads.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.flexload.MixedFlexLoad
getAdjustedLoadValue, isFlexible, toString
Methods inherited from class com.dna.jopt.member.unit.pnd.load.AbstractLoad
getId, getLoadValue, getPriority, getSearchIndex, isFuzzyVisit, 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, isFuzzyVisit, setLoad
Methods inherited from interface com.dna.jopt.member.unit.pnd.IPNDItem
getId, getSearchIndex, setSearchIndex
-
Field Details
-
TYPE_NAME
- See Also:
-
-
Constructor Details
-
TimedSupplyFlexLoad
public TimedSupplyFlexLoad(String loadId, int initialLoadValue, boolean initialIsRequest, boolean isFuzzyVisit) -
TimedSupplyFlexLoad
-
TimedSupplyFlexLoad
-
-
Method Details
-
merge
Description copied from interface:ILoad
Merge two loads.- Specified by:
merge
in interfaceILoad
- Overrides:
merge
in classMixedFlexLoad
- Parameters:
itemTwo
- the item two- Returns:
- the optional
-
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.- Specified by:
visited
in interfaceILoad
- Overrides:
visited
in 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:ILoad
Checks 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:
isRequest
in interfaceILoad
- Overrides:
isRequest
in classAbstractLoad
- Returns:
- true, if is request
-
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
-
typeName
Description copied from interface:IPNDItem
Gets the type name.- Specified by:
typeName
in interfaceIPNDItem
- Overrides:
typeName
in classMixedFlexLoad
- Returns:
- the type name
-
copy
Description copied from interface:ILoad
Copies the load into a new Object.- Specified by:
copy
in interfaceILoad
- Overrides:
copy
in classMixedFlexLoad
- Returns:
- the copied ILoad
-