Class AbstractTsoGeneratorAutomaton
- java.lang.Object
-
- com.powsybl.simulation.securityindexes.AbstractTsoGeneratorAutomaton
-
- All Implemented Interfaces:
SecurityIndex
- Direct Known Subclasses:
TsoGeneratorSpeedAutomaton
,TsoGeneratorVoltageAutomaton
public abstract class AbstractTsoGeneratorAutomaton extends Object
- Author:
- Mathieu Bague
-
-
Field Summary
Fields Modifier and Type Field Description protected static String
GEN
protected SecurityIndexId
id
protected static String
INDEX
protected static String
NAME
protected static com.google.common.base.Supplier<XMLOutputFactory>
XML_OUTPUT_FACTORY_SUPPLIER
-
Constructor Summary
Constructors Modifier Constructor Description protected
AbstractTsoGeneratorAutomaton(String contingencyId, SecurityIndexType securityIndexType)
-
Method Summary
All Methods Static Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description SecurityIndexId
getId()
Get security index id.String
toString()
String
toXml()
protected abstract void
toXml(XMLStreamWriter xmlWriter)
protected static void
toXml(XMLStreamWriter xmlWriter, String xmlTagName, String xmlUnderTagName, List<String> underGeneratorNames, String xmlOverTagName, List<String> overGeneratorNames)
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
-
Methods inherited from interface com.powsybl.simulation.securityindexes.SecurityIndex
isOk, toMap
-
-
-
-
Field Detail
-
GEN
protected static final String GEN
- See Also:
- Constant Field Values
-
INDEX
protected static final String INDEX
- See Also:
- Constant Field Values
-
NAME
protected static final String NAME
- See Also:
- Constant Field Values
-
XML_OUTPUT_FACTORY_SUPPLIER
protected static final com.google.common.base.Supplier<XMLOutputFactory> XML_OUTPUT_FACTORY_SUPPLIER
-
id
protected final SecurityIndexId id
-
-
Constructor Detail
-
AbstractTsoGeneratorAutomaton
protected AbstractTsoGeneratorAutomaton(String contingencyId, SecurityIndexType securityIndexType)
-
-
Method Detail
-
toXml
protected static void toXml(XMLStreamWriter xmlWriter, String xmlTagName, String xmlUnderTagName, List<String> underGeneratorNames, String xmlOverTagName, List<String> overGeneratorNames) throws XMLStreamException
- Throws:
XMLStreamException
-
getId
public SecurityIndexId getId()
Description copied from interface:SecurityIndex
Get security index id.- Specified by:
getId
in interfaceSecurityIndex
- Returns:
- security index type
-
toXml
protected abstract void toXml(XMLStreamWriter xmlWriter) throws XMLStreamException
- Throws:
XMLStreamException
-
toXml
public String toXml()
- Specified by:
toXml
in interfaceSecurityIndex
-
-