gestIT
Class BinaryTmpExp

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

public class BinaryTmpExp
extends TmpExp

Subclass of TmpExp that represent a binary building block. A complex building block can represent the operator of ImmediateChoice, Choice, Parallel, Disabling, OrderIndependence, SynchronizedParallel or Enabling

Author:
nicola

Field Summary
 TmpOperator Operator
          The Operator of the binary building block
 
Fields inherited from class gestIT.TmpExp
Completed, Error, Iterative, Optional, Parent, Performing, state, type
 
Constructor Summary
BinaryTmpExp()
          Constructor that return a new empty BinaryTmpExp
BinaryTmpExp(TmpExp leftOperand, TmpExp rightOperand, TmpOperator op)
          Constructor that return a new BinaryTmpExp, setting is left and right operand and the operator
 
Method Summary
 TmpExp getLeftOperand()
          Return the left operand of the building block
 TmpExp getRightOperand()
          Return the right operand of the building block
 void SetExecState(ExecState st, Token tk)
          Method for changing the execution state of a building block
 void setLeftOperand(TmpExp exp)
          Set the left operand of the building block
 void setRightOperand(TmpExp exp)
          Set the right operand of the 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 Operator of the binary building block

Constructor Detail

BinaryTmpExp

public BinaryTmpExp()
Constructor that return a new empty BinaryTmpExp


BinaryTmpExp

public BinaryTmpExp(TmpExp leftOperand,
                    TmpExp rightOperand,
                    TmpOperator op)
Constructor that return a new BinaryTmpExp, setting is left and right operand and the operator

Parameters:
leftOperand - The left operand of the new binary building block
rightOperand - The right operand of the new binary building block
op - The new operator to be setted
Method Detail

getLeftOperand

public TmpExp getLeftOperand()
Return the left operand of the building block

Returns:
The left operand

getRightOperand

public TmpExp getRightOperand()
Return the right operand of the building block

Returns:
The right operand

setLeftOperand

public void setLeftOperand(TmpExp exp)
Set the left operand of the building block

Parameters:
exp - The left operand to be setted

setRightOperand

public void setRightOperand(TmpExp exp)
Set the right operand of the building block

Parameters:
exp - The right operand to be setted

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