/** * Gets a set with the given number of default EVSEs. * * @param numberOfEvses the number of EVSEs. * @return a set with the given number of default EVSEs. */ public static Set<Evse> getEvses(int numberOfEvses) { checkArgument(numberOfEvses > 0); Set<Evse> evses = new HashSet<>(numberOfEvses); for (int i = 0; i < numberOfEvses; i++) { evses.add(getEvse(i)); } return evses; } }
/** * Gets a default EVSE with the given identifier. * * @param identifier the identifier for the EVSE. * @return a default EVSE with the given identifier. */ public static Evse getEvse(int identifier) { return new Evse(new EvseId(identifier), getConnectors(NUMBER_OF_CONNECTORS)); }