Class ProcurementSpecificationSet

java.lang.Object
  |
  +--swarm.BaseImpl
        |
        +--swarm.objectbase.SwarmObjectImpl
              |
              +--ProcurementSpecificationSet
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, swarm.objectbase.SwarmObject, swarm.objectbase.SwarmObjectS

public class ProcurementSpecificationSet
extends swarm.objectbase.SwarmObjectImpl

The container generated by an order and containing the spefications about procument necessities

Author:
Pietro Terna

Field Summary
 int myOrderNumber
          number (i.e. that of the order which has generated this object
 int pos
          the position of this sequence in the recipe
 int[] specifications
          the specifications
 
Constructor Summary
ProcurementSpecificationSet(swarm.defobj.Zone aZone, int n, int p)
          constructor for ProcurementSpecificationSet
 
Method Summary
 int getItemToBeProcured(int i)
          returning the item to be procured at pos. i of the vector containg the items (0<=i
 int getNumber()
          returning the number of the order of this procurement specification
 int getNumberOfItemsToBeProcured()
          returning the number of items to be procured
 int getPositionInRecipe()
          returning the position of this procurement specification into its recipe
 void setSpecificationSet(int jj, int[] r)
          setting the procurement specifications
 
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

myOrderNumber

public int myOrderNumber
number (i.e. that of the order which has generated this object


pos

public int pos
the position of this sequence in the recipe


specifications

public int[] specifications
the specifications

Constructor Detail

ProcurementSpecificationSet

public ProcurementSpecificationSet(swarm.defobj.Zone aZone,
                                   int n,
                                   int p)
constructor for ProcurementSpecificationSet

Method Detail

setSpecificationSet

public void setSpecificationSet(int jj,
                                int[] r)
setting the procurement specifications


getNumberOfItemsToBeProcured

public int getNumberOfItemsToBeProcured()
returning the number of items to be procured


getItemToBeProcured

public int getItemToBeProcured(int i)
returning the item to be procured at pos. i of the vector containg the items (0<=i

getNumber

public int getNumber()
returning the number of the order of this procurement specification


getPositionInRecipe

public int getPositionInRecipe()
returning the position of this procurement specification into its recipe