![]() |
fpmas 1.6
|
#include <graph_builder.h>
Public Member Functions | |
virtual std::size_t | nodeCount ()=0 |
virtual DistributedNode< T > * | buildNode (DistributedGraph< T > &graph)=0 |
An utility class used to automatically generate some nodes, that can be provided to a GraphBuilder.
T | graph datatype |
|
pure virtual |
Returns the count of nodes that the NodeBuilder can generate.
The value returned by this function is expected to be updated while buildNode() calls are performed.
Implemented in fpmas::graph::DistributedNodeBuilder< T >, fpmas::graph::DistributedNodeBuilder< int >, fpmas::graph::DistributedNodeBuilder< AgentPtr >, and fpmas::model::AgentNodeBuilder.
|
pure virtual |
Builds a node in the specified graph.
graph | graph in which the node must be built |