edu.mit.sketch.system.constraints
Class AddExpression

java.lang.Object
  extended by edu.mit.sketch.system.constraints.ArithmaticExpression
      extended by edu.mit.sketch.system.constraints.AddExpression

public class AddExpression
extends ArithmaticExpression

Created: Fri May 31 14:47:26 2002
Copyright: Copyright (C) 2001 by MIT. All rights reserved.

Version:
$Id: AddExpression.html,v 1.3 2007-11-25 20:52:42 bpaulson Exp $
Author:
Mike Oltmans

Constructor Summary
AddExpression(ArithmaticExpression[] exps)
           
AddExpression(ArithmaticExpression exp1, ArithmaticExpression exp2)
          A convenience constructor
 
Method Summary
 double calculateValue()
          Return the value of the property.
 ArithmaticExpression copy(java.util.Map objectBindings)
          Copies the model property and then returns a new IdentityExpression
 java.lang.String toString()
           
 
Methods inherited from class edu.mit.sketch.system.constraints.ArithmaticExpression
equals, evaluate, getProperties, getUncalculatedProperties, hashCode, readyToEvaluate, reset
 
Methods inherited from class java.lang.Object
getClass, notify, notifyAll, wait, wait, wait
 

Constructor Detail

AddExpression

public AddExpression(ArithmaticExpression exp1,
                     ArithmaticExpression exp2)
A convenience constructor


AddExpression

public AddExpression(ArithmaticExpression[] exps)
Method Detail

calculateValue

public double calculateValue()
Return the value of the property. Make sure there is one first.


copy

public ArithmaticExpression copy(java.util.Map objectBindings)
Copies the model property and then returns a new IdentityExpression

Specified by:
copy in class ArithmaticExpression

toString

public java.lang.String toString()
Specified by:
toString in class ArithmaticExpression