public class SvPowerFlow extends CIMInstance
Modifier and Type | Field and Description |
---|---|
java.lang.String |
idTerminal
The id of the attribute "terminal"
This id is mainly used to resolve links after parsing an instance
|
float |
p
Attribute "p"
Comment from profile:
The power flow is into the Terminal of the ConductingEquipment.
|
float |
q
Attribute "q"
Comment from profile:
The power flow is into the Terminal of the ConductingEquipment.
|
Terminal |
terminal
Attribute "terminal"
Comment from profile:
Terminals of the ShuntCompensator class are not associated because the injection value can be computed from the solved voltage, number of sections, Termianl.connected state, and the impedance per section attributes on the ShuntCompensator.
|
addedToUnresolved, fromBoundary, id, subset
Modifier | Constructor and Description |
---|---|
protected |
SvPowerFlow()
Constructor of the class SvPowerFlow
|
Modifier and Type | Method and Description |
---|---|
protected void |
clearAssociations(Subset subset)
Utility to clear the associations of this class belonging to a
specific subset
|
void |
clearContent(Subset subset)
Utility to "clear" the content of a class when a subset is invalidated
|
SvPowerFlow |
clone()
Utility returning a copy of the "base" of this instance
This utility does not copy the associations with other instances
|
void |
copyBase(SvPowerFlow otherSvPowerFlow)
Utility to copy the "base" of an other instance of the same class
This utility does not copy the associations with other instances from
the instance to copy
|
static SvPowerFlow |
create(java.lang.String id)
Factory of the class
|
float |
getP()
Utility to return the "p" value
|
float |
getQ()
Utility to return the "q" value
|
Terminal |
getTerminal()
Utility to return the "terminal"
|
ConsistencyCheck |
modelConsistency()
Utility to check whether this class is consistent in a "merged" context
|
ConsistencyCheck |
modelConsistency(Subset subset)
Utility to check whether this class is consistent according to a subset
|
boolean |
pIsSet()
Utility to test if the value of "p" has been set
|
boolean |
qIsSet()
Utility to test if the value of "q" has been set
|
void |
readAttribute(java.lang.String class_name,
java.lang.String attr_name,
java.lang.String value,
CIMModel model)
Utility to read an attribute
This function is called by the CIMModel
|
void |
readResource(java.lang.String class_name,
java.lang.String resource_name,
java.lang.String id,
CIMModel model)
Utility to read a reference to a resource
This function is called by the CIMModel
|
void |
resolveLinks(CIMModel model,
CIMModel boundaryModel)
Utility to resolve the links at the end of parsing
|
void |
setP(float pValue)
Utility to set the "p" value
|
void |
setQ(float qValue)
Utility to set the "q" value
|
void |
setTerminal(Terminal terminalValue,
boolean setInverse)
Utility to set the "terminalValue"
|
boolean |
terminalIsSet()
Utility to test if the value of "terminal" has been set
|
void |
write(javax.xml.stream.XMLStreamWriter xmlsw,
boolean writeID)
Utility to write the content into the CIM XML format
|
void |
write(javax.xml.stream.XMLStreamWriter xmlsw,
Subset subset,
boolean writeID)
Utility to write the content this class into the CIM/XML format according
to a subset
|
addToUnresolved, copyBase, getId, getSubset, isAddedToUnresolved, isFromBoundary, removeFromUnresolved, setFromBoundary, setId
public Terminal terminal
public java.lang.String idTerminal
public float p
public float q
public Terminal getTerminal()
public boolean terminalIsSet()
public void setTerminal(Terminal terminalValue, boolean setInverse) throws LinkageException
terminalValue
- instance to setsetInverse
- boolean to specify whether to set the inverse association
or notLinkageException
public float getP()
public void setP(float pValue)
pValue
- value to setpublic boolean pIsSet()
public float getQ()
public void setQ(float qValue)
qValue
- value to setpublic boolean qIsSet()
public static SvPowerFlow create(java.lang.String id)
id
- id of the class SvPowerFlow to createpublic void clearContent(Subset subset)
clearContent
in class CIMInstance
subset
- subset to cleanpublic void readAttribute(java.lang.String class_name, java.lang.String attr_name, java.lang.String value, CIMModel model) throws InterpretationException
readAttribute
in class CIMInstance
class_name
- the read name of classattr_name
- the read name of attributevalue
- the read value of the attributemodel
- the interface to the model this class belongs toInterpretationException
public void readResource(java.lang.String class_name, java.lang.String resource_name, java.lang.String id, CIMModel model) throws InterpretationException, LinkageException
readResource
in class CIMInstance
class_name
- the read name of classresource_name
- the read name of the associated resourceid
- the id of the associated resourcemodel
- the model this class belongs toInterpretationException
LinkageException
public void write(javax.xml.stream.XMLStreamWriter xmlsw, boolean writeID)
write
in class CIMInstance
writeID
- specifies whether to write the XML "id" attribute (this is used for describing concrete class)xmlsw
- XMLStreamWriter where are stored the elements to writepublic void write(javax.xml.stream.XMLStreamWriter xmlsw, Subset subset, boolean writeID)
write
in class CIMInstance
subset
- the subset defining the context in which to write this classwriteID
- specifies whether to write the XML "id" attribute (this is used for describing concrete class)xmlsw
- the stream in which are stored the elements to writepublic void resolveLinks(CIMModel model, CIMModel boundaryModel) throws LinkageException
resolveLinks
in class CIMInstance
model
- the model this class belongs toboundaryModel
- the model that gather data about the boundarySet, used
as a resource force links resolvingLinkage
- ExceptionLinkageException
public ConsistencyCheck modelConsistency(Subset subset)
modelConsistency
in class CIMInstance
subset
- the subset defining the context in which to check whether this class is consistentpublic ConsistencyCheck modelConsistency()
modelConsistency
in class CIMInstance
public void copyBase(SvPowerFlow otherSvPowerFlow)
otherSvPowerFlow
- the instance to copyprotected void clearAssociations(Subset subset)
clearAssociations
in class CIMInstance
subset
- the subset from which to clear the associations of this classpublic SvPowerFlow clone()
clone
in class java.lang.Object