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

Quick Search    Search Deep

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


1   /*
2    * $Header: /cvsroot/feynman/src/feynman/framework/system/CartesianObject.java,v 1.1.1.1 2002/11/12 02:25:42 wesley_bailey Exp $
3    * $Revision: 1.1.1.1 $
4    * $Date: 2002/11/12 02:25:42 $
5    * $Copyright: Copyright (C) 2002 Path Integral Software $
6    */
7   package feynman.framework.system;
8   
9   /**
10   * Sub-class to define a <b>PhysicalObject</b> for the <b>CartesianSystem</b>.
11   *
12   * @author Wes Bailey
13   * @version $Revision: 1.1.1.1 $ $Date: 2002/11/12 02:25:42 $
14   */
15  abstract public class CartesianObject extends PhysicalObject {
16    
17    // Define the coordinate system that is the same for all Cartesian Objects.
18    private double x;
19    private double y;
20    private double z;
21    
22    /**
23     * Method to define the X coordinate of the object.
24     * <br>
25     * <b>Note: </b>This method should <em>NOT</em> be overriden in the user implementation.
26     */
27    public final void setX(double x) {
28      this.x = x;
29    }
30    
31    /**
32     * Use this method to retrieve the X coordinate value of the object.
33     * <br>
34     * <b>Note: </b>This method should <em>NOT</em> be overriden in the user implementation.
35     */
36    public final double getX() {
37      return x;
38    }
39    
40    /**
41     * Method to define the Y coordinate of the object.
42     * <br>
43     * <b>Note: </b>This method should <em>NOT</em> be overriden in the user implementation.
44     */
45    public final void setY(double y) {
46      this.y = y;
47    }
48    
49    /**
50     * Use this method to retrieve the Y coordinate value of the object.
51     * <br>
52     * <b>Note: </b>This method should <em>NOT</em> be overriden in the user implementation.
53     */
54    public final double getY() {
55      return y;
56    }
57    
58    /**
59     * Method to define the Z coordinate of the object.
60     * <br>
61     * <b>Note: </b>This method should <em>NOT</em> be overriden in the user implementation.
62     */
63    public final void setZ(double z) {
64      this.z = z;
65    }
66    
67    /**
68     * Use this method to retrieve the Z coordinate value of the object.
69     * <br>
70     * <b>Note: </b>This method should <em>NOT</em> be overriden in the user implementation.
71     */
72    public final double getZ() {
73      return z;
74    }
75    
76  }