edu.cmu.relativelayout.equation
Class Variable

java.lang.Object
  extended by edu.cmu.relativelayout.equation.Variable

public class Variable
extends Object

This class is the type for variables in equations.

Author:
Rachael Bennett (srbennett@gmail.com), Brian Ellis (phoenix1701@gmail.com)

Method Summary
 boolean equals(Object theObj)
           
static Variable get(String name)
          Returns a Variable initialized with the given name, creating it if it does not already exist.
 String getName()
          Returns ths name of this variable.
 int hashCode()
           
 String toString()
           
 
Methods inherited from class java.lang.Object
getClass, notify, notifyAll, wait, wait, wait
 

Method Detail

get

public static Variable get(String name)
Returns a Variable initialized with the given name, creating it if it does not already exist.


equals

public boolean equals(Object theObj)
Overrides:
equals in class Object
See Also:
Object.equals(java.lang.Object)

getName

public String getName()
Returns ths name of this variable.


hashCode

public int hashCode()
Overrides:
hashCode in class Object
See Also:
Object.hashCode()

toString

public String toString()
Overrides:
toString in class Object