cdx.scorebot.scoring.logic
Class AdditiveExpression

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

public class AdditiveExpression
extends ExpressionLeftAssociative<MultiplicativeExpression>
implements LogicCodeEvaluatable

holds an Additive expression

Author:
David Underhill

Field Summary
 
Fields inherited from class cdx.scorebot.scoring.logic.ExpressionLeftAssociative
leftOperand, rightOperands
 
Constructor Summary
AdditiveExpression(MultiplicativeExpression leftOperand)
          instantiate the conditional expression
 
Method Summary
 void minus(MultiplicativeExpression operand)
          subtracts operand from this expression
 void plus(MultiplicativeExpression operand)
          adds operand to this expression
 
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

AdditiveExpression

public AdditiveExpression(MultiplicativeExpression leftOperand)
instantiate the conditional expression

Parameters:
leftOperand - left operand
Method Detail

minus

public void minus(MultiplicativeExpression operand)
subtracts operand from this expression

Parameters:
operand - the operand to add to the expression

plus

public void plus(MultiplicativeExpression operand)
adds operand to this expression

Parameters:
operand - the operand to add to the expression