@Inject public ChargingHandler(EvData evData, EvConfigGroup evConfig, EventsManager eventsManager) { this.chargers = evData.getChargers().values(); this.chargeTimeStep = evConfig.getChargeTimeStep(); for (Charger c : chargers) { c.getLogic().initEventsHandling(eventsManager); } }
@Override public void startTag(String name, Attributes atts, Stack<String> context) { if (CHARGER.equals(name)) { data.addCharger(createCharger(atts)); } }