Package agents.policy
Class SetPolicies
- java.lang.Object
-
- agents.policy.SetPolicies
-
public class SetPolicies extends Object
Controls all set-specific policy items- Author:
- Christoph Schimeczek
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description class
SetPolicies.SetPolicyItems
Holds set-specific support policies
-
Constructor Summary
Constructors Constructor Description SetPolicies()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
addSetPolicyItem(String set, PolicyItem policyItem)
Associates the givenPolicyItem
with the specified setSupportPolicy.EnergyCarrier
getEnergyCarrier(String set)
Returns theSupportPolicy.EnergyCarrier
associated with a given setPolicyItem
getPolicyItem(String set, PolicyItem.SupportInstrument instrument)
FetchesPolicyItem
for given set andPolicyItem.SupportInstrument
SupportData
getSupportData(TechnologySet technologySet)
Create a link between the givenTechnologySet
's set and its associatedPolicyItem
void
register(TechnologySet technologySet)
Registers the givenTechnologySet
for later evaluation
-
-
-
Method Detail
-
addSetPolicyItem
public void addSetPolicyItem(String set, PolicyItem policyItem)
Associates the givenPolicyItem
with the specified set- Parameters:
set
- to be associated with the given policypolicyItem
- to be associated with the given set
-
register
public void register(TechnologySet technologySet)
Registers the givenTechnologySet
for later evaluation- Parameters:
technologySet
- to be registered- Throws:
RuntimeException
- if the set of the givenTechnologySet
has no associatedPolicyItem
-
getEnergyCarrier
public SupportPolicy.EnergyCarrier getEnergyCarrier(String set)
Returns theSupportPolicy.EnergyCarrier
associated with a given set- Parameters:
set
- to find theSupportPolicy.EnergyCarrier
for- Returns:
- the associated
SupportPolicy.EnergyCarrier
-
getSupportData
public SupportData getSupportData(TechnologySet technologySet)
Create a link between the givenTechnologySet
's set and its associatedPolicyItem
- Parameters:
technologySet
- to link with its associatedPolicyItem
- Returns:
- new
SupportData
-
getPolicyItem
public PolicyItem getPolicyItem(String set, PolicyItem.SupportInstrument instrument)
FetchesPolicyItem
for given set andPolicyItem.SupportInstrument
- Parameters:
set
- associated with the returnedPolicyItem
instrument
- used by the given set and associated with the returnedPolicyItem
- Returns:
- PolicyItem for given set and support instrument
-
-