cdx.scorebot.scoring.logic
Class MultiplicativeExpression

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

public class MultiplicativeExpression
extends ExpressionLeftAssociative<UnaryExpression>
implements LogicCodeEvaluatable

holds an Additive expression

Author:
David Underhill

Field Summary
 
Fields inherited from class cdx.scorebot.scoring.logic.ExpressionLeftAssociative
leftOperand, rightOperands
 
Constructor Summary
MultiplicativeExpression(UnaryExpression leftOperand)
          instantiate the conditional expression
 
Method Summary
 void divide(UnaryExpression operand)
          divides this expression by this operand
 void mod(UnaryExpression operand)
          mods this expression by this operand
 void times(UnaryExpression operand)
          multiplies this expression by 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

MultiplicativeExpression

public MultiplicativeExpression(UnaryExpression leftOperand)
instantiate the conditional expression

Parameters:
leftOperand - left operand
Method Detail

divide

public void divide(UnaryExpression operand)
divides this expression by this operand

Parameters:
operand - the operand to add to the expression

mod

public void mod(UnaryExpression operand)
mods this expression by this operand

Parameters:
operand - the operand to add to the expression

times

public void times(UnaryExpression operand)
multiplies this expression by this operand

Parameters:
operand - the operand to add to the expression