public class UnloadAllLoad extends AbstractLoad
Constructor and Description |
---|
UnloadAllLoad(String loadId) |
UnloadAllLoad(String loadId,
int loadValue,
int priority,
boolean isRequest,
boolean isFuzzyVisit) |
Modifier and Type | Method and Description |
---|---|
ILoad |
copy()
Copies the load into a new Object.
|
double |
getAdjustedLoadValue(ILoadCapacity simpleLoadCapacity)
Gets the adjusted load value.
|
Optional<ILoad> |
merge(ILoad itemTwo)
Merge two loads.
|
String |
toString() |
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. |
getId, getLoadValue, getPriority, getSearchIndex, isFlexible, isFuzzyVisit, isRequest, isTimed, setLoad, setSearchIndex
public static final String TYPE_NAME
public UnloadAllLoad(String loadId, int loadValue, int priority, boolean isRequest, boolean isFuzzyVisit)
public UnloadAllLoad(String loadId)
public Optional<ILoad> merge(ILoad itemTwo)
ILoad
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.cap
- the capacceptedLoadValue
- the accepted load valueresourceArrivalTime
- the resource arrival timepublic double getAdjustedLoadValue(ILoadCapacity simpleLoadCapacity)
ILoad
UnloadAllLoad
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.simpleLoadCapacity
- the simple load capacity@Value.Default public String typeName()
IPNDItem
Copyright © 2017–2023 DNA Evolutions GmbH. All rights reserved.