cdx.scorebot.scoring.logic
Class EqualityExpression

java.lang.Object
  extended by cdx.scorebot.scoring.logic.ExpressionLeftAssociative<RelationalExpression>
      extended by cdx.scorebot.scoring.logic.EqualityExpression
All Implemented Interfaces:
LogicCode, LogicCodeEvaluatable

public class EqualityExpression
extends ExpressionLeftAssociative<RelationalExpression>
implements LogicCodeEvaluatable

holds an Equality expression

Author:
David Underhill

Field Summary
 
Fields inherited from class cdx.scorebot.scoring.logic.ExpressionLeftAssociative
leftOperand, rightOperands
 
Constructor Summary
EqualityExpression(RelationalExpression leftOperand)
          instantiate the conditional expression
 
Method Summary
 void equal(RelationalExpression operand)
          tests this expression for equality with this operand
 void not_equal(RelationalExpression operand)
          tests this expression for inequality with this operand
 
Methods inherited from class cdx.scorebot.scoring.logic.ExpressionLeftAssociative
addOperand, evaluateLogic, evaluateTypeOnly
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface cdx.scorebot.scoring.logic.LogicCodeEvaluatable
evaluateLogic, evaluateTypeOnly
 

Constructor Detail

EqualityExpression

public EqualityExpression(RelationalExpression leftOperand)
instantiate the conditional expression

Parameters:
leftOperand - left operand
Method Detail

equal

public void equal(RelationalExpression operand)
tests this expression for equality with this operand

Parameters:
operand - the operand to add to the expression

not_equal

public void not_equal(RelationalExpression operand)
tests this expression for inequality with this operand

Parameters:
operand - the operand to add to the expression