Ejemplo n.º 1
0
  @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);
    }
  }
Ejemplo n.º 2
0
 @Override
 public void startTag(String name, Attributes atts, Stack<String> context) {
   if (CHARGER.equals(name)) {
     data.addCharger(createCharger(atts));
   }
 }