Initializes a new instance of the {@link com.bayesserver.Node} class, with no variables, and no name.
Initializes a new instance of the {@link com.bayesserver.Node} class with a specified {@link com.bayesserver.Variable} and assigns the name of the variable to the node.
A single variable for the node.
Initializes a new instance of the {@link com.bayesserver.Node} class with the specified [name]. A {@link com.bayesserver.Variable} is automatically created for the node and assigned the same name as the node with the {@link com.bayesserver.VariableValueType} specified.
The name to give the node and variable, which can be null or empty.
The {@link com.bayesserver.VariableValueType} of the node variable, e.g. discrete or continuous.
The kind of variable, e.g. Probability (standard), Decision or Utility.
Initializes a new instance of the {@link com.bayesserver.Node} class with the specified [name]. A {@link com.bayesserver.Variable} is automatically created for the node and assigned the same name as the node with the {@link com.bayesserver.VariableValueType} specified.
The name to give the node and variable, which can be null or empty.
The {@link com.bayesserver.VariableValueType} of the node variable, e.g. discrete or continuous.
Initializes a new instance of the {@link com.bayesserver.Node} class with the specified [name] and automatically adds a discrete {@link com.bayesserver.Variable} with the number of states specified in [states].
The name to give the node and variable, which can be null or empty.
The number of states to add to the automatically created {@link com.bayesserver.Variable}. States will be given default names.
Initializes a new instance of the {@link com.bayesserver.Node} class, with the name of the node, automatically creating an associated discrete {@link com.bayesserver.Variable} and adds the states specified in [states] to that variable.
The name to give the node and variable, which can be null or empty.
The number of states to add to the automatically created {@link com.bayesserver.Variable}. States will be given default names.
Initializes a new instance of the {@link com.bayesserver.Node} class, with the name of the node, automatically creating an associated discrete {@link com.bayesserver.Variable} and adds the states specified in [states] to that variable.
The name to give the node and variable, which can be null or empty.
The number of states to add to the automatically created {@link com.bayesserver.Variable}. States will be given default names.
Initializes a new instance of the {@link com.bayesserver.Node} class with a specified name and a number of variables.
The name to give the node and variable, which can be null or empty.
The variable(s) represented by the node.
Gets custom properties associated with this instance.
Custom properties allow storage of custom information, which will be saved with the network.
An optional description for the node.
An optional description for the node.
Returns the distribution currently associated with the {@link com.bayesserver.Node}. The distribution cannot be modified when it is assigned to a node. It is also automatically set to null, when certain structural changes occur (see remarks).
If a structural change occurs to the network that invalidates the current distribution, it is automatically set to null. This occurs in the following situations:
Returns the distribution currently associated with the {@link com.bayesserver.Node}. The distribution cannot be modified when it is assigned to a node. It is also automatically set to null, when certain structural changes occur (see remarks).
If a structural change occurs to the network that invalidates the current distribution, it is automatically set to null. This occurs in the following situations:
Options that apply to all distributions of this instance.
Returns the distributions associated with this instance with NodeDistributionKind = Probability. Some node types such as temporal nodes can have more than one distribution assigned to them.
Gets the groups this node belongs to.
The Index of this instance in the collection of nodes belonging to a network, or -1 if the node does not belong to a network.
Collection of both incoming and outgoing links (parent and child nodes).
Collection of incoming links (linking to parent nodes).
Collection of outgoing links (linking to child nodes).
The name of the node. Node names in a network must be unique, and comparisons are case sensitive.
The name of the node. Node names in a network must be unique, and comparisons are case sensitive.
The {@link com.bayesserver.Network} the node belongs to. Value will be null unless the node has been added to a network.
The {@link com.bayesserver.TemporalType} of the node. The default value is {@link com.bayesserver.TemporalType#Contemporal}.
The {@link com.bayesserver.TemporalType} of the node. The default value is {@link com.bayesserver.TemporalType#Contemporal}.
Collection of variables represented by the node.
Makes a copy of this instance.
The copy does not include links or distribution(s).
The copy.
Creates a new distribution suitable for the requested temporal order, however it is not assigned to the node. Use {@link com.bayesserver.Node#getDistributions} to perform the assignment.
See {@link com.bayesserver.NodeDistributions} for more information.
Note: if the resulting distribution contains continuous variables, but no discrete head variables, all table values are initialized to 1.
The order for the requested distribution.
The new distribution.
Creates a new distribution suitable for the requested temporal order/related node, however it is not assigned to the node. Use {@link com.bayesserver.Node#getDistributions} to perform the assignment.
See {@link com.bayesserver.NodeDistributions} for more information.
Note: if the resulting distribution contains continuous variables, but no discrete head variables, all table values are initialized to 1.
A noisy node is specified using multiple distributions, one for each parent and a leak distribution. Set the related node property to a parent, or set it to the current node to set the leak distribution.
Identifies the order/related node for the requested distribution.
The new distribution.
Creates a new distribution with the given kind, however it is not assigned to the node. Use {@link com.bayesserver.Node#getDistributions} to perform the assignment. For temporal or noisy nodes us a different overload.
See {@link com.bayesserver.NodeDistributions} for more information.
Note: if the resulting distribution contains continuous variables, but no discrete head variables, all table values are initialized to 1.
The kind of distribution to create.
The new distribution.
Creates a new distribution suitable for the requested temporal order/related node, however it is not assigned to the node. Use {@link com.bayesserver.Node#getDistributions} to perform the assignment.
See {@link com.bayesserver.NodeDistributions} for more information.
Note: if the resulting distribution contains continuous variables, but no discrete head variables, all table values are initialized to 1.
Experience table entries are also initialized to 1.
A noisy node is specified using multiple distributions, one for each parent and a leak distribution. Set the related node property to a parent, or set it to the current node to set the leak distribution.
Identifies the order/related node for the requested distribution.
The kind of distribution to create.
The new distribution.
Creates a new distribution suitable for the node, however does not assign it to the node's {@link com.bayesserver.Node#getDistribution} property.
This method is useful for creating distributions appropriate for a node. However, the returned distribution cannot be set to {@link com.bayesserver.Node#getDistribution} until the distribution has been correctly specified.
Note: if the resulting distribution contains continuous variables, but no discrete head variables, all table values are initialized to 1.
A new distribution.
Returns the name of the node, or an empty string if the name is null.
A {@link String} containing the name of the node which is empty if the name is null.
Represents a node with one or more variables in a Bayesian network.
Note that node names must be unique per network, and are case sensitive.
To specify a distribution for a node, see the {@link com.bayesserver.Node#getDistribution} property.
To add a directed link between two nodes, it must be added through the {@link com.bayesserver.Network#getLinks Network.Links} property.
com.bayesserver.Network
com.bayesserver.Link