feynman.framework.system
Class PhysicalObject

java.lang.Object
  |
  +--feynman.framework.system.PhysicalObject
Direct Known Subclasses:
CartesianObject

public abstract class PhysicalObject
extends java.lang.Object

The class is really just a symbolic name that means more to physicists than the default Java Object class name means. It also helps to avoid confusion with the System class by establishing the semantic pattern in the framework of PhysicalObject and its counterpart PhysicalSystem. It does provide its sub-classes with an identifier mechanism and and equals method based on the unique identifier. This is useful for systems that contain many objects.

Version:
$Revision: 1.1.1.1 $ $Date: 2002/11/12 02:25:43 $
Author:
Wes Bailey

Constructor Summary
PhysicalObject()
           
 
Method Summary
 boolean equals(PhysicalObject po)
          Use this method to test if the PhysicalObject you are working with is equal to another that you are using.
 int getId()
          Use this method to get the unique identifier.
 void setId(int id)
          Use this method to assign a unique identifier.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

PhysicalObject

public PhysicalObject()
Method Detail

setId

public final void setId(int id)
Use this method to assign a unique identifier.
Parameters:
id - An integer value for the unique identifier.

getId

public final int getId()
Use this method to get the unique identifier.

equals

public final boolean equals(PhysicalObject po)
Use this method to test if the PhysicalObject you are working with is equal to another that you are using.
Parameters:
po - The physical object to compare to this.