|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.ObjectPredictionObject
public class PredictionObject
A PredictionObject stores information about the predictions to be made and then accepts and stores the predictions.
| Field Summary | |
|---|---|
(package private) java.util.Hashtable |
componentRFQPrices
|
(package private) boolean |
computerPriceNeeded
|
(package private) java.util.Hashtable |
computerRFQPrices
|
(package private) Message[] |
futureComponentRFQList
|
(package private) java.util.Hashtable |
futureComponentRFQPrices
|
(package private) boolean |
futureComputerPriceNeeded
|
(package private) double[] |
medianPrices
|
(package private) static int |
numComputers
|
| Constructor Summary | |
|---|---|
PredictionObject()
|
|
| Method Summary | |
|---|---|
double |
getComponentRFQPrice(int rfqID)
Allows the parser to read the prediction. |
boolean |
getComputerPriceNeeded()
Indicates whether prediction of current computer prices is required today |
double |
getComputerRFQPrice(int rfqID)
Allows the parser to read the prediction. |
Message |
getFutureComponentRFQ(int index)
Returns an RFQBundle containing a future component RFQ. |
int |
getFutureComponentRFQCount()
returns the number of future RFQs for which predictions are required |
double |
getFutureComponentRFQPrice(int rfqID)
Allows the parser to read the prediction. |
boolean |
getFutureComputerPriceNeeded()
Indicates whether prediction of future computer prices is required today |
double |
getFutureMedianComputerPrice(int productID)
Allows the parser to read the prediction. |
void |
setComponentRFQPrice(int rfqID,
double price)
specify the predicted price that will be offered for the component RFQ |
void |
setComputerPriceNeeded(boolean b)
Set by the parser. |
void |
setComputerRFQPrice(int rfqID,
double price)
specify the predicted price of the resulting computer order (if any) |
void |
setFutureComponentRFQList(Message[] list)
Set by the parser. |
void |
setFutureComponentRFQPrice(int rfqID,
double price)
specify the predicted price that will be offered for the future component RFQ |
void |
setFutureComputerPriceNeeded(boolean b)
Set by the parser. |
void |
setFutureMedianComputerPrice(int productID,
double price)
specify the predicted future median computer price |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
static final int numComputers
double[] medianPrices
boolean futureComputerPriceNeeded
boolean computerPriceNeeded
Message[] futureComponentRFQList
java.util.Hashtable computerRFQPrices
java.util.Hashtable componentRFQPrices
java.util.Hashtable futureComponentRFQPrices
| Constructor Detail |
|---|
public PredictionObject()
| Method Detail |
|---|
public void setFutureComputerPriceNeeded(boolean b)
public boolean getFutureComputerPriceNeeded()
public void setComputerPriceNeeded(boolean b)
public boolean getComputerPriceNeeded()
public void setFutureMedianComputerPrice(int productID,
double price)
productID - the ID of the computerprice - the unit pricepublic double getFutureMedianComputerPrice(int productID)
public void setComputerRFQPrice(int rfqID,
double price)
productID - the ID of the RFQprice - the unit pricepublic double getComputerRFQPrice(int rfqID)
public void setFutureComponentRFQList(Message[] list)
public int getFutureComponentRFQCount()
public Message getFutureComponentRFQ(int index)
public void setFutureComponentRFQPrice(int rfqID,
double price)
productID - the ID of the RFQprice - the unit pricepublic double getFutureComponentRFQPrice(int rfqID)
public void setComponentRFQPrice(int rfqID,
double price)
productID - the ID of the RFQprice - the unit pricepublic double getComponentRFQPrice(int rfqID)
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||