cdx.scorebot.scoring.logic
Class RelationalExpression

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

public class RelationalExpression
extends ExpressionLeftAssociative<AdditiveExpression>
implements LogicCodeEvaluatable

holds a Relational expression

Author:
David Underhill

Field Summary
 
Fields inherited from class cdx.scorebot.scoring.logic.ExpressionLeftAssociative
leftOperand, rightOperands
 
Constructor Summary
RelationalExpression(AdditiveExpression leftOperand)
          instantiate the conditional expression
 
Method Summary
 void greater_than_or_equal(AdditiveExpression operand)
          compares this expression to this operand with the >= operator
 void greater_than(AdditiveExpression operand)
          compares this expression to this operand with the > operator
 void less_than_or_equal(AdditiveExpression operand)
          compares this expression to this operand with the <= operator
 void less_than(AdditiveExpression operand)
          compares this expression to this operand with the < operator
 
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

RelationalExpression

public RelationalExpression(AdditiveExpression leftOperand)
instantiate the conditional expression

Parameters:
leftOperand - left operand
Method Detail

less_than

public void less_than(AdditiveExpression operand)
compares this expression to this operand with the < operator

Parameters:
operand - the operand to add to the expression

less_than_or_equal

public void less_than_or_equal(AdditiveExpression operand)
compares this expression to this operand with the <= operator

Parameters:
operand - the operand to add to the expression

greater_than

public void greater_than(AdditiveExpression operand)
compares this expression to this operand with the > operator

Parameters:
operand - the operand to add to the expression

greater_than_or_equal

public void greater_than_or_equal(AdditiveExpression operand)
compares this expression to this operand with the >= operator

Parameters:
operand - the operand to add to the expression