|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectorg.powertac.common.interfaces.TimeslotPhaseProcessor
org.powertac.distributionutility.DistributionUtilityService
@Service public class DistributionUtilityService
| Constructor Summary | |
|---|---|
DistributionUtilityService()
|
|
| Method Summary | |
|---|---|
void |
activate(org.joda.time.Instant time,
int phaseNumber)
|
List<org.powertac.distributionutility.DistributionUtilityService.ChargeInfo> |
balanceTimeslot(org.powertac.common.Timeslot currentTimeslot,
List<org.powertac.common.Broker> brokerList)
Generates a list of Transactions that balance the overall market. |
Double |
getBalancingCost()
|
double |
getBalancingCostMax()
|
double |
getBalancingCostMin()
|
double |
getDefaultSpotPrice()
|
Double |
getDistributionFee()
|
double |
getDistributionFeeMax()
|
double |
getDistributionFeeMin()
|
double |
getMarketBalance(org.powertac.common.Broker broker)
Returns the difference between a broker's current market position and its net load. |
double |
getPMax()
Returns the maximum price for energy in the current timeslot |
double |
getPMin()
Returns the minimum price for energy in the current timeslot |
double |
getSpotPrice()
Returns the spot market price - the clearing price for the current timeslot in the most recent trading period. |
String |
initialize(org.powertac.common.Competition competition,
List<String> completedInits)
Computes actual distribution and balancing costs by random selection |
void |
setDefaults()
|
| Methods inherited from class org.powertac.common.interfaces.TimeslotPhaseProcessor |
|---|
init, setTimeslotPhase |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public DistributionUtilityService()
| Method Detail |
|---|
public void setDefaults()
setDefaults in interface org.powertac.common.interfaces.InitializationService
public String initialize(org.powertac.common.Competition competition,
List<String> completedInits)
initialize in interface org.powertac.common.interfaces.InitializationService
public void activate(org.joda.time.Instant time,
int phaseNumber)
activate in class org.powertac.common.interfaces.TimeslotPhaseProcessorpublic double getMarketBalance(org.powertac.common.Broker broker)
public double getSpotPrice()
public double getPMax()
public double getPMin()
public List<org.powertac.distributionutility.DistributionUtilityService.ChargeInfo> balanceTimeslot(org.powertac.common.Timeslot currentTimeslot,
List<org.powertac.common.Broker> brokerList)
public double getDistributionFeeMin()
public double getDistributionFeeMax()
public Double getDistributionFee()
public double getBalancingCostMin()
public double getBalancingCostMax()
public Double getBalancingCost()
public double getDefaultSpotPrice()
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||