Class OmegaRef
- java.lang.Object
-
- com.powsybl.dynawaltz.dynamicmodels.AbstractBlackBoxModel
-
- com.powsybl.dynawaltz.dynamicmodels.OmegaRef
-
- All Implemented Interfaces:
com.powsybl.dynamicsimulation.DynamicModel
public class OmegaRef extends AbstractBlackBoxModel
OmegaRef is a special dynamic model: its role is to synchronize the generators' frequency, there will be multiple Java instances of the OmegaRef dynamic model, one for each generator's dynamic model connected to it. The corresponding black box model XML entry is serialized only once. For each generator synchronised through the OmegaRef model, there will be one XML entry for the connection with the generator's dynamic model, and one XML entry for the connection with the NETWORK dynamic model. There are thus two macroConnectors defined for OmegaRef: one to connect it to a generator's dynamic model and one to connect it to the NETWORK model- Author:
- Marcos de Miguel
-
-
Field Summary
Fields Modifier and Type Field Description static String
OMEGA_REF_ID
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description String
getGeneratorDynamicModelId()
String
getLib()
String
getStaticId()
void
write(XMLStreamWriter writer, DynaWaltzXmlContext context)
void
writeParameters(XMLStreamWriter writer, DynaWaltzXmlContext context)
-
Methods inherited from class com.powsybl.dynawaltz.dynamicmodels.AbstractBlackBoxModel
getDynamicModelId, getParameterSetId, writeAutomatonBlackBoxModel, writeBlackBoxModel
-
-
-
-
Field Detail
-
OMEGA_REF_ID
public static final String OMEGA_REF_ID
- See Also:
- Constant Field Values
-
-
Constructor Detail
-
OmegaRef
public OmegaRef(String generatorDynamicModelId)
-
-
Method Detail
-
getLib
public String getLib()
- Specified by:
getLib
in classAbstractBlackBoxModel
-
getStaticId
public String getStaticId()
- Overrides:
getStaticId
in classAbstractBlackBoxModel
-
getGeneratorDynamicModelId
public String getGeneratorDynamicModelId()
-
write
public void write(XMLStreamWriter writer, DynaWaltzXmlContext context) throws XMLStreamException
- Specified by:
write
in classAbstractBlackBoxModel
- Throws:
XMLStreamException
-
writeParameters
public void writeParameters(XMLStreamWriter writer, DynaWaltzXmlContext context) throws XMLStreamException
- Overrides:
writeParameters
in classAbstractBlackBoxModel
- Throws:
XMLStreamException
-
-