Ported over bamboo benchmarks for use as non-Bamboo java benchmarks.
[IRC.git] / Robust / src / Benchmarks / Scheduling / GC / NON_BAMBOO / JGFMonteCarlo / PathId.java
1 /** Banboo Version  **/
2
3 /**************************************************************************
4 *                                                                         *
5 *         Java Grande Forum Benchmark Suite - Thread Version 1.0          *
6 *                                                                         *
7 *                            produced by                                  *
8 *                                                                         *
9 *                  Java Grande Benchmarking Project                       *
10 *                                                                         *
11 *                                at                                       *
12 *                                                                         *
13 *                Edinburgh Parallel Computing Centre                      *
14 *                                                                         *
15 *                email: epcc-javagrande@epcc.ed.ac.uk                     *
16 *                                                                         *
17 *      Original version of this code by Hon Yau (hwyau@epcc.ed.ac.uk)     *
18 *                                                                         *
19 *      This version copyright (c) The University of Edinburgh, 2001.      *
20 *                         All rights reserved.                            *
21 *                                                                         *
22 **************************************************************************/
23
24 /**
25   * Base class for all the security objects, namely in terms of
26   * providing a consistent means of identifying each such object.
27   * Also provides some methods for writing out debug messages.
28   *
29   * @author H W Yau
30   * @version $Revision: 1.1 $ $Date: 2011/07/13 23:49:52 $
31   */
32 public class PathId {
33
34   //------------------------------------------------------------------------
35   // Instance variables.
36   //------------------------------------------------------------------------
37   /**
38     * Simple string name.
39     */
40   public String name;
41
42   /**
43     * The start date for the path, in YYYYMMDD format.
44     */
45   public int startDate;
46   /**
47     * The end date for the path, in YYYYMMDD format.
48     */
49   public int endDate;
50   /**
51     * The change in time between two successive data values.
52     */
53   public float dTime;
54
55   //------------------------------------------------------------------------
56   // Constructors.
57   //------------------------------------------------------------------------
58   /**
59     * Default constructor.
60     */
61   public PathId() {
62     this.startDate=0;
63     this.endDate=0;
64     this.dTime=(float)0.0;
65   }
66
67   /**
68     * Another constructor.
69     *
70     * @param name The name for the security to record.
71     */
72   public PathId(String name) {
73     this.name = name;
74     this.startDate=0;
75     this.endDate=0;
76     this.dTime=(float)0.0;
77   }
78
79   //------------------------------------------------------------------------
80   // Methods.
81   //------------------------------------------------------------------------
82   //------------------------------------------------------------------------
83   // Accessor methods for class PathId.
84   // Generated by 'makeJavaAccessor.pl' script.  HWY.  20th January 1999.
85   //------------------------------------------------------------------------
86   /**
87     * Accessor method for private instance variable <code>name</code>.
88     *
89     * @return Value of instance variable <code>name</code>.
90     * @exception DemoException thrown if instance variable <code>name</code> is undefined.
91     */
92   /*public String get_name() {
93     return(this.name);
94   }*/
95   /**
96     * Set method for private instance variable <code>name</code>.
97     *
98     * @param name the value to set for the instance variable <code>name</code>.
99     */
100   public void set_name(String name) {
101     this.name = name;
102   }
103   /**
104     * Accessor method for private instance variable <code>startDate</code>.
105     *
106     * @return Value of instance variable <code>startDate</code>.
107     * @exception DemoException thrown if instance variable <code>startDate</code> is undefined.
108     */
109   /*public int get_startDate() {
110     return(this.startDate);
111   }*/
112   /**
113     * Set method for private instance variable <code>startDate</code>.
114     *
115     * @param startDate the value to set for the instance variable <code>startDate</code>.
116     */
117   public void set_startDate(int startDate) {
118     this.startDate = startDate;
119   }
120   /**
121     * Accessor method for private instance variable <code>endDate</code>.
122     *
123     * @return Value of instance variable <code>endDate</code>.
124     * @exception DemoException thrown if instance variable <code>endDate</code> is undefined.
125     */
126   /*public int get_endDate() {
127     return(this.endDate);
128   }*/
129   /**
130     * Set method for private instance variable <code>endDate</code>.
131     *
132     * @param endDate the value to set for the instance variable <code>endDate</code>.
133     */
134   public void set_endDate(int endDate) {
135     this.endDate = endDate;
136   }
137   /**
138     * Accessor method for private instance variable <code>dTime</code>.
139     *
140     * @return Value of instance variable <code>dTime</code>.
141     * @exception DemoException thrown if instance variable <code>dTime</code> is undefined.
142     */
143   /*public float get_dTime() {
144     return(this.dTime);
145   }*/
146   /**
147     * Set method for private instance variable <code>dTime</code>.
148     *
149     * @param dTime the value to set for the instance variable <code>dTime</code>.
150     */
151   public void set_dTime(float dTime) {
152     this.dTime = dTime;
153   }
154   //------------------------------------------------------------------------
155   /**
156     * Clone the instance variables in this class, from another instance
157     * of this class.
158     *
159     * @param obj the PathId object from which to copy.
160     * @exception DemoException thrown if the values to be copied contain
161     *                          any undefined objects.
162     */
163   public void copyInstanceVariables(PathId obj) {
164     this.name      = obj.name;
165     this.startDate = obj.startDate;
166     this.endDate   = obj.endDate;
167     this.dTime     = obj.dTime;
168   }
169   /**
170     * Dumps the contents of the fields, to standard-out, for debugging.
171     */
172   public void dbgDumpFields() {
173 //    dbgPrintln("name="     +this.name);
174 //    dbgPrintln("startDate="+this.startDate);
175 //    dbgPrintln("endDate="  +this.endDate);
176 //    dbgPrintln("dTime="    +this.dTime);
177   }
178 }
179