public abstract class AbstractLoad extends Object implements ILoad
Constructor and Description |
---|
AbstractLoad(String loadId,
int loadValue,
boolean isRequest,
boolean isFuzzyVisit) |
AbstractLoad(String loadId,
int loadValue,
int priority,
boolean isRequest,
boolean isFuzzyVisit) |
Modifier and Type | Method and Description |
---|---|
String |
getId()
Gets the id of the PNDItem
|
double |
getLoadValue()
Gets the current load value.
|
int |
getPriority()
Gets the priority.
|
int |
getSearchIndex()
Gets the search index.
|
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.
|
void |
setLoad(double loadValue,
boolean isRequest)
Sets the load and the request status of the load.
|
void |
setSearchIndex(int searchIndex)
Sets the search index.
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
copy, getAdjustedLoadValue, merge, visited
public AbstractLoad(String loadId, int loadValue, boolean isRequest, boolean isFuzzyVisit)
public AbstractLoad(String loadId, int loadValue, int priority, boolean isRequest, boolean isFuzzyVisit)
public void setSearchIndex(int searchIndex)
IPNDItem
setSearchIndex
in interface IPNDItem
searchIndex
- the new search indexpublic int getSearchIndex()
IPNDItem
getSearchIndex
in interface IPNDItem
public void setLoad(double loadValue, boolean isRequest)
ILoad
public boolean isFlexible()
ILoad
isFlexible
in interface ILoad
MixedFlexLoad
,
SupplyFlexLoad
,
RequestFlexLoad
public boolean isTimed()
ILoad
public boolean isFuzzyVisit()
ILoad
isFuzzyVisit
in interface ILoad
public int getPriority()
ILoad
getPriority
in interface ILoad
public double getLoadValue()
ILoad
ILoad.isRequest()
defines if a load is a supply or a request.getLoadValue
in interface ILoad
public boolean isRequest()
ILoad
ILoadCapacity
.
If request is false, the load automatically supplies goods to a capacity.Copyright © 2017–2023 DNA Evolutions GmbH. All rights reserved.