Initializes a new instance of the {@link com.bayesserver.VariableContext} class, copying an existing instance.
The variable context to copy.
Initializes a new instance of the {@link com.bayesserver.VariableContext} class. Time defaults to null and HeadTail to Head.
The variable.
Initializes a new instance of the {@link com.bayesserver.VariableContext} class. Time defaults to null.
The variable.
Indicates whether the variable is marked as head or tail.
Initializes a new instance of the {@link com.bayesserver.VariableContext} class. HeadTail defaults to Head.
The variable.
The time associated with the variable. Can be null.
Initializes a new instance of the {@link com.bayesserver.VariableContext} class.
The variable.
The time associated with the variable. Can be null.
Indicates whether the variable is marked as head or tail.
Specifies whether the variable is marked as Head or Tail.
Specified either Head or Tail.
Gets the time associated with the variable if it belongs to a temporal node.
The time associated with the variable. Null if the variable does not belong to a temporal node.
Gets the variable.
The variable.
Determines whether this instance is marked as Head.
true
if this instance is marked as Head; otherwise, false
.
Determines whether this instance is marked as Tail.
true
if this instance is marked as Tail; otherwise, false
.
Represents a variable and associated information such as time, and whether it is marked as head or tail.
A {@link com.bayesserver.VariableContext} is used to store contextual information about a variable in a distribution, such as whether it is marked as head or tail, and time if the variable belongs to a temporal node. The same variable can appear more than once in a distribution if it appears at different times.