Package org.powertac.distributionutility
Class DistributionUtilityService
java.lang.Object
org.powertac.common.interfaces.TimeslotPhaseProcessor
org.powertac.distributionutility.DistributionUtilityService
- All Implemented Interfaces:
InitializationService
@Service public class DistributionUtilityService extends TimeslotPhaseProcessor implements InitializationService
Implementation of the Distribution Utility function. Levies a per-timeslot
charge based on the total energy transferred to and from customers in each
broker's portfolio.
- Author:
- John Collins
-
Constructor Summary
Constructors Constructor Description DistributionUtilityService() -
Method Summary
Modifier and Type Method Description voidactivate(org.joda.time.Instant time, int phaseNumber)doublegetBalancingCost()Deprecated.For backward-compatibility only - should not be called.doublegetDefaultSpotPrice()Deprecated.For backward-compatibility only - should not be called.doublegetPMinusPrime()Deprecated.For backward-compatibility only - should not be called.doublegetPPlusPrime()Deprecated.For backward-compatibility only - should not be called.Stringinitialize(Competition competition, List<String> completedInits)Computes actual distribution and balancing costs by random selectionMethods inherited from class org.powertac.common.interfaces.TimeslotPhaseProcessor
init, setTimeslotPhase
-
Constructor Details
-
DistributionUtilityService
public DistributionUtilityService()
-
-
Method Details
-
initialize
Computes actual distribution and balancing costs by random selection- Specified by:
initializein interfaceInitializationService
-
activate
public void activate(org.joda.time.Instant time, int phaseNumber)- Specified by:
activatein classTimeslotPhaseProcessor
-
getBalancingCost
@ConfigurableValue(valueType="Double", dump=false, name="balancingCost", publish=true, description="Low end of distribution fee range") public double getBalancingCost()Deprecated.For backward-compatibility only - should not be called. -
getPPlusPrime
@ConfigurableValue(valueType="Double", name="pPlusPrime", publish=true, dump=false, description="Slope of up-regulation cost function") public double getPPlusPrime()Deprecated.For backward-compatibility only - should not be called. -
getPMinusPrime
@ConfigurableValue(valueType="Double", name="pMinusPrime", publish=true, dump=false, description="slope of down-regulation cost function") public double getPMinusPrime()Deprecated.For backward-compatibility only - should not be called. -
getDefaultSpotPrice
@ConfigurableValue(valueType="Double", name="defaultSpotPrice", publish=true, dump=false, description="value used for spot price/MWh if unavailable from market") public double getDefaultSpotPrice()Deprecated.For backward-compatibility only - should not be called.
-