|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object be.ac.ua.broker.allocation.spot.model.SrcRecord
public class SrcRecord
The SrcRecord class contains the price history data for the instance/category that is being simulated. It also determines the lowest and highest value for that category/instance type.
Constructor Summary | |
---|---|
SrcRecord(java.lang.String fileName,
java.lang.String instance)
Constructor for SrcRecord |
Method Summary | |
---|---|
void |
determineLowestAndHighest()
Determine the lowest and highest historic price. |
java.lang.String |
getFileName()
|
java.lang.Double |
getHighest()
Getter for the highest value/spot price . |
java.lang.String |
getInstanceType()
|
java.lang.Double |
getLowest()
Getter for the lowest value/spot price. |
int |
getRecord()
|
double[] |
getSrcdata()
Getter for the array containing all the spot prices over time |
void |
setData(int i,
double val)
Setter for the historic spot price of the given record. |
void |
setRecord(int rec)
Setter for the number of records |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public SrcRecord(java.lang.String fileName, java.lang.String instance)
fileName
- name of the price history input CSV fileinstance
- the instance type/category the corresponding file contains the
data ofMethod Detail |
---|
public void setData(int i, double val)
i
- the record numberval
- the price valuepublic double[] getSrcdata()
public void setRecord(int rec)
cat
- the number of recordspublic int getRecord()
public java.lang.Double getLowest()
public java.lang.Double getHighest()
public java.lang.String getFileName()
public java.lang.String getInstanceType()
public void determineLowestAndHighest()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |