public interface ILoad extends IPNDItem
INodeDepot
.INodeDepot
Modifier and Type | Method and Description |
---|---|
ILoad |
copy()
Copies the load into a new Object.
|
double |
getAdjustedLoadValue(ILoadCapacity simpleLoadCapacity)
Gets the adjusted load value.
|
double |
getLoadValue()
Gets the current load value.
|
int |
getPriority()
Gets the priority.
|
boolean |
isFlexible()
Checks if is flexible.
|
boolean |
isFuzzyVisit()
Checks if is fuzzy visit.
|
boolean |
isRequest()
Checks if is request.
|
boolean |
isTimed()
Checks if is timed.
|
Optional<ILoad> |
merge(ILoad itemTwo)
Merge two loads.
|
void |
setLoad(double loadValue,
boolean isRequest)
Sets the load and the request status of the load.
|
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, getSearchIndex, setSearchIndex, typeName
Optional<ILoad> merge(ILoad itemTwo)
itemTwo
- the item twoboolean isRequest()
ILoadCapacity
.
If request is false, the load automatically supplies goods to a capacity.ILoad visited(ILoadCapacity cap, double acceptedLoadValue, long resourceArrivalTime)
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 timedouble getLoadValue()
isRequest()
defines if a load is a supply or a request.double getAdjustedLoadValue(ILoadCapacity simpleLoadCapacity)
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 capacityboolean isFuzzyVisit()
int getPriority()
boolean isFlexible()
MixedFlexLoad
,
SupplyFlexLoad
,
RequestFlexLoad
boolean isTimed()
ILoad copy()
void setLoad(double loadValue, boolean isRequest)
loadValue
- the load valueisRequest
- the is requestCopyright © 2017–2023 DNA Evolutions GmbH. All rights reserved.