Package agents.conventionals
Class IndividualPlantBuilder
- java.lang.Object
-
- de.dlr.gitlab.fame.agent.Agent
-
- agents.conventionals.PlantBuildingManager
-
- agents.conventionals.IndividualPlantBuilder
-
- All Implemented Interfaces:
de.dlr.gitlab.fame.agent.AgentAbility
public class IndividualPlantBuilder extends PlantBuildingManager
Installs and dismantles power plants according to a list of individual plants- 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 IndividualPlantBuilder(de.dlr.gitlab.fame.agent.input.DataProvider dataProvider)
Creates anIndividualPlantBuilder
-
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
-
IndividualPlantBuilder
public IndividualPlantBuilder(de.dlr.gitlab.fame.agent.input.DataProvider dataProvider) throws de.dlr.gitlab.fame.agent.input.ParameterData.MissingDataException
Creates anIndividualPlantBuilder
- 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
-
-