Package com.powsybl.contingency
Class ContingencyContext
- java.lang.Object
-
- com.powsybl.contingency.ContingencyContext
-
public class ContingencyContext extends Object
- Author:
- Geoffroy Jamgotchian
, Etienne Lesot provide the context to get information of the network after a security analysis it contains a contingency's id and a context type. Context type defines if we want the information in a pre-contingency state, a post-contingency state or both. contingency's id is defined if informations are needed after a specific contingency computation
-
-
Constructor Summary
Constructors Constructor Description ContingencyContext(String contingencyId, ContingencyContextType contingencyContextType)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static ContingencyContext
all()
static ContingencyContext
create(String contingencyId, ContingencyContextType contingencyContextType)
boolean
equals(Object o)
ContingencyContextType
getContextType()
String
getContingencyId()
int
hashCode()
static ContingencyContext
none()
static ContingencyContext
specificContingency(String contingencyId)
String
toString()
-
-
-
Constructor Detail
-
ContingencyContext
public ContingencyContext(String contingencyId, ContingencyContextType contingencyContextType)
-
-
Method Detail
-
getContingencyId
public String getContingencyId()
-
getContextType
public ContingencyContextType getContextType()
-
create
public static ContingencyContext create(String contingencyId, ContingencyContextType contingencyContextType)
-
all
public static ContingencyContext all()
-
none
public static ContingencyContext none()
-
specificContingency
public static ContingencyContext specificContingency(String contingencyId)
-
-