Class OrSpecificationSet

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

The container generated by an order and containing the spefications about an or stepe in a process

Author:
Pietro Terna

Field Summary
 int myOrderNumber
          number (i.e. that of the order which has generated this object
 int nodeNumber
          the specification
 int[] nodePosition
          the vector of node positions in 'or' sequence (max 100)
 int orRow
          the row used in the memory matrix invoked by an 'or' process using orCriterion 5 (look at Or.java)
 int pos
          the position of this sequence in the recipe
 
Constructor Summary
OrSpecificationSet(swarm.defobj.Zone aZone, int n, int p)
          constructor for OrSpecificationSet
 
Method Summary
 int getNodeNumber()
          returning the number of nodes (branches) in this 'or' sequence
 int getNodePosition(int node)
          getting the node position; position of node # 1 is in nodePosition[0] etc.
 int getNumber()
          returning the number of the order of this procurement specification
 int getOrRow()
          getting the orRow
 int getPositionInRecipe()
          returning the position of this procurement specification into its recipe
 void setNodeNumber(int k)
          setting the number if nodes
 void setNodePosition(int node, int position)
          setting the node position
 void setOrRow(int rr)
          setting the orRow
 
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


nodeNumber

public int nodeNumber
the specification


nodePosition

public int[] nodePosition
the vector of node positions in 'or' sequence (max 100)


orRow

public int orRow
the row used in the memory matrix invoked by an 'or' process using orCriterion 5 (look at Or.java)

Constructor Detail

OrSpecificationSet

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

Method Detail

setNodeNumber

public void setNodeNumber(int k)
setting the number if nodes


setNodePosition

public void setNodePosition(int node,
                            int position)
setting the node position


setOrRow

public void setOrRow(int rr)
setting the orRow


getOrRow

public int getOrRow()
getting the orRow


getNodePosition

public int getNodePosition(int node)
getting the node position; position of node # 1 is in nodePosition[0] etc.


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


getNodeNumber

public int getNodeNumber()
returning the number of nodes (branches) in this 'or' sequence