public class SupplyFlexLoad extends MixedFlexLoad
Constructor and Description |
---|
SupplyFlexLoad(String loadId) |
SupplyFlexLoad(String loadId,
int intialLoadValue) |
SupplyFlexLoad(String loadId,
int initialLoadValue,
boolean isFuzzyVisit) |
SupplyFlexLoad(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.
|
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, isTimed, setLoad, setSearchIndex
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
getLoadValue, getPriority, isFuzzyVisit, isTimed, setLoad
getId, getSearchIndex, setSearchIndex
public static final String TYPE_NAME
public SupplyFlexLoad(String loadId, int initialLoadValue, boolean initialIsRequest, boolean isFuzzyVisit)
public SupplyFlexLoad(String loadId, int initialLoadValue, boolean isFuzzyVisit)
public SupplyFlexLoad(String loadId, int intialLoadValue)
public SupplyFlexLoad(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
@Value.Default public String typeName()
IPNDItem
typeName
in interface IPNDItem
typeName
in class MixedFlexLoad
Copyright © 2017–2023 DNA Evolutions GmbH. All rights reserved.