Struct fbp::fbp_node_network::NetworkConfiguration [−][src]
pub struct NetworkConfiguration { /* fields omitted */ }
Expand description
NetworkConfiguration
The NetworkConfiguration struct is a grouping of all of the nodes in a network of nodes. It does not describe the actual network but does allow for treating the network as a unit instead of a set of disparate nodes.
This struct can be used in two ways. The first is to create a network
from a JSON representation of the network. This is done by using the
NodeNetworkItem to create all of the nodes in the network. The call to
NodeNetworkItem::create_node returns an Option
The second way to use the NetworkConfiguration struct is to create an empty NetworkConfiguration struct and calling add_node on the FBPNodeContext of your network. This will allow for doing the same thing as calling NodeNetworkItem::create_node in that the network of nodes can now be addressed as a unit.