16 package emlab.gen.role.market;
18 import java.util.ArrayList;
19 import java.util.List;
21 import org.springframework.beans.factory.annotation.Autowired;
23 import agentspring.role.Role;
24 import agentspring.role.RoleComponent;
44 public class MarketVerificationRole extends AbstractMarketRole<ElectricitySpotMarket> implements Role<ElectricitySpotMarket> {
52 logger.info(
"Validating the markets");
55 List<PowerPlant> powerPlants =
new ArrayList<PowerPlant>();
56 for (
PowerPlant plant : reps.powerPlantRepository.findAll()) {
57 if (plant.isOperational(getCurrentTick())) {
58 powerPlants.add(plant);
64 public Reps getReps() {