All Packages Class Hierarchy This Package Previous Next Index
Class optionCalc.Key
java.lang.Object
|
+----optionCalc.Key
- public class Key
- extends Object
- implements KeyInterface
-
aux_process
- The (double) aux process value
-
option_value
- The (double) option value
-
stock_price
- The (double) stock price
-
t
- The (int) time value
-
Key(int, double, double)
- Constructs a Key object, and sets the initial value
of the time, stock price,and aux process.
-
isEqual(KeyInterface)
- Compares Key objects
-
isLessThan(KeyInterface)
- Checks whether this key is less than the given key
-
printKey()
- Prints the data in this Key object
t
public int t
- The (int) time value
stock_price
public double stock_price
- The (double) stock price
aux_process
public double aux_process
- The (double) aux process value
option_value
public double option_value
- The (double) option value
Key
public Key(int t,
double s,
double p)
- Constructs a Key object, and sets the initial value
of the time, stock price,and aux process.
- Parameters:
- t - the (int) time value
- s - the (double) stock price
- p - the (double) aux process value
printKey
public void printKey()
- Prints the data in this Key object
isEqual
public boolean isEqual(KeyInterface key)
- Compares Key objects
- Parameters:
- key - the (Key) to compare against
isLessThan
public boolean isLessThan(KeyInterface key)
- Checks whether this key is less than the given key
- Parameters:
- k - the (KeyInterface) to the comparison object
All Packages Class Hierarchy This Package Previous Next Index