feynman.framework.system
Class PhysicalSystem

java.lang.Object
  |
  +--feynman.framework.system.PhysicalSystem

public abstract class PhysicalSystem
extends java.lang.Object

A ObjectSystem is a collection of Objects that are being studied. This Interface describes the operations that can be performed on the system.

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

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

contains

public boolean contains(java.lang.Object item)
Use this method to query if a Object is part of the system.

add

public abstract boolean add(java.lang.Object item)
Override this method to add an object of your defined type to the system.

remove

public boolean remove(java.lang.Object item)
Use this method to remove a Object from the system.

size

public int size()
Use this method to determine the number of Objects in the system.

isEmpty

public boolean isEmpty()
Use this method to query the system to see if there are any objects in it.

iterator

public java.util.Iterator iterator()
Use this method to get and iterator over all objects in the system.

NOTE: This method is preferred to using and array or other means to accomplish the task of looping through the objects in the system.