|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--swarm.BaseImpl | +--swarm.objectbase.SwarmObjectImpl | +--Warehouse
the Warehouset class is used to operate with inventories.
Field Summary | |
int |
inventoryCounter
the counter which of inventory quantity (in this versione the inventory smallest piece of inventory is 1) |
int |
warehouseNumber
the number of this wharehouse |
Constructor Summary | |
Warehouse(swarm.defobj.Zone aZone,
int n)
The constructor for Warehouse |
Method Summary | |
int |
decreaseInventoryCounterValue()
decreasing inventories and returning the result |
boolean |
empty()
checking if the warehouse is empty |
int |
getInventoryQuantity()
the inventory quantity in the warehouse |
java.lang.String |
getLabel()
PTHistogramPlottable interface method: getLabel() |
double |
getValueToPlot()
PTHistogramPlottable interface method: getValueToPlot() |
int |
getWarehouseNumber()
the number of this warehouse |
void |
increaseInventoryCounterValue()
increasing inventories |
Methods inherited from class swarm.objectbase.SwarmObjectImpl |
compare, describe, describeID, drop, getCompleteProbeMap, getDisplayName, getName, getProbeForMessage, getProbeForVariable, getProbeMap, getTypeName, getZone, perform, perform$with, perform$with$with, perform$with$with$with, respondsTo, setDisplayName, xfprint, xfprintid, xprint, xprintid |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
public int warehouseNumber
public int inventoryCounter
Constructor Detail |
public Warehouse(swarm.defobj.Zone aZone, int n)
Method Detail |
public int getInventoryQuantity()
public int getWarehouseNumber()
public void increaseInventoryCounterValue()
public int decreaseInventoryCounterValue()
public boolean empty()
public java.lang.String getLabel()
getLabel
in interface PTHistogramPlottable
public double getValueToPlot()
getValueToPlot
in interface PTHistogramPlottable
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |