Package com.powsybl.cgmes.model
Class InMemoryCgmesModel
- java.lang.Object
-
- com.powsybl.cgmes.model.InMemoryCgmesModel
-
- All Implemented Interfaces:
CgmesModel
public final class InMemoryCgmesModel extends Object implements CgmesModel
- Author:
- Luma ZamarreƱo
-
-
Constructor Summary
Constructors Constructor Description InMemoryCgmesModel()
-
Method Summary
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface com.powsybl.cgmes.model.CgmesModel
phaseTapChangerListForPowerTransformer, ratioTapChangerListForPowerTransformer, terminalForEquipment
-
-
-
-
Method Detail
-
tripleStore
public TripleStore tripleStore()
- Specified by:
tripleStore
in interfaceCgmesModel
-
hasEquipmentCore
public boolean hasEquipmentCore()
- Specified by:
hasEquipmentCore
in interfaceCgmesModel
-
modelId
public InMemoryCgmesModel modelId(String modelId)
-
version
public InMemoryCgmesModel version(String version)
-
nodeBreaker
public InMemoryCgmesModel nodeBreaker(boolean b)
-
isNodeBreaker
public boolean isNodeBreaker()
- Specified by:
isNodeBreaker
in interfaceCgmesModel
-
hasBoundary
public boolean hasBoundary()
- Specified by:
hasBoundary
in interfaceCgmesModel
-
substations
public InMemoryCgmesModel substations(String... ids)
-
voltageLevels
public InMemoryCgmesModel voltageLevels(String... ids)
-
terminals
public InMemoryCgmesModel terminals(String... ids)
-
operationalLimits
public InMemoryCgmesModel operationalLimits(String... ids)
-
topologicalNodes
public InMemoryCgmesModel topologicalNodes(String... ids)
-
busBarSections
public InMemoryCgmesModel busBarSections(String... ids)
-
switches
public InMemoryCgmesModel switches(String... ids)
-
acLineSegments
public InMemoryCgmesModel acLineSegments(String... ids)
-
equivalentBranches
public PropertyBags equivalentBranches()
- Specified by:
equivalentBranches
in interfaceCgmesModel
-
seriesCompensators
public PropertyBags seriesCompensators()
- Specified by:
seriesCompensators
in interfaceCgmesModel
-
transformers
public InMemoryCgmesModel transformers(String... ids)
-
transformerEnds
public InMemoryCgmesModel transformerEnds(String... ids)
-
ratioTapChangers
public InMemoryCgmesModel ratioTapChangers(String... ids)
-
phaseTapChangers
public InMemoryCgmesModel phaseTapChangers(String... ids)
-
energyConsumers
public InMemoryCgmesModel energyConsumers(String... ids)
-
shuntCompensators
public InMemoryCgmesModel shuntCompensators(String... ids)
-
staticVarCompensators
public InMemoryCgmesModel staticVarCompensators(String... ids)
-
synchronousMachines
public InMemoryCgmesModel synchronousMachines(String... ids)
-
asynchronousMachines
public InMemoryCgmesModel asynchronousMachines(String... ids)
-
acDcConverters
public InMemoryCgmesModel acDcConverters(String... ids)
-
dcLineSegments
public InMemoryCgmesModel dcLineSegments(String... ids)
-
dcTerminals
public InMemoryCgmesModel dcTerminals(String... ids)
-
tieFlows
public InMemoryCgmesModel tieFlows(String... ids)
-
modelProfiles
public InMemoryCgmesModel modelProfiles(String... ids)
-
fullModel
public PropertyBags fullModel(String cgmesProfile)
- Specified by:
fullModel
in interfaceCgmesModel
-
controlAreas
public PropertyBags controlAreas()
- Specified by:
controlAreas
in interfaceCgmesModel
-
modelId
public String modelId()
- Specified by:
modelId
in interfaceCgmesModel
-
version
public String version()
- Specified by:
version
in interfaceCgmesModel
-
scenarioTime
public org.joda.time.DateTime scenarioTime()
- Specified by:
scenarioTime
in interfaceCgmesModel
-
created
public org.joda.time.DateTime created()
- Specified by:
created
in interfaceCgmesModel
-
boundaryNodes
public PropertyBags boundaryNodes()
- Specified by:
boundaryNodes
in interfaceCgmesModel
-
baseVoltages
public PropertyBags baseVoltages()
- Specified by:
baseVoltages
in interfaceCgmesModel
-
numObjectsByType
public PropertyBags numObjectsByType()
- Specified by:
numObjectsByType
in interfaceCgmesModel
-
allObjectsOfType
public PropertyBags allObjectsOfType(String type)
- Specified by:
allObjectsOfType
in interfaceCgmesModel
-
substations
public PropertyBags substations()
- Specified by:
substations
in interfaceCgmesModel
-
voltageLevels
public PropertyBags voltageLevels()
- Specified by:
voltageLevels
in interfaceCgmesModel
-
terminals
public PropertyBags terminals()
- Specified by:
terminals
in interfaceCgmesModel
-
connectivityNodeContainers
public PropertyBags connectivityNodeContainers()
- Specified by:
connectivityNodeContainers
in interfaceCgmesModel
-
operationalLimits
public PropertyBags operationalLimits()
- Specified by:
operationalLimits
in interfaceCgmesModel
-
connectivityNodes
public PropertyBags connectivityNodes()
- Specified by:
connectivityNodes
in interfaceCgmesModel
-
topologicalNodes
public PropertyBags topologicalNodes()
- Specified by:
topologicalNodes
in interfaceCgmesModel
-
busBarSections
public PropertyBags busBarSections()
- Specified by:
busBarSections
in interfaceCgmesModel
-
switches
public PropertyBags switches()
- Specified by:
switches
in interfaceCgmesModel
-
acLineSegments
public PropertyBags acLineSegments()
- Specified by:
acLineSegments
in interfaceCgmesModel
-
transformers
public PropertyBags transformers()
- Specified by:
transformers
in interfaceCgmesModel
-
transformerEnds
public PropertyBags transformerEnds()
- Specified by:
transformerEnds
in interfaceCgmesModel
-
groupedTransformerEnds
public Map<String,PropertyBags> groupedTransformerEnds()
- Specified by:
groupedTransformerEnds
in interfaceCgmesModel
-
ratioTapChangers
public PropertyBags ratioTapChangers()
- Specified by:
ratioTapChangers
in interfaceCgmesModel
-
phaseTapChangers
public PropertyBags phaseTapChangers()
- Specified by:
phaseTapChangers
in interfaceCgmesModel
-
regulatingControls
public PropertyBags regulatingControls()
- Specified by:
regulatingControls
in interfaceCgmesModel
-
energyConsumers
public PropertyBags energyConsumers()
- Specified by:
energyConsumers
in interfaceCgmesModel
-
energySources
public PropertyBags energySources()
- Specified by:
energySources
in interfaceCgmesModel
-
shuntCompensators
public PropertyBags shuntCompensators()
- Specified by:
shuntCompensators
in interfaceCgmesModel
-
equivalentShunts
public PropertyBags equivalentShunts()
- Specified by:
equivalentShunts
in interfaceCgmesModel
-
nonlinearShuntCompensatorPoints
public PropertyBags nonlinearShuntCompensatorPoints(String scId)
- Specified by:
nonlinearShuntCompensatorPoints
in interfaceCgmesModel
-
staticVarCompensators
public PropertyBags staticVarCompensators()
- Specified by:
staticVarCompensators
in interfaceCgmesModel
-
synchronousMachines
public PropertyBags synchronousMachines()
- Specified by:
synchronousMachines
in interfaceCgmesModel
-
equivalentInjections
public PropertyBags equivalentInjections()
- Specified by:
equivalentInjections
in interfaceCgmesModel
-
externalNetworkInjections
public PropertyBags externalNetworkInjections()
- Specified by:
externalNetworkInjections
in interfaceCgmesModel
-
svInjections
public PropertyBags svInjections()
- Specified by:
svInjections
in interfaceCgmesModel
-
asynchronousMachines
public PropertyBags asynchronousMachines()
- Specified by:
asynchronousMachines
in interfaceCgmesModel
-
modelProfiles
public PropertyBags modelProfiles()
- Specified by:
modelProfiles
in interfaceCgmesModel
-
reactiveCapabilityCurveData
public PropertyBags reactiveCapabilityCurveData()
- Specified by:
reactiveCapabilityCurveData
in interfaceCgmesModel
-
ratioTapChangerTablesPoints
public PropertyBags ratioTapChangerTablesPoints()
- Specified by:
ratioTapChangerTablesPoints
in interfaceCgmesModel
-
phaseTapChangerTablesPoints
public PropertyBags phaseTapChangerTablesPoints()
- Specified by:
phaseTapChangerTablesPoints
in interfaceCgmesModel
-
ratioTapChangerTable
public PropertyBags ratioTapChangerTable(String tableId)
- Specified by:
ratioTapChangerTable
in interfaceCgmesModel
-
phaseTapChangerTable
public PropertyBags phaseTapChangerTable(String tableId)
- Specified by:
phaseTapChangerTable
in interfaceCgmesModel
-
acDcConverters
public PropertyBags acDcConverters()
- Specified by:
acDcConverters
in interfaceCgmesModel
-
dcLineSegments
public PropertyBags dcLineSegments()
- Specified by:
dcLineSegments
in interfaceCgmesModel
-
dcTerminals
public PropertyBags dcTerminals()
- Specified by:
dcTerminals
in interfaceCgmesModel
-
tieFlows
public PropertyBags tieFlows()
- Specified by:
tieFlows
in interfaceCgmesModel
-
topologicalIslands
public PropertyBags topologicalIslands()
- Specified by:
topologicalIslands
in interfaceCgmesModel
-
graph
public PropertyBags graph()
- Specified by:
graph
in interfaceCgmesModel
-
print
public void print(PrintStream out)
- Specified by:
print
in interfaceCgmesModel
-
print
public void print(Consumer<String> liner)
- Specified by:
print
in interfaceCgmesModel
-
write
public void write(DataSource ds)
- Specified by:
write
in interfaceCgmesModel
-
write
public void write(DataSource ds, CgmesSubset subset)
- Specified by:
write
in interfaceCgmesModel
-
clear
public void clear(CgmesSubset subset)
- Specified by:
clear
in interfaceCgmesModel
-
add
public void add(CgmesSubset subset, String type, PropertyBags objects)
- Specified by:
add
in interfaceCgmesModel
-
add
public void add(String contextOrSubset, String type, PropertyBags objects)
- Specified by:
add
in interfaceCgmesModel
-
getProperties
public Properties getProperties()
- Specified by:
getProperties
in interfaceCgmesModel
-
computedTerminals
public Collection<CgmesTerminal> computedTerminals()
- Specified by:
computedTerminals
in interfaceCgmesModel
-
terminal
public CgmesTerminal terminal(String terminalId)
- Specified by:
terminal
in interfaceCgmesModel
-
dcTerminal
public CgmesDcTerminal dcTerminal(String dcTerminalId)
- Specified by:
dcTerminal
in interfaceCgmesModel
-
ratioTapChangerForPowerTransformer
@Deprecated public String ratioTapChangerForPowerTransformer(String powerTransformerId)
Deprecated.- Specified by:
ratioTapChangerForPowerTransformer
in interfaceCgmesModel
-
phaseTapChangerForPowerTransformer
@Deprecated public String phaseTapChangerForPowerTransformer(String powerTransformerId)
Deprecated.- Specified by:
phaseTapChangerForPowerTransformer
in interfaceCgmesModel
-
substation
public String substation(CgmesTerminal t, boolean nodeBreaker)
Description copied from interface:CgmesModel
Obtain the substation of a given terminal.- Specified by:
substation
in interfaceCgmesModel
- Parameters:
t
- the terminalnodeBreaker
- to determine the terminal container, use node-breaker connectivity information first
-
voltageLevel
public String voltageLevel(CgmesTerminal t, boolean nodeBreaker)
Description copied from interface:CgmesModel
Obtain the voltage level grouping in which a given terminal is contained.- Specified by:
voltageLevel
in interfaceCgmesModel
- Parameters:
t
- the terminalnodeBreaker
- to determine the terminal container, use node-breaker connectivity information first
-
container
public CgmesContainer container(String containerId)
- Specified by:
container
in interfaceCgmesModel
-
nominalVoltage
public double nominalVoltage(String baseVoltageId)
- Specified by:
nominalVoltage
in interfaceCgmesModel
-
setBasename
public void setBasename(String baseName)
- Specified by:
setBasename
in interfaceCgmesModel
-
getBasename
public String getBasename()
- Specified by:
getBasename
in interfaceCgmesModel
-
read
public void read(ReadOnlyDataSource ds, Reporter reporter)
- Specified by:
read
in interfaceCgmesModel
-
read
public void read(ReadOnlyDataSource mainDataSource, ReadOnlyDataSource alternativeDataSourceForBoundary, Reporter reporter)
- Specified by:
read
in interfaceCgmesModel
-
read
public void read(InputStream is, String baseName, String contextName, Reporter reporter)
- Specified by:
read
in interfaceCgmesModel
-
-