Package agents.conventionals
Class Portfolio
- java.lang.Object
-
- agents.conventionals.Portfolio
-
- All Implemented Interfaces:
de.dlr.gitlab.fame.communication.transfer.Portable
public class Portfolio extends Object implements de.dlr.gitlab.fame.communication.transfer.Portable
Summarises a set of conventional power plants- Author:
- Christoph Schimeczek
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
addComponentsTo(de.dlr.gitlab.fame.communication.transfer.ComponentCollector collector)
required forPortable
sString
getFuelType()
double
getInstalledCapacityInMW(de.dlr.gitlab.fame.time.TimeStamp time)
Returns installed capacity at given timeList<PowerPlant>
getPowerPlantList()
void
populate(de.dlr.gitlab.fame.communication.transfer.ComponentProvider provider)
required forPortable
svoid
tearDownPlants(long currentTimeStep)
Removes any plants from the portfolio that have a tear-down time before or equal the specified time stepString
toString()
-
-
-
Constructor Detail
-
Portfolio
public Portfolio()
required forPortable
s
-
Portfolio
public Portfolio(String fuelType)
Creates a new Portfolio for plants with given fuelType- Parameters:
fuelType
- type of fuel used in this portfolio
-
-
Method Detail
-
addComponentsTo
public void addComponentsTo(de.dlr.gitlab.fame.communication.transfer.ComponentCollector collector)
required forPortable
s- Specified by:
addComponentsTo
in interfacede.dlr.gitlab.fame.communication.transfer.Portable
-
populate
public void populate(de.dlr.gitlab.fame.communication.transfer.ComponentProvider provider)
required forPortable
s- Specified by:
populate
in interfacede.dlr.gitlab.fame.communication.transfer.Portable
-
getFuelType
public String getFuelType()
- Returns:
- Type of Fuel that all contained
PowerPlant
s have in common
-
getPowerPlantList
public List<PowerPlant> getPowerPlantList()
- Returns:
UnmodifiableList
ofPowerPlant
s, ordered from lowest to highest efficiency
-
tearDownPlants
public void tearDownPlants(long currentTimeStep)
Removes any plants from the portfolio that have a tear-down time before or equal the specified time step- Parameters:
currentTimeStep
- specified TimeStep
-
getInstalledCapacityInMW
public double getInstalledCapacityInMW(de.dlr.gitlab.fame.time.TimeStamp time)
Returns installed capacity at given time- Parameters:
time
- to evaluate capacity for- Returns:
- installed capacity at given time in MW
-
-