public class TimedSupplyFlexLoad extends MixedFlexLoad
Constructor and Description |
---|
TimedSupplyFlexLoad(String loadId) |
TimedSupplyFlexLoad(String loadId,
int initialLoadValue) |
TimedSupplyFlexLoad(String loadId,
int initialLoadValue,
boolean initialIsRequest,
boolean isFuzzyVisit) |
Modifier and Type | Method and Description |
---|---|
ILoad |
copy()
Copies the load into a new Object.
|
boolean |
isRequest()
Checks if is request.
|
boolean |
isTimed()
Checks if is timed.
|
Optional<ILoad> |
merge(ILoad itemTwo)
Merge two loads.
|
String |
typeName()
Gets the type name.
|
ILoad |
visited(ILoadCapacity cap,
double acceptedLoadValue,
long resourceArrivalTime)
After a
ILoadCapacity visited a load, the load gets the information, what
load value was accepted by the capacity and when the capcity arrived at the load. |
getAdjustedLoadValue, isFlexible, toString
getId, getLoadValue, getPriority, getSearchIndex, isFuzzyVisit, setLoad, setSearchIndex
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
getLoadValue, getPriority, isFuzzyVisit, setLoad
getId, getSearchIndex, setSearchIndex
public static final String TYPE_NAME
public TimedSupplyFlexLoad(String loadId, int initialLoadValue, boolean initialIsRequest, boolean isFuzzyVisit)
public TimedSupplyFlexLoad(String loadId, int initialLoadValue)
public TimedSupplyFlexLoad(String loadId)
public Optional<ILoad> merge(ILoad itemTwo)
ILoad
merge
in interface ILoad
merge
in class MixedFlexLoad
itemTwo
- the item twopublic ILoad visited(ILoadCapacity cap, double acceptedLoadValue, long resourceArrivalTime)
ILoad
ILoadCapacity
visited a load, the load gets the information, what
load value was accepted by the capacity and when the capcity arrived at the load.visited
in interface ILoad
visited
in class MixedFlexLoad
cap
- the capacceptedLoadValue
- the accepted load valueresourceArrivalTime
- the resource arrival timepublic boolean isRequest()
ILoad
ILoadCapacity
.
If request is false, the load automatically supplies goods to a capacity.isRequest
in interface ILoad
isRequest
in class AbstractLoad
public boolean isTimed()
ILoad
isTimed
in interface ILoad
isTimed
in class AbstractLoad
@Value.Default public String typeName()
IPNDItem
typeName
in interface IPNDItem
typeName
in class MixedFlexLoad
Copyright © 2017–2023 DNA Evolutions GmbH. All rights reserved.