Atoms Crowd  7.0.0
Atoms::AgentBehaviourNetwork Class Reference

Agent behaviour network. More...

#include <AgentBehaviourNetwork.h>

Public Member Functions

 AgentBehaviourNetwork ()
 Constructor.
 
 ~AgentBehaviourNetwork ()
 Destructor.
 
 AgentBehaviourNetwork (const AgentBehaviourNetwork &other)
 Copy constructor.
 
AgentBehaviourNetworkoperator= (const AgentBehaviourNetwork &other)
 Assign operator.
 
AtomsGraph::NetworkManagermanager ()
 Get network manager.
 
void preBuildPose ()
 Compute all nodes in the pre build pose list.
 
void buildPose ()
 Compute the build pose operator.
 
void postBuildPose ()
 Compute all nodes in the post build pose list.
 
OperatorbuildPoseNode ()
 Get the build pose operator.
 
void setBuildPoseNode (Operator *node)
 Set the node to be called during the build pose phase.
 
void addPreBuildPoseNode (AtomsGraph::Node *node)
 Add a node to the pre build pose list.
 
void removePreBuildPoseNode (AtomsGraph::Node *node)
 Remove a node from the pre build pose list.
 
void removePreBuildPoseNode (const std::string &name)
 Remove a node from the pre build pose list by name.
 
std::list< AtomsGraph::Node * > & preBuildPoseNodes ()
 Get the pre build pose node list.
 
void cleanPreBuildPoseNodes ()
 Clean the pre build pose list.
 
void addPostBuildPoseNode (AtomsGraph::Node *node)
 Add a node to the post build pose list.
 
void removePostBuildPoseNode (AtomsGraph::Node *node)
 Remove a node from the post build pose list.
 
void removePostBuildPoseNode (const std::string &name)
 Remove a node from the post build pose list by name.
 
std::list< AtomsGraph::Node * > & postBuildPoseNodes ()
 Get the post build pose node list.
 
void cleanPostBuildPoseNodes ()
 Clean the post build pose list.
 
void setSimulationTime (double value)
 Set the simulation time.
 
void setFps (double value)
 Set frame per seconds.
 
AtomsGraph::TimeNodetimeNode ()
 Get time node, the time node gets the global time value and converts it using the frame rate of the current agent.
 
AtomsGraph::BufferDoubleglobalTimeNode ()
 Get global time node, the global time node outputs the simulation time.
 
void buildNetworkCaches ()
 Compute the network caches for the pre, post and build pose nodes.
 
void reset ()
 Reset the network.
 
void clearNodeCache ()
 Clear the node cache.
 
void clear ()
 Clear all data.
 
void setComputeData (const AtomsGraph::ComputeData *computeData)
 Set compute data.
 

Detailed Description

Agent behaviour network.

A wrapper around the AtomsGraph Network manager During the computeFrame Atoms Crowd calls the following methods in the given order:

  • preBuildPose
  • buildPose
  • postBuildPose With this class it is possible to:
  • set an operator for the build pose phase.
  • set a list of nodes/operators for the pre and post pose phases

The documentation for this class was generated from the following files: