- java.lang.Object
-
- com.powsybl.security.monitor.StateMonitor
-
public class StateMonitor extends Object
- Author:
- Etienne Lesot
A stateMonitor allows to get information about branch, bus and three windings transformers on the network after a security analysis computation. Contingency context allows to specify if the information asked are about N situation N-k situation with a contingency id or both.
for example if we want information about a branch after security analysis on contingency c1 contingencyContext will contained the contingencyId c1, contextType SPECIFIC and StateMonitor will contained the id of the branch if we want information about a branch in N situation contingencyContext will contained a null contingencyId, contextType NONE and StateMonitor will contained the id of the branch if we want information about a branch in N situation and after security analysis on contingency c1 contingencyContext will contained contingencyId c1, contextType ALL and StateMonitor will contained the id of the branch
-
-
Constructor Summary
Constructors Constructor Description StateMonitor(ContingencyContext contingencyContext, Set<String> branchIds, Set<String> voltageLevelIds, Set<String> threeWindingsTransformerIds)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
equals(Object o)
Set<String>
getBranchIds()
ContingencyContext
getContingencyContext()
Set<String>
getThreeWindingsTransformerIds()
Set<String>
getVoltageLevelIds()
int
hashCode()
StateMonitor
merge(StateMonitor monitorTobeMerged)
static List<StateMonitor>
read(Path jsonFile)
String
toString()
static void
write(List<StateMonitor> monitors, Path jsonFile)
-
-
-
Method Detail
-
getContingencyContext
public ContingencyContext getContingencyContext()
-
merge
public StateMonitor merge(StateMonitor monitorTobeMerged)
-
write
public static void write(List<StateMonitor> monitors, Path jsonFile)
-
read
public static List<StateMonitor> read(Path jsonFile)
-
-