* 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.
* @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;
*
* @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.
*
* @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>.
*
*
* @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>.
*
*
* @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>.
*
*
* @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>.
*
*
* @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>.
*