All Packages  Class Hierarchy  This Package  Previous  Next  Index

Class optionCalc.Key

java.lang.Object
   |
   +----optionCalc.Key

public class Key
extends Object
implements KeyInterface

Variable Index

 o aux_process
The (double) aux process value
 o option_value
The (double) option value
 o stock_price
The (double) stock price
 o t
The (int) time value

Constructor Index

 o Key(int, double, double)
Constructs a Key object, and sets the initial value of the time, stock price,and aux process.

Method Index

 o isEqual(KeyInterface)
Compares Key objects
 o isLessThan(KeyInterface)
Checks whether this key is less than the given key
 o printKey()
Prints the data in this Key object

Variables

 o t
 public int t
The (int) time value

 o stock_price
 public double stock_price
The (double) stock price

 o aux_process
 public double aux_process
The (double) aux process value

 o option_value
 public double option_value
The (double) option value

Constructors

 o 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

Methods

 o printKey
 public void printKey()
Prints the data in this Key object

 o isEqual
 public boolean isEqual(KeyInterface key)
Compares Key objects

Parameters:
key - the (Key) to compare against
 o 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