gestIT
Class ComplexTmpExp

java.lang.Object
  extended by gestIT.TmpExp
      extended by gestIT.ComplexTmpExp

public class ComplexTmpExp
extends TmpExp

Subclass of TmpExp that represent a complex building block. A complex building block represent the operator of OrderIndipendence

Author:
nicola

Field Summary
 java.util.Vector<java.lang.Boolean> completion
          Vector of flags for the operand (true if the operand is completed, false otherwise)
 java.util.Vector<TmpExp> operands
          Vector of all the operands
 TmpOperator operator
          The current operator (always OrderIndipendence)
 
Fields inherited from class gestIT.TmpExp
Completed, Error, Iterative, Optional, Parent, Performing, state, type
 
Constructor Summary
ComplexTmpExp()
          Constructor that return a new empty ComplexTmpExp
 
Method Summary
 void AddOperand(TmpExp oper)
          Add a new operand to the complex building block
 TmpExp GetOperand(int i)
          Return the operand at position i
 java.util.Iterator<TmpExp> GetOperands()
          Return an Iterator object that can be used to access all the TmpExp object in a ComplexTmpExp object
 void RemoveOperand(TmpExp oper)
          Remove an operand from the complex building block
 void SetExecState(ExecState st, Token tk)
          Method for changing the execution state of a building block
 
Methods inherited from class gestIT.TmpExp
addCompletedListener, addErrorListener, addOnStateChangedListener, addPerformingListener, getState, removeCompletedListener, removeErrorListener, removeOnStateChangedListener, removePerformingListener
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

operator

public TmpOperator operator
The current operator (always OrderIndipendence)


operands

public java.util.Vector<TmpExp> operands
Vector of all the operands


completion

public java.util.Vector<java.lang.Boolean> completion
Vector of flags for the operand (true if the operand is completed, false otherwise)

Constructor Detail

ComplexTmpExp

public ComplexTmpExp()
Constructor that return a new empty ComplexTmpExp

Method Detail

AddOperand

public void AddOperand(TmpExp oper)
Add a new operand to the complex building block

Parameters:
oper - The operand to be added

RemoveOperand

public void RemoveOperand(TmpExp oper)
Remove an operand from the complex building block

Parameters:
oper - The operand to be removed

GetOperand

public TmpExp GetOperand(int i)
Return the operand at position i

Parameters:
i - The position of the requested operand
Returns:
The operand at position i

GetOperands

public java.util.Iterator<TmpExp> GetOperands()
Return an Iterator object that can be used to access all the TmpExp object in a ComplexTmpExp object

Returns:
The Iterator

SetExecState

public void SetExecState(ExecState st,
                         Token tk)
Description copied from class: TmpExp
Method for changing the execution state of a building block

Overrides:
SetExecState in class TmpExp
Parameters:
st - The new state for the building block
tk - The token that must be passed