NetworkImpl(String id, String name, String sourceFormat) { super(id, name); Objects.requireNonNull(sourceFormat, "source format is null"); this.sourceFormat = sourceFormat; variantManager = new VariantManagerImpl(objectStore); variants = new VariantArray<>(ref, VariantImpl::new); // add the network the object list as it is a multi variant object // and it needs to be notified when and extension or a reduction of // the variant array is requested objectStore.checkAndAdd(this); }
NodeBreakerVoltageLevel(String id, String name, SubstationImpl substation, double nominalV, double lowVoltageLimit, double highVoltageLimit) { super(id, name, substation, nominalV, lowVoltageLimit, highVoltageLimit); variants = new VariantArray<>(substation.getNetwork().getRef(), VariantImpl::new); }
BusBreakerVoltageLevel(String id, String name, SubstationImpl substation, double nominalV, double lowVoltageLimit, double highVoltageLimit) { super(id, name, substation, nominalV, lowVoltageLimit, highVoltageLimit); variants = new VariantArray<>(substation.getNetwork().getRef(), VariantImpl::new); // invalidate topology and connected components graph.addListener(this::invalidateCache); }