Package agents.conventionals
Class PredefinedPlantBuilder
- java.lang.Object
-
- de.dlr.gitlab.fame.agent.Agent
-
- agents.conventionals.PlantBuildingManager
-
- agents.conventionals.PredefinedPlantBuilder
-
- All Implemented Interfaces:
de.dlr.gitlab.fame.agent.AgentAbility
public class PredefinedPlantBuilder extends PlantBuildingManager
Installs and dismantles power plants according to a given predefined power TimeSeries- Author:
- Christoph Schimeczek
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from class agents.conventionals.PlantBuildingManager
PlantBuildingManager.Products
-
-
Field Summary
-
Fields inherited from class agents.conventionals.PlantBuildingManager
portfolio, prototypeData
-
-
Constructor Summary
Constructors Constructor Description PredefinedPlantBuilder(de.dlr.gitlab.fame.agent.input.DataProvider dataProvider)
Creates aPredefinedPlantBuilder
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected void
updatePortfolio(de.dlr.gitlab.fame.time.TimeStamp targetTime, de.dlr.gitlab.fame.time.TimeSpan deliveryInterval)
Creates new plants and tears down old ones in order to match current and future plant specifications-
Methods inherited from class agents.conventionals.PlantBuildingManager
updateAndSendPortfolio
-
Methods inherited from class de.dlr.gitlab.fame.agent.Agent
addContract, call, closeChannel, executeActions, executeWarmUp, fulfilNext, fulfilNext, getId, getNextRandomNumberGenerator, getPostOffice, handleMessage, initialiseActions, now, openChannel, publish, receive, sendMessageTo, sendMessageTo, store, store, toString, warmUp
-
-
-
-
Constructor Detail
-
PredefinedPlantBuilder
public PredefinedPlantBuilder(de.dlr.gitlab.fame.agent.input.DataProvider dataProvider) throws de.dlr.gitlab.fame.agent.input.ParameterData.MissingDataException
Creates aPredefinedPlantBuilder
- Parameters:
dataProvider
- provides input from config file- Throws:
de.dlr.gitlab.fame.agent.input.ParameterData.MissingDataException
- if any required data is not provided
-
-
Method Detail
-
updatePortfolio
protected void updatePortfolio(de.dlr.gitlab.fame.time.TimeStamp targetTime, de.dlr.gitlab.fame.time.TimeSpan deliveryInterval)
Description copied from class:PlantBuildingManager
Creates new plants and tears down old ones in order to match current and future plant specifications- Specified by:
updatePortfolio
in classPlantBuildingManager
- Parameters:
targetTime
- the target time when the generated portfolio shall become activedeliveryInterval
- duration for which the portfolio shall be active
-
-