RegionID Class Reference

List of all members.

Public Member Functions

 RegionID (Region r)
boolean equals (Object o)
 Same name, origin, and dimensions.
int hashCode ()
 Makes HashMaps work.
String toString ()

Detailed Description

Allows us to save and load to/from xml files, because we can identify regions more or less uniquely this way.

This software is distributed under the BSD License.

Author:
Ron B Yeh (ronyeh(AT)cs.stanford.edu)

Definition at line 18 of file RegionID.java.


Member Function Documentation

boolean equals ( Object  o  ) 

Same name, origin, and dimensions.

Good enough for now!

See also:
java.lang.Object.equals(java.lang.Object)

Definition at line 43 of file RegionID.java.

References Units.equals(), RegionID.height, RegionID.name, RegionID.originX, RegionID.originY, and RegionID.width.

int hashCode (  ) 

Makes HashMaps work.

WARNING: Did this contribute to the Region Naming bug? TODO: Make it a nicer hashcode function.

See also:
java.lang.Object.hashCode()

Definition at line 59 of file RegionID.java.

References Units.getValue().

String toString (  ) 

See also:
java.lang.Object.toString()

Definition at line 67 of file RegionID.java.


The documentation for this class was generated from the following file:
Generated on Sat Apr 14 18:21:42 2007 for R3 Paper Toolkit by  doxygen 1.4.7