16 package emlab.gen.role.investment;
18 import org.springframework.beans.factory.annotation.Autowired;
20 import agentspring.role.AbstractRole;
21 import agentspring.role.Role;
22 import agentspring.role.RoleComponent;
45 logger.info(
"Dismantling plants if passed technical lifetime");
50 int prolongYearsOfDismantlng = producer.getDismantlingProlongingYearsAfterTechnicalLifetime();
51 if (!plant.isWithinTechnicalLifetime(getCurrentTick() + prolongYearsOfDismantlng)) {
52 logger.info(
" Dismantling power plant because the technical life time has passed: " + plant);
53 plant.dismantlePowerPlant(getCurrentTick());
Iterable< PowerPlant > findOperationalPowerPlantsByOwner(@Param("owner") EnergyProducer owner,@Param("tick") long tick)