public class TsoSynchroLossSecurityIndex
extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
protected SecurityIndexId |
id |
protected static com.google.common.base.Supplier<javax.xml.stream.XMLOutputFactory> |
XML_OUTPUT_FACTORY_SUPPLIER |
Constructor and Description |
---|
TsoSynchroLossSecurityIndex(java.lang.String contingencyId,
int synchroLossCount,
java.util.Map<java.lang.String,java.lang.Float> desynchronizedGenerators) |
Modifier and Type | Method and Description |
---|---|
static TsoSynchroLossSecurityIndex |
fromXml(java.lang.String contingencyId,
javax.xml.stream.XMLStreamReader xmlsr) |
java.util.Map<java.lang.String,java.lang.Float> |
getDesynchronizedGenerators() |
SecurityIndexId |
getId()
Get security index id.
|
int |
getSynchroLossCount() |
boolean |
isOk()
Get the security index synthetic value.
|
java.util.Map<java.lang.String,java.lang.String> |
toMap() |
java.lang.String |
toString() |
java.lang.String |
toXml() |
void |
toXml(javax.xml.stream.XMLStreamWriter xmlWriter) |
protected static final com.google.common.base.Supplier<javax.xml.stream.XMLOutputFactory> XML_OUTPUT_FACTORY_SUPPLIER
protected final SecurityIndexId id
public TsoSynchroLossSecurityIndex(java.lang.String contingencyId, int synchroLossCount, java.util.Map<java.lang.String,java.lang.Float> desynchronizedGenerators)
public static TsoSynchroLossSecurityIndex fromXml(java.lang.String contingencyId, javax.xml.stream.XMLStreamReader xmlsr) throws javax.xml.stream.XMLStreamException
javax.xml.stream.XMLStreamException
public int getSynchroLossCount()
public java.util.Map<java.lang.String,java.lang.Float> getDesynchronizedGenerators()
public boolean isOk()
SecurityIndex
public void toXml(javax.xml.stream.XMLStreamWriter xmlWriter) throws javax.xml.stream.XMLStreamException
javax.xml.stream.XMLStreamException
public java.util.Map<java.lang.String,java.lang.String> toMap()
public SecurityIndexId getId()
SecurityIndex
getId
in interface SecurityIndex
public java.lang.String toString()
toString
in class java.lang.Object
public java.lang.String toXml()
toXml
in interface SecurityIndex