Pandora.LogicParser.Formula.AExp
Class Multiply

java.lang.Object
  extended by Pandora.LogicParser.Formula.Term
      extended by Pandora.LogicParser.Formula.AExp.AExp
          extended by Pandora.LogicParser.Formula.AExp.Multiply
All Implemented Interfaces:
java.io.Serializable, java.lang.Cloneable

public class Multiply
extends AExp

Creates a multiplication expression.
Extends AExp.

See Also:
Serialized Form

Field Summary
 
Fields inherited from class Pandora.LogicParser.Formula.AExp.AExp
left, right
 
Constructor Summary
Multiply(Term left, Term right)
          Constructs a new Multiply AExp.
 
Method Summary
 java.lang.String display()
          Returns a String to display the multiply expression.
 Term sub(Term a, Term b)
          Substitutes all the occurences of Term a by Term b.
 
Methods inherited from class Pandora.LogicParser.Formula.AExp.AExp
addToSignature, clashes, clone, getLeft, getName, getRight, isIn, setVars
 
Methods inherited from class Pandora.LogicParser.Formula.Term
concatNoDup, equals, getVars, isIn, isInVars
 
Methods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Multiply

public Multiply(Term left,
                Term right)
Constructs a new Multiply AExp.

Parameters:
left - the term on the left side of the times symbol
right - the term on the right side of the times symbol
Method Detail

display

public java.lang.String display()
Returns a String to display the multiply expression.

Specified by:
display in class AExp

sub

public Term sub(Term a,
                Term b)
Substitutes all the occurences of Term a by Term b.

Specified by:
sub in class Term
Parameters:
a - represents the Term to be substituted.
b - represents the Term used to substitute the Term x