From: jzhou Date: Fri, 13 Feb 2009 21:42:02 +0000 (+0000) Subject: *** empty log message *** X-Git-Url: http://demsky.eecs.uci.edu/git/?a=commitdiff_plain;h=ca381a00442522d5e9684726f5fd396dd954a783;p=IRC.git *** empty log message *** --- diff --git a/Robust/src/Benchmarks/Scheduling/JGFMonteCarlo/ToInitAllTasks.java b/Robust/src/Benchmarks/Scheduling/JGFMonteCarlo/ToInitAllTasks.java deleted file mode 100644 index 41fe33e6..00000000 --- a/Robust/src/Benchmarks/Scheduling/JGFMonteCarlo/ToInitAllTasks.java +++ /dev/null @@ -1,273 +0,0 @@ -/** Banboo Version **/ - -/************************************************************************** -* * -* Java Grande Forum Benchmark Suite - Thread Version 1.0 * -* * -* produced by * -* * -* Java Grande Benchmarking Project * -* * -* at * -* * -* Edinburgh Parallel Computing Centre * -* * -* email: epcc-javagrande@epcc.ed.ac.uk * -* * -* Original version of this code by Hon Yau (hwyau@epcc.ed.ac.uk) * -* * -* This version copyright (c) The University of Edinburgh, 2001. * -* All rights reserved. * -* * -**************************************************************************/ - -/** - * Class for defining the initialisation data for all tasks. - * - * @author H W Yau - * @version $Revision: 1.1 $ $Date: 2008/08/18 22:22:21 $ - */ -public class ToInitAllTasks { - private String header; - private String name; - private int startDate; - private int endDate; - private float dTime; - private int returnDefinition; - private float expectedReturnRate; - private float volatility; - private int nTimeSteps; - private float pathStartValue; - - /** - * Constructor, for initialisation data which are common to all - * computation tasks. - * - * @param header Simple header string. - * @param name The name of the security which this Monte Carlo path - * should represent. - * @param startDate The date when the path starts, in 'YYYYMMDD' format. - * @param endDate The date when the path ends, in 'YYYYMMDD' format. - * @param dTime The interval in the data between successive data points - * in the generated path. - * @param returnDefinition How the statistic variables were defined, - * according to the definitions in - * ReturnPath's two class variables - * COMPOUNDED and - * NONCOMPOUNDED. - * @param expectedReturnRate The measured expected return rate for which - * to generate. - * @param volatility The measured volatility for which to generate. - * @param nTimeSteps The number of time steps for which to generate. - * @param pathStartValue The stock price value to use at the start of each - * Monte Carlo simulation path. - */ - public ToInitAllTasks(String header, String name, int startDate, int endDate, - float dTime, int returnDefinition, float expectedReturnRate, float volatility, - float pathStartValue) { - this.header = header; - this.name = name; - this.startDate = startDate; - this.endDate = endDate; - this.dTime = dTime; - this.returnDefinition = returnDefinition; - this.expectedReturnRate = expectedReturnRate; - this.volatility = volatility; - this.nTimeSteps = nTimeSteps; - this.pathStartValue = pathStartValue; - } - /** - * Another constructor, slightly easier to use by having slightly - * fewer arguments. Makes use of the "ReturnPath" object to - * accomplish this. - * - * @param obj Object used to define the instance variables which - * should be carried over to this object. - * @param nTimeSteps The number of time steps which the Monte - * Carlo generator should make. - * @param pathStartValue The stock price value to use at the start of each - * Monte Carlo simulation path. - * @exception DemoException thrown if there is a problem accessing the - * instance variables from the target objetct. - */ - public ToInitAllTasks(ReturnPath obj, int nTimeSteps, float pathStartValue) { - // - // Instance variables defined in the PathId object. - this.name = obj.get_name(); - this.startDate = obj.get_startDate(); - this.endDate = obj.get_endDate(); - this.dTime = obj.get_dTime(); - // - // Instance variables defined in ReturnPath object. - this.returnDefinition = obj.get_returnDefinition(); - this.expectedReturnRate = obj.get_expectedReturnRate(); - this.volatility = obj.get_volatility(); - this.nTimeSteps = nTimeSteps; - this.pathStartValue = pathStartValue; - } - //------------------------------------------------------------------------ - // Accessor methods for class ToInitAllTasks. - // Generated by 'makeJavaAccessor.pl' script. HWY. 20th January 1999. - //------------------------------------------------------------------------ - /** - * Accessor method for private instance variable header. - * - * @return Value of instance variable header. - */ - public String get_header() { - return(this.header); - } - /** - * Set method for private instance variable header. - * - * @param header the value to set for the instance variable header. - */ - public void set_header(String header) { - this.header = header; - } - /** - * Accessor method for private instance variable name. - * - * @return Value of instance variable name. - */ - public String get_name() { - return(this.name); - } - /** - * Set method for private instance variable name. - * - * @param name the value to set for the instance variable name. - */ - public void set_name(String name) { - this.name = name; - } - /** - * Accessor method for private instance variable startDate. - * - * @return Value of instance variable startDate. - */ - public int get_startDate() { - return(this.startDate); - } - /** - * Set method for private instance variable startDate. - * - * @param startDate the value to set for the instance variable startDate. - */ - public void set_startDate(int startDate) { - this.startDate = startDate; - } - /** - * Accessor method for private instance variable endDate. - * - * @return Value of instance variable endDate. - */ - public int get_endDate() { - return(this.endDate); - } - /** - * Set method for private instance variable endDate. - * - * @param endDate the value to set for the instance variable endDate. - */ - public void set_endDate(int endDate) { - this.endDate = endDate; - } - /** - * Accessor method for private instance variable dTime. - * - * @return Value of instance variable dTime. - */ - public float get_dTime() { - return(this.dTime); - } - /** - * Set method for private instance variable dTime. - * - * @param dTime the value to set for the instance variable dTime. - */ - public void set_dTime(float dTime) { - this.dTime = dTime; - } - /** - * Accessor method for private instance variable returnDefinition. - * - * @return Value of instance variable returnDefinition. - */ - public int get_returnDefinition() { - return(this.returnDefinition); - } - /** - * Set method for private instance variable returnDefinition. - * - * @param returnDefinition the value to set for the instance variable returnDefinition. - */ - public void set_returnDefinition(int returnDefinition) { - this.returnDefinition = returnDefinition; - } - /** - * Accessor method for private instance variable expectedReturnRate. - * - * @return Value of instance variable expectedReturnRate. - */ - public float get_expectedReturnRate() { - return(this.expectedReturnRate); - } - /** - * Set method for private instance variable expectedReturnRate. - * - * @param expectedReturnRate the value to set for the instance variable expectedReturnRate. - */ - public void set_expectedReturnRate(float expectedReturnRate) { - this.expectedReturnRate = expectedReturnRate; - } - /** - * Accessor method for private instance variable volatility. - * - * @return Value of instance variable volatility. - */ - public float get_volatility() { - return(this.volatility); - } - /** - * Set method for private instance variable volatility. - * - * @param volatility the value to set for the instance variable volatility. - */ - public void set_volatility(float volatility) { - this.volatility = volatility; - } - /** - * Accessor method for private instance variable nTimeSteps. - * - * @return Value of instance variable nTimeSteps. - */ - public int get_nTimeSteps() { - return(this.nTimeSteps); - } - /** - * Set method for private instance variable nTimeSteps. - * - * @param nTimeSteps the value to set for the instance variable nTimeSteps. - */ - public void set_nTimeSteps(int nTimeSteps) { - this.nTimeSteps = nTimeSteps; - } - /** - * Accessor method for private instance variable pathStartValue. - * - * @return Value of instance variable pathStartValue. - */ - public float get_pathStartValue() { - return(this.pathStartValue); - } - /** - * Set method for private instance variable pathStartValue. - * - * @param pathStartValue the value to set for the instance variable pathStartValue. - */ - public void set_pathStartValue(float pathStartValue) { - this.pathStartValue = pathStartValue; - } - //------------------------------------------------------------------------ -}