Package com.powsybl.cgmes.model
Class CgmesMetadataModelImpl
java.lang.Object
com.powsybl.cgmes.model.CgmesMetadataModelImpl
- All Implemented Interfaces:
CgmesMetadataModel
- Author:
- Luma ZamarreƱo <zamarrenolm at aia.es>
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionaddDependentOn
(String id) Add the given model id to the set of ids this model depends on.addDependentOn
(Collection<String> dependentOn) Add the given model ids to the set of ids this model depends on.addProfiles
(Collection<String> profiles) Extend model profiles with the given ones.addSupersedes
(String id) Add the given model id to the set of ids this model supersedesaddSupersedes
(Collection<String> supersedes) Add the given model ids to the set of ids this model supersedes.Remove all the model ids this model depends on.References to other models that the model depends on.A description for the model.getId()
The unique identifier for the model.A reference to the organisation role / modeling authority set responsible for producing the model contents.References to the profiles used in the model.The CGMES instance file (subset) that the model refers to: EQ, SSH, ...References to other models that are superseded by this model.int
The version number for the model.setDescription
(String description) Set the given model description.Set the given model id.setModelingAuthoritySet
(String modelingAuthoritySet) Set the given modeling authority set.setProfile
(String profile) Remove any existing profile and set the given model profile.setVersion
(int version) Set the given model version.
-
Constructor Details
-
CgmesMetadataModelImpl
-
-
Method Details
-
getSubset
Description copied from interface:CgmesMetadataModel
The CGMES instance file (subset) that the model refers to: EQ, SSH, ...- Specified by:
getSubset
in interfaceCgmesMetadataModel
- Returns:
- the subset of the CGMES the model refers to
-
getId
Description copied from interface:CgmesMetadataModel
The unique identifier for the model. A model identifier should change if the data contained in the model has changed.- Specified by:
getId
in interfaceCgmesMetadataModel
- Returns:
- the identifier of the model
-
getDescription
Description copied from interface:CgmesMetadataModel
A description for the model.- Specified by:
getDescription
in interfaceCgmesMetadataModel
- Returns:
- the description of the model
-
getVersion
public int getVersion()Description copied from interface:CgmesMetadataModel
The version number for the model. The version number should change if the data contained in the model has changed.- Specified by:
getVersion
in interfaceCgmesMetadataModel
- Returns:
- the version number of the model
-
getModelingAuthoritySet
Description copied from interface:CgmesMetadataModel
A reference to the organisation role / modeling authority set responsible for producing the model contents. It is a URN/URI.- Specified by:
getModelingAuthoritySet
in interfaceCgmesMetadataModel
- Returns:
- the URN/URI of the modeling authority set producing the model
-
getProfiles
Description copied from interface:CgmesMetadataModel
References to the profiles used in the model. Each profile defines semantics data that may appear inside the model. A model may contain data from multiple profiles.
As an example, "http://iec.ch/TC57/61970-456/SteadyStateHypothesis/2/0" refers to power flow inputs in CGMES 3.
In CGMES 2.4, the model for the EQ subset may contain two profiles: "http://iec.ch/TC57/2013/61970-452/EquipmentCore/4" to describe the equipment core and "http://iec.ch/TC57/2013/61970-452/EquipmentOperation/4" if the model is defined at node/braker level.
- Specified by:
getProfiles
in interfaceCgmesMetadataModel
- Returns:
- the URN/URIs of profiles describing the data in the model
-
getDependentOn
Description copied from interface:CgmesMetadataModel
References to other models that the model depends on.- Specified by:
getDependentOn
in interfaceCgmesMetadataModel
- Returns:
- the identifiers of the models the model depends on
-
getSupersedes
Description copied from interface:CgmesMetadataModel
References to other models that are superseded by this model.- Specified by:
getSupersedes
in interfaceCgmesMetadataModel
- Returns:
- the identifiers of the models this model supersedes
-
setVersion
Description copied from interface:CgmesMetadataModel
Set the given model version.- Specified by:
setVersion
in interfaceCgmesMetadataModel
- Parameters:
version
- The version to set for the model.- Returns:
- The model with the new version set.
-
setId
Description copied from interface:CgmesMetadataModel
Set the given model id.- Specified by:
setId
in interfaceCgmesMetadataModel
- Parameters:
id
- The id to set for the model.- Returns:
- The model with the new id set.
-
setProfile
Description copied from interface:CgmesMetadataModel
Remove any existing profile and set the given model profile.- Specified by:
setProfile
in interfaceCgmesMetadataModel
- Parameters:
profile
- The profile to set for the model.- Returns:
- The model with the new profile set.
-
addProfiles
Description copied from interface:CgmesMetadataModel
Extend model profiles with the given ones.- Specified by:
addProfiles
in interfaceCgmesMetadataModel
- Parameters:
profiles
- The profiles to add for the model.- Returns:
- The model with the new profiles added.
-
setDescription
Description copied from interface:CgmesMetadataModel
Set the given model description.- Specified by:
setDescription
in interfaceCgmesMetadataModel
- Parameters:
description
- The description to set for the model.- Returns:
- The model with the new description set.
-
addSupersedes
Description copied from interface:CgmesMetadataModel
Add the given model id to the set of ids this model supersedes- Specified by:
addSupersedes
in interfaceCgmesMetadataModel
- Parameters:
id
- The additional model id this model should supersede.- Returns:
- The model with an updated set of values this model supersedes.
-
addDependentOn
Description copied from interface:CgmesMetadataModel
Add the given model id to the set of ids this model depends on.- Specified by:
addDependentOn
in interfaceCgmesMetadataModel
- Parameters:
id
- The additional model id this model should depend on.- Returns:
- The model with an updated set of values this model depends on.
-
addDependentOn
Description copied from interface:CgmesMetadataModel
Add the given model ids to the set of ids this model depends on.- Specified by:
addDependentOn
in interfaceCgmesMetadataModel
- Parameters:
dependentOn
- The additional model ids this model should depend on.- Returns:
- The model with an updated set of values this model depends on.
-
addSupersedes
Description copied from interface:CgmesMetadataModel
Add the given model ids to the set of ids this model supersedes.- Specified by:
addSupersedes
in interfaceCgmesMetadataModel
- Parameters:
supersedes
- The additional model ids this model should supersede.- Returns:
- The model with an updated set of values this model supersedes.
-
setModelingAuthoritySet
Description copied from interface:CgmesMetadataModel
Set the given modeling authority set.- Specified by:
setModelingAuthoritySet
in interfaceCgmesMetadataModel
- Parameters:
modelingAuthoritySet
- The modeling authority set to set for the model.- Returns:
- The model with the new modeling authority set defined.
-
clearDependencies
Description copied from interface:CgmesMetadataModel
Remove all the model ids this model depends on.- Specified by:
clearDependencies
in interfaceCgmesMetadataModel
- Returns:
- The model with an empty set of values this model depends on.
-