|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--feynman.framework.system.PhysicalSystem
A ObjectSystem is a collection of Objects that are being studied. This Interface describes the operations that can be performed on the system.
Method Summary | |
abstract boolean |
add(java.lang.Object item)
Override this method to add an object of your defined type to the system. |
boolean |
contains(java.lang.Object item)
Use this method to query if a Object is part of the system. |
boolean |
isEmpty()
Use this method to query the system to see if there are any objects in it. |
java.util.Iterator |
iterator()
Use this method to get and iterator over all objects in the system. |
boolean |
remove(java.lang.Object item)
Use this method to remove a Object from the system. |
int |
size()
Use this method to determine the number of Objects in the system. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Method Detail |
public boolean contains(java.lang.Object item)
public abstract boolean add(java.lang.Object item)
public boolean remove(java.lang.Object item)
public int size()
public boolean isEmpty()
public java.util.Iterator iterator()
NOTE: This method is preferred to using and array or other means to accomplish the task of looping through the objects in the system.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |