formulaVisited
Class Named

java.lang.Object
  extended by formulaVisited.Named
All Implemented Interfaces:
java.lang.Comparable
Direct Known Subclasses:
LogicalVariable

public abstract class Named
extends java.lang.Object
implements java.lang.Comparable

The superclass of all named objects in the package.


Constructor Summary
Named(java.lang.String _name)
           
 
Method Summary
 int compareTo(java.lang.Object _b)
          Compares two named objects for order, by name.
 boolean equals(java.lang.Object _b)
          Compares two named objects for equality, by name.
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Named

public Named(java.lang.String _name)
Method Detail

equals

public boolean equals(java.lang.Object _b)
Compares two named objects for equality, by name.

Overrides:
equals in class java.lang.Object
Parameters:
_b - The other object.
Returns:
true iff this objects's name is the same as the other's.
Throws:
java.lang.ClassCastException - If the other object is not also a named object.

compareTo

public int compareTo(java.lang.Object _b)
Compares two named objects for order, by name.

Specified by:
compareTo in interface java.lang.Comparable
Parameters:
_b - The other object.
Returns:
-1, 0, or 1 iff this object's name is less than, the same as, or greater than the other's.
Throws:
java.lang.ClassCastException - If the other object is not also a named object.