|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--feynman.framework.system.PhysicalObject
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.
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 |
public PhysicalObject()
Method Detail |
public final void setId(int id)
id
- An integer value for the unique identifier.public final int getId()
public final boolean equals(PhysicalObject po)
po
- The physical object to compare to this.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |