|
|||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||
java.lang.Object | +--Stock
| Constructor Summary | |
Stock()
default constuctor |
|
Stock(java.lang.String stockName,
double origPrice1,
double currPrice1,
Sector type1)
construcutor method to allow input |
|
| Method Summary | |
void |
changeCurrentPrice()
method to change the current price based on the type of day for the sector |
double |
getCurrentPrice()
method to get the current price of the stock |
java.lang.String |
getName()
method to get the name of the stock |
double |
getOriginalPrice()
method to get the original price paid for stock |
Sector |
getType()
method to get the Sector type |
void |
setPrice()
method to determine the change in the price based on a number randomly chosen from 0 to 1 and multiplied by the indicator for the sector |
java.lang.String |
toString()
report for validation purposes |
| Methods inherited from class java.lang.Object |
clone,
equals,
finalize,
getClass,
hashCode,
notify,
notifyAll,
wait,
wait,
wait |
| Constructor Detail |
public Stock()
public Stock(java.lang.String stockName,
double origPrice1,
double currPrice1,
Sector type1)
| Method Detail |
public java.lang.String getName()
public Sector getType()
public double getOriginalPrice()
public double getCurrentPrice()
public void changeCurrentPrice()
no - parameterspublic void setPrice()
no - parameterspublic java.lang.String toString()
no - parameters
|
|||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||