Node definition

<< Click to Display Table of Contents >>

Navigation:  Using SMILE Wrappers > Anatomy of a node >

Node definition

The definition of the node specifies how it interacts with other nodes in the network. The node definition is written as part of the network when the network is saved to a file or serialized.

Use the following methods to read or write the numeric part of node definition:

Java:

Network.setNodeDefinition

Network.getNodeDefinition

Python:

Network.set_node_definition

Network.get_node_definition

R:

Network$setNodeDefinition

Network$getNodeDefinition

C#:

Network.SetNodeDefinition

Network.GetNodeDefinition

The discrete nodes (including the general chance nodes) also have the list of outcomes as part of their definition. The outcomes are identified by string identifiers, which must be unique within the node and follow SMILE rules for identifier: are case-sensitive, start with a letter and contain letters, digits and underscores. Outcomes can be added, deleted or renamed.