Class ProcurementAssembler

java.lang.Object
  |
  +--swarm.BaseImpl
        |
        +--swarm.objectbase.SwarmObjectImpl
              |
              +--ProcurementAssembler
All Implemented Interfaces:
swarm.defobj.Create, swarm.defobj.CreateS, swarm.defobj.Customize, swarm.defobj.CustomizeS, swarm.defobj.DefinedObject, swarm.defobj.DefinedObjectS, swarm.defobj.Drop, swarm.defobj.DropS, swarm.defobj.GetName, swarm.defobj.GetNameS, PTHistogramPlottable, swarm.objectbase.SwarmObject, swarm.objectbase.SwarmObjectS

public class ProcurementAssembler
extends swarm.objectbase.SwarmObjectImpl
implements PTHistogramPlottable

The ProcurementAssembler class instances are unit assembling the elements of a procurement process

Author:
Pietro Terna

Field Summary
 int[] endUnitLabels
          the vector of the labels fo the end units
 swarm.collections.ListImpl endUnitList
          the list of end units
 int[] quantitiesInEndUnits
          the vector of the quantities in the end units
 swarm.collections.ListImpl waitingList
          the list of the order to be assembled with the procurements
 
Constructor Summary
ProcurementAssembler(swarm.defobj.Zone aZone, swarm.collections.ListImpl eul)
          the constructor for ProcurementAssembler
 
Method Summary
 void checkProcurementsAndSendBackOrders()
          verifying procurements and sending orders to our unit
 java.lang.String getLabel()
           
 double getValueToPlot()
           
 int getWaitingListLength()
          return the waiting list length
 boolean setProcurementWaitingList(Order anOrder)
          adding an order to the waitingList and eliminating the negative sign in step
 void setUnit(Unit u)
          setting the unit we are assembling for
 
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

waitingList

public swarm.collections.ListImpl waitingList
the list of the order to be assembled with the procurements

endUnitList

public swarm.collections.ListImpl endUnitList
the list of end units

quantitiesInEndUnits

public int[] quantitiesInEndUnits
the vector of the quantities in the end units

endUnitLabels

public int[] endUnitLabels
the vector of the labels fo the end units
Constructor Detail

ProcurementAssembler

public ProcurementAssembler(swarm.defobj.Zone aZone,
                            swarm.collections.ListImpl eul)
the constructor for ProcurementAssembler
Method Detail

setUnit

public void setUnit(Unit u)
setting the unit we are assembling for

setProcurementWaitingList

public boolean setProcurementWaitingList(Order anOrder)
adding an order to the waitingList and eliminating the negative sign in step

checkProcurementsAndSendBackOrders

public void checkProcurementsAndSendBackOrders()
verifying procurements and sending orders to our unit

getWaitingListLength

public int getWaitingListLength()
return the waiting list length

getLabel

public java.lang.String getLabel()
Specified by:
getLabel in interface PTHistogramPlottable

getValueToPlot

public double getValueToPlot()
Specified by:
getValueToPlot in interface PTHistogramPlottable