16 package emlab.gen.role.operating;
18 import org.springframework.beans.factory.annotation.Autowired;
19 import org.springframework.transaction.annotation.Transactional;
21 import agentspring.role.Role;
22 import agentspring.role.RoleComponent;
29 import emlab.gen.role.AbstractEnergyProducerRole;
44 public Reps getReps() {
50 logger.info(
"Pay the Operating and Maintainance cost tax");
56 double money = plant.getActualFixedOperatingCost();
58 logger.info(
"Im paying {} for O and M of plant {}", money, plant.getName());
59 reps.nonTransactionalCreateRepository.createCashFlow(producer, maintainer, money, CashFlow.FIXEDOMCOST, getCurrentTick(), plant);
61 logger.info(
"I: {} have paid for {} plants ", producer, i);
Iterable< PowerPlant > findOperationalPowerPlantsByOwner(@Param("owner") EnergyProducer owner,@Param("tick") long tick)