A C G M P S T

A

addStock(Stock, int) - Method in class Portfolio
method to add a stock to the existing portfolio

C

changeCurrentPrice() - Method in class Stock
method to change the current price based on the type of day for the sector

G

getBuyPrice() - Method in class StockCertificate
method to get the purchase price of each stock
getBuyValue() - Method in class Portfolio
method to get the value of the portfolio at the time of purchase
getChance() - Method in class Sector
method to get the chance
getCurrentPrice() - Method in class Stock
method to get the current price of the stock
getDaysSincePurchase() - Method in class Portfolio
method to get the number of days since the purchase of the portfolio
getGoodDay() - Method in class Sector
boolean method to determine whether it was a good day for the sector
getIndicator() - Method in class Sector
method to get the indicator
getName() - Method in class Sector
method to get the name of the sector
getName() - Method in class Stock
method to get the name of the stock
getOriginalPrice() - Method in class Stock
method to get the original price paid for stock
getShares() - Method in class StockCertificate
method to get the number of shares of each stock
getStocks() - Method in class StockCertificate
method to get the stocks in the array
getTotalValue() - Method in class Portfolio
method to get the current total value of the portfolio
getType() - Method in class Stock
method to get the Sector type
getTypeDay() - Method in class Sector
method to get the type of day for the sector
goodDay() - Method in class Sector
method to set whether it is a good day for the sector based on the randomly chosen typeDay variable and comparing it to the chance variable

M

main(String[]) - Static method in class PortfolioTest
 

P

Portfolio - class Portfolio.
 
Portfolio() - Constructor for class Portfolio
default constuctor
PortfolioTest - class PortfolioTest.
 
PortfolioTest() - Constructor for class PortfolioTest
 

S

Sector - class Sector.
Homework Assignment Number: 3, Problem Number: 2, File Name: Sector.java Creates a sector classification used for each Stock object.
Sector() - Constructor for class Sector
default constuctor
Sector(String, double, double) - Constructor for class Sector
construcutor method to allow input
setPrice() - Method in class Stock
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
setTotalValue() - Method in class Portfolio
method to set the total value for the portfolio based on the array of stocks
setTypeDay() - Method in class Sector
method to randomly choose a number between 0 and 1 and assign it to typeDay
Stock - class Stock.
 
Stock() - Constructor for class Stock
default constuctor
Stock(String, double, double, Sector) - Constructor for class Stock
construcutor method to allow input
StockCertificate - class StockCertificate.
 
StockCertificate() - Constructor for class StockCertificate
default constuctor
StockCertificate(Stock, int) - Constructor for class StockCertificate
construcutor method to allow input

T

toString() - Method in class Portfolio
generate output report with values for portfolio
toString() - Method in class Sector
report for validation purposes
toString() - Method in class Stock
report for validation purposes
toString() - Method in class StockCertificate
report for validation purposes

A C G M P S T