Docjar: A Java Source and Docuemnt Enginecom.*    java.*    javax.*    org.*    all    new    plug-in

Quick Search    Search Deep

Source code: feynman/framework/system/CartesianSystem.java


1   /*
2    * $Header: /cvsroot/feynman/src/feynman/framework/system/CartesianSystem.java,v 1.1.1.1 2002/11/12 02:25:43 wesley_bailey Exp $
3    * $Revision: 1.1.1.1 $
4    * $Date: 2002/11/12 02:25:43 $
5    * $Copyright: Copyright (C) 2002 Path Integral Software $
6    */
7   package feynman.framework.system;
8   
9   /**
10   * Class that creates a system of <b>CartesianObjects</b>.
11   *
12   * @author Wes Bailey
13   * @version $Revision: 1.1.1.1 $ $Date: 2002/11/12 02:25:43 $
14   */
15  class CartesianSystem extends PhysicalSystem {
16    
17    /**
18     * Overriden method to ensure the object being added is a CartesianObject.
19     *
20     * @param item <b>CartesianObject</b> that is being added to the system.
21     */
22    public boolean add(Object item) {
23      if (item instanceof CartesianObject) {
24        if (system.add(item)) {
25          return true;
26        } else {
27          return false;
28        }
29      } else {
30        return false;
31      }
32    }
33    
34  }