public class State extends Object
| Modifier and Type | Class and Description |
|---|---|
static class |
State.Field
This is set of fields for input/output to XML and JSON format
|
| Modifier and Type | Method and Description |
|---|---|
static String |
computeLabel(uk.co.agena.minerva.model.extendedbn.ExtendedNode en,
uk.co.agena.minerva.model.extendedbn.ExtendedState es)
Computes a label for a logical state.
|
protected static State |
createState(Node node,
String label)
Creates a State instance for the given Node with the given Label.
|
String |
getLabel()
Gets the state's label.
|
uk.co.agena.minerva.model.extendedbn.ExtendedState |
getLogicState()
Deprecated.
Will be affected by module architecture in the future and should not be used.
|
Node |
getNode()
Gets the state's Node.
|
protected static State |
getState(Node node,
String label)
Find a state by given label in the given Node's underlying logic node.
|
protected void |
setLogicState(uk.co.agena.minerva.model.extendedbn.ExtendedState logicState)
Links this State to an underlying API1 State object.
|
String |
toString() |
protected static State createState(Node node, String label) throws StateException
node - State's Nodelabel - State's label (or string representation of corresponding range in format :lower - upper)StateException - if numeric values in the label could not be parsed or range's upper bound is smaller than its lower boundprotected static State getState(Node node, String label)
node - Node to get the state fromlabel - label of the required statepublic String getLabel()
public Node getNode()
public uk.co.agena.minerva.model.extendedbn.ExtendedState getLogicState()
public static String computeLabel(uk.co.agena.minerva.model.extendedbn.ExtendedNode en, uk.co.agena.minerva.model.extendedbn.ExtendedState es)
en - node containing the statees - logical stateprotected void setLogicState(uk.co.agena.minerva.model.extendedbn.ExtendedState logicState)
logicState - the logical stateCopyright © 2022. All rights reserved.