Class TsoGeneratorSpeedAutomaton
- java.lang.Object
-
- com.powsybl.simulation.securityindexes.AbstractTsoGeneratorAutomaton
-
- com.powsybl.simulation.securityindexes.TsoGeneratorSpeedAutomaton
-
- All Implemented Interfaces:
SecurityIndex
public class TsoGeneratorSpeedAutomaton extends AbstractTsoGeneratorAutomaton
- Author:
- Geoffroy Jamgotchian
-
-
Field Summary
Fields Modifier and Type Field Description protected SecurityIndexId
id
protected static com.google.common.base.Supplier<XMLOutputFactory>
XML_OUTPUT_FACTORY_SUPPLIER
-
Fields inherited from class com.powsybl.simulation.securityindexes.AbstractTsoGeneratorAutomaton
GEN, INDEX, NAME
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static TsoGeneratorSpeedAutomaton
fromXml(String contingencyId, XMLStreamReader xmlsr)
SecurityIndexId
getId()
Get security index id.List<String>
getOnOverSpeedDiconnectedGenerators()
List<String>
getOnUnderSpeedDiconnectedGenerators()
boolean
isOk()
Get the security index synthetic value.Map<String,String>
toMap()
String
toString()
String
toXml()
protected void
toXml(XMLStreamWriter xmlWriter)
-
Methods inherited from class com.powsybl.simulation.securityindexes.AbstractTsoGeneratorAutomaton
toXml
-
-
-
-
Field Detail
-
XML_OUTPUT_FACTORY_SUPPLIER
protected static final com.google.common.base.Supplier<XMLOutputFactory> XML_OUTPUT_FACTORY_SUPPLIER
-
id
protected final SecurityIndexId id
-
-
Method Detail
-
fromXml
public static TsoGeneratorSpeedAutomaton fromXml(String contingencyId, XMLStreamReader xmlsr) throws XMLStreamException
- Throws:
XMLStreamException
-
isOk
public boolean isOk()
Description copied from interface:SecurityIndex
Get the security index synthetic value.- Returns:
- the security index synthetic value
-
toXml
protected void toXml(XMLStreamWriter xmlWriter) 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
public String toXml()
- Specified by:
toXml
in interfaceSecurityIndex
-
-