Initializes a new instance of the {@link com.bayesserver.State} class.
Initializes a new instance of the {@link com.bayesserver.State} class with the specified [name].
The name for the state. Can be null.
Initializes a new instance of the {@link com.bayesserver.State} class with the specified [name] and [value].
The name for the state. Can be null.
Optional value for the state. When the state is added to a variable, this value must be compatible with the {@link com.bayesserver.StateValueType} set on the variable.
Gets custom properties associated with this instance.
Custom properties allow storage of custom information, which will be saved with the network.
Gets an optional description for the state.
Sets an optional description for the state.
Gets the index of the state in a variable's {@link com.bayesserver.Variable#getStates} collection. Equals -1 if the {@link com.bayesserver.State} does not belong to a variable.
Gets the name of the state.
Sets the name of the state.
Gets the {@link com.bayesserver.StateCollection} the state belongs to, if any.
The {@link com.bayesserver.StateCollection} that this instance belongs to. Can be null.
Gets an optional value for a state, such as an interval for discretized variables.
When a {@link com.bayesserver.State} is added to a {@link com.bayesserver.Variable} this value must be compatible with the {@link com.bayesserver.StateValueType} set on the variable.
Sets an optional value for a state, such as an interval for discretized variables.
When a {@link com.bayesserver.State} is added to a {@link com.bayesserver.Variable} this value must be compatible with the {@link com.bayesserver.StateValueType} set on the variable.
Gets the {@link com.bayesserver.Variable} the state belongs to, if any.
If this instance is a child of another state, the state hierarchy is traversed to reach the variable of the root state, if any.
The {@link com.bayesserver.Variable} that this instance belongs to. Can be null.
Copies this instance.
A new {@link com.bayesserver.State} instance.
Returns the name of the state, or an empty string if the name is null.
A {@link String} containing the name of the state which is empty if the name is null.
Represents a state of a variable. E.g. the discrete variable Gender might have two states, Male and Female.
Note that a continuous variable always has a single state.