Class StandAloneBatchAssembler

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

The StandAloneBatchAssembler class instances are unit assembling stand alone batch processes

Author:
Pietro Terna

Field Summary
 swarm.collections.ListImpl waitingList
          the list of the order to be assembled with a stand alone batch process
 
Constructor Summary
StandAloneBatchAssembler(swarm.defobj.Zone aZone)
          the constructor for StandAloneBatchAssembler
 
Method Summary
 void checkingStandAloneBatchAndFreeingOrders()
          verifying stand alone batches and eliminating the orders from our waitingList in scheduling
 java.lang.String getLabel()
          PTHistogramPlottable interface method: getLabel()
 double getValueToPlot()
          PTHistogramPlottable interface method: getValueToPlot()
 int getWaitingListLength()
          return the waiting list length
 void removeThisOrderFromTheWaitingList(Order o)
          removing the order from the waitingList
 boolean setStandAloneBatchWaitingList(Order anOrder)
          adding an order to the waitingList
 void setUnit(Unit u)
          setting the unit we are assembling for
 boolean thisOrderIsInTheWaitingList(Order o)
          checking if an order is in the waitingList
 
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 a stand alone batch process
Constructor Detail

StandAloneBatchAssembler

public StandAloneBatchAssembler(swarm.defobj.Zone aZone)
the constructor for StandAloneBatchAssembler
Method Detail

setUnit

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

setStandAloneBatchWaitingList

public boolean setStandAloneBatchWaitingList(Order anOrder)
adding an order to the waitingList

checkingStandAloneBatchAndFreeingOrders

public void checkingStandAloneBatchAndFreeingOrders()
verifying stand alone batches and eliminating the orders from our waitingList in scheduling

getWaitingListLength

public int getWaitingListLength()
return the waiting list length

thisOrderIsInTheWaitingList

public boolean thisOrderIsInTheWaitingList(Order o)
checking if an order is in the waitingList

removeThisOrderFromTheWaitingList

public void removeThisOrderFromTheWaitingList(Order o)
removing the order from the waitingList

getLabel

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

getValueToPlot

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