Class EndUnit

java.lang.Object
  |
  +--swarm.BaseImpl
        |
        +--swarm.objectbase.SwarmObjectImpl
              |
              +--EndUnit
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 EndUnit
extends swarm.objectbase.SwarmObjectImpl
implements PTHistogramPlottable

The EndUnit class instances represent virtual or actuale places or warehouse were temporary finished sub-recipes (produced internally or obtained as procurements) wait to be used in other recipes via a "p" (procurement) step

an endUnit has its internal number equal to the concluding code used to finish/identify a temporary finished sub-recipe

Author:
Pietro Terna

Field Summary
 swarm.collections.ListImpl temporaryList
          the list containing order temporary kept in this virtual (or actual) place
 int unitNumber
          the number identifying the unit which is also its end code
 
Constructor Summary
EndUnit(swarm.defobj.Zone aZone, VEFrameModelSwarm mo)
          the constructor for EndUnit
 
Method Summary
 java.lang.String getLabel()
           
 int getTemporaryListLength()
          return the temporary list length
 int getUnitNumber()
          get unit number
 double getValueToPlot()
           
 java.lang.Object removeFromTemporaryList()
          Removing an order from the temporaryList of the unit and returning its address
 void setTemporaryList(Order anOrder)
          Putting an order in the temporaryList of the unit
 void setUnitNumber(int un)
          set unit number
 
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

unitNumber

public int unitNumber
the number identifying the unit which is also its end code

temporaryList

public swarm.collections.ListImpl temporaryList
the list containing order temporary kept in this virtual (or actual) place
Constructor Detail

EndUnit

public EndUnit(swarm.defobj.Zone aZone,
               VEFrameModelSwarm mo)
the constructor for EndUnit
Method Detail

setUnitNumber

public void setUnitNumber(int un)
set unit number

getUnitNumber

public int getUnitNumber()
get unit number

setTemporaryList

public void setTemporaryList(Order anOrder)
Putting an order in the temporaryList of the unit

removeFromTemporaryList

public java.lang.Object removeFromTemporaryList()
Removing an order from the temporaryList of the unit and returning its address

getTemporaryListLength

public int getTemporaryListLength()
return the temporary list length

getLabel

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

getValueToPlot

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