edu.toronto.cs.expr
Class RationalOp

java.lang.Object
  extended by edu.toronto.cs.expr.NullaryOperator
      extended by edu.toronto.cs.expr.RationalOp
All Implemented Interfaces:
Operator

public class RationalOp
extends NullaryOperator


Constructor Summary
RationalOp(int _n, int _d)
           
 
Method Summary
 boolean equals(java.lang.Object v)
           
 int getD()
           
 int getN()
           
 int hashCode()
           
 java.lang.String name()
          Name of this operator
 
Methods inherited from class edu.toronto.cs.expr.NullaryOperator
arity, isWellFormed
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

RationalOp

public RationalOp(int _n,
                  int _d)
Method Detail

name

public java.lang.String name()
Description copied from interface: Operator
Name of this operator

Returns:
a String value

equals

public boolean equals(java.lang.Object v)
Overrides:
equals in class java.lang.Object

hashCode

public int hashCode()
Overrides:
hashCode in class java.lang.Object

getN

public int getN()

getD

public int getD()