|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object be.ac.ua.broker.input.pricing.CSVHandler be.ac.ua.broker.input.pricing.SpotCSVHandler
public class SpotCSVHandler
Class that extends the CSVHandler in order to handle spot price access
Field Summary |
---|
Fields inherited from class be.ac.ua.broker.input.pricing.CSVHandler |
---|
fContents |
Constructor Summary | |
---|---|
SpotCSVHandler(java.lang.String inputLocation)
Constructor for SpotCSVHandler |
Method Summary | |
---|---|
java.lang.Double |
getHighValue(InstanceSpecification inst,
java.util.Date start,
java.util.Date end,
int index)
Get the spot price value that is the tipping point bid that enables the optimal scheduling of the subtasks |
org.apache.commons.math.stat.descriptive.DescriptiveStatistics |
getSpotStatistics(InstanceSpecification inst,
java.util.Date start,
java.util.Date end)
Getter for the spot price history statistics within the given time frame for the given instance specification |
java.lang.String |
getSpotValue(InstanceSpecification inst,
java.util.Date timestamp)
Getter for the spot price of the given instance at a certain moment in time using the pricing model associated with the PriceWatch implementation |
void |
update(java.lang.String inputLocation)
Update the spot price access, reload the prices form file. |
Methods inherited from class be.ac.ua.broker.input.pricing.CSVHandler |
---|
getHighValue, getStatistics, getValue, parse |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public SpotCSVHandler(java.lang.String inputLocation)
inputLocation
- the location of the spot price history input filesMethod Detail |
---|
public java.lang.String getSpotValue(InstanceSpecification inst, java.util.Date timestamp) throws InstanceNotAvailableException
inst
- the instance specification to get the spot price fortimestamp
- time to get the spot price for
InstanceNotAvailableException
public void update(java.lang.String inputLocation)
inputLocation
- the location of the spot price history input filespublic org.apache.commons.math.stat.descriptive.DescriptiveStatistics getSpotStatistics(InstanceSpecification inst, java.util.Date start, java.util.Date end) throws InstanceNotAvailableException
inst
- the instance specification to get the spot price statistics
forstart
- the start date of the time frame to get the spot price
statistics forend
- the end date of the time frame to get the spot price
statistics for
InstanceNotAvailableException
public java.lang.Double getHighValue(InstanceSpecification inst, java.util.Date start, java.util.Date end, int index) throws InstanceNotAvailableException
inst
- the instance specification to get the spot bid forstart
- the start of the time frame to get the spot bid forend
- the end of the time frame to get the spot bid forindex
- number of hours the spot price does not need to be available
java.lang.Exception
InstanceNotAvailableException
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |