add c version for JGFMonteCarlo benchmark and did some tunning of the Bamboo version
[IRC.git] / Robust / src / Benchmarks / Scheduling / JGFMonteCarlo / ToResult.java
index cd0396c0f87362aa558e266c5aaf241f68fc7f66..231907908986e98641cbaadaa37165baab3bb596 100644 (file)
   * the Monte Carlo generate rate path.
   *
   * @author H W Yau
-  * @version $Revision: 1.1 $ $Date: 2008/08/18 22:22:21 $
+  * @version $Revision: 1.2 $ $Date: 2009/02/13 21:37:19 $
   */
 public class ToResult {
-  private String header;
-  private float expectedReturnRate;
-  private float volatility;
-  private float volatility2;
-  private float finalStockPrice;
-  private float[] pathValue;
+  //private String header;
+  public float expectedReturnRate;
+  public float volatility;
+  public float volatility2;
+  public float finalStockPrice;
+  public float[] pathValue;
 
   /**
     * Constructor, for the results from a computation.
@@ -42,9 +42,13 @@ public class ToResult {
     * @param header Simple header string.
     * @param pathValue Data computed by the Monte Carlo generator.
     */
-  public ToResult(String header, float expectedReturnRate, float volatility, 
-  float volatility2, float finalStockPrice, float[] pathValue) {
-    this.header=header;
+  public ToResult(/*String header, */
+                 float expectedReturnRate, 
+                 float volatility, 
+                 float volatility2, 
+                 float finalStockPrice, 
+                 float[] pathValue) {
+    //this.header=header;
     this.expectedReturnRate = expectedReturnRate;
     this.volatility = volatility;
     this.volatility2 = volatility2;
@@ -56,9 +60,9 @@ public class ToResult {
     *
     * @return String representation of this object.
     */
-  public String toString(){
+  /*public String toString(){
     return(header);
-  }
+  }*/
   //------------------------------------------------------------------------
   // Accessor methods for class ToResult.
   // Generated by 'makeJavaAccessor.pl' script.  HWY.  20th January 1999.
@@ -68,25 +72,25 @@ public class ToResult {
     *
     * @return Value of instance variable <code>header</code>.
     */
-  public String get_header() {
+  /*public String get_header() {
     return(this.header);
-  }
+  }*/
   /**
     * Set method for private instance variable <code>header</code>.
     *
     * @param header the value to set for the instance variable <code>header</code>.
     */
-  public void set_header(String header) {
+  /*public void set_header(String header) {
     this.header = header;
-  }
+  }*/
   /**
     * Accessor method for private instance variable <code>expectedReturnRate</code>.
     *
     * @return Value of instance variable <code>expectedReturnRate</code>.
     */
-  public float get_expectedReturnRate() {
+  /*public float get_expectedReturnRate() {
     return(this.expectedReturnRate);
-  }
+  }*/
   /**
     * Set method for private instance variable <code>expectedReturnRate</code>.
     *
@@ -101,9 +105,9 @@ public class ToResult {
     *
     * @return Value of instance variable <code>volatility</code>.
     */
-  public float get_volatility() {
+  /*public float get_volatility() {
     return(this.volatility);
-  }
+  }*/
   /**
     * Set method for private instance variable <code>volatility</code>.
     *
@@ -117,9 +121,9 @@ public class ToResult {
     *
     * @return Value of instance variable <code>volatility2</code>.
     */
-  public float get_volatility2() {
+  /*public float get_volatility2() {
     return(this.volatility2);
-  }
+  }*/
   /**
     * Set method for private instance variable <code>volatility2</code>.
     *
@@ -133,9 +137,9 @@ public class ToResult {
     *
     * @return Value of instance variable <code>finalStockPrice</code>.
     */
-  public float get_finalStockPrice() {
+  /*public float get_finalStockPrice() {
     return(this.finalStockPrice);
-  }
+  }*/
   /**
     * Set method for private instance variable <code>finalStockPrice</code>.
     *
@@ -150,9 +154,9 @@ public class ToResult {
     *
     * @return Value of instance variable <code>pathValue</code>.
     */
-  public float[] get_pathValue() {
+  /*public float[] get_pathValue() {
     return(this.pathValue);
-  }
+  }*/
   /**
     * Set method for private instance variable <code>pathValue</code>.
     *