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
All Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description void
activate(org.joda.time.Instant time, int phaseNumber)
This method gets called once during each timeslot.double
getBalancingCost()
Deprecated.For backward-compatibility only - should not be called.double
getDefaultSpotPrice()
Deprecated.For backward-compatibility only - should not be called.double
getPMinusPrime()
Deprecated.For backward-compatibility only - should not be called.double
getPPlusPrime()
Deprecated.For backward-compatibility only - should not be called.String
initialize(Competition competition, List<String> completedInits)
Computes actual distribution and balancing costs by random selection-
Methods inherited from class org.powertac.common.interfaces.TimeslotPhaseProcessor
init, setTimeslotPhase
-
-
-
-
Method Detail
-
initialize
public String initialize(Competition competition, List<String> completedInits)
Computes actual distribution and balancing costs by random selection- Specified by:
initialize
in interfaceInitializationService
-
activate
public void activate(org.joda.time.Instant time, int phaseNumber)
Description copied from class:TimeslotPhaseProcessor
This method gets called once during each timeslot. To get called, the module must first call the register(phaseNumber) method on CompetitionControl. The call will give the current simulation time and phase number in the arguments.- Specified by:
activate
in 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.
-
-