/** * Utility to search for an instance of ACLineSegment within the * CIM model * * @param id * the id to search * @return ACLineSegment a reference to the class corresponding to * this id, to NULL if not found */ public ACLineSegment searchACLineSegment(final String id) { if (this.getId_ACLineSegment().containsKey(id)) { return this.getId_ACLineSegment().get(id); } return null; }
private void createLines(Network network, Set<String> noOperationalLimitInOperationalLimitSet) { for (cim1.model.ACLineSegment l : cimModel.getId_ACLineSegment().values()) { cim1.model.Terminal t1 = l.getTerminals().get(0); cim1.model.Terminal t2 = l.getTerminals().get(1);
addName(idMapping, names, vl); for (cim1.model.ACLineSegment l : model.getId_ACLineSegment().values()) { addName(idMapping, names, l);