slogo.instruction
Class Remainder

java.lang.Object
  extended by slogo.language.GrammarElement
      extended by slogo.instruction.Instruction
          extended by slogo.instruction.Remainder

public class Remainder
extends Instruction


Field Summary
(package private)  Expression num1
           
(package private)  Expression num2
           
 
Fields inherited from class slogo.language.GrammarElement
gelementsToValue
 
Constructor Summary
Remainder(Expression e1, Expression e2)
           
 
Method Summary
 java.lang.Object evaluate(Context c)
          Evaluate this language construct in some context.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

num1

Expression num1

num2

Expression num2
Constructor Detail

Remainder

public Remainder(Expression e1,
                 Expression e2)
Method Detail

evaluate

public java.lang.Object evaluate(Context c)
Description copied from class: GrammarElement
Evaluate this language construct in some context. The evaluation may have side-effects, e.g., moving a turtle.

Overrides:
evaluate in class Instruction
Parameters:
c - context in which the evaluation takes place
Returns:
the result of evaluating the construct