public class TimedLoad extends AbstractLoad implements ITimedLoad
Constructor and Description |
---|
TimedLoad(String loadId,
Duration maxTime,
boolean isRequest) |
TimedLoad(String loadId,
int loadValue,
int priority,
long maxTransportTimeMillis,
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.
|
long |
getMaxTransportTimeMillis()
Gets the maximal desired time for transportation in millis.
|
boolean |
isTimed()
Checks if is timed.
|
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, setLoad, setSearchIndex
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
getLoadValue, getPriority, isFlexible, isFuzzyVisit, isRequest, setLoad
getId, getSearchIndex, setSearchIndex
public static final String TYPE_NAME
public TimedLoad(String loadId, int loadValue, int priority, long maxTransportTimeMillis, boolean isRequest, boolean isFuzzyVisit)
public Optional<ILoad> merge(ILoad itemTwo)
ILoad
public 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.public boolean isTimed()
ILoad
isTimed
in interface ILoad
isTimed
in class AbstractLoad
public 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.getAdjustedLoadValue
in interface ILoad
simpleLoadCapacity
- the simple load capacity@Value.Default public String typeName()
IPNDItem
public ILoad copy()
ILoad
public long getMaxTransportTimeMillis()
ITimedLoad
getMaxTransportTimeMillis
in interface ITimedLoad
Copyright © 2017–2023 DNA Evolutions GmbH. All rights reserved.