RepastHPC  2.3.1
Public Member Functions | List of all members
repast::relogo::RandomMove Class Reference

Operator(() that implements random move for a turtle. More...

#include <RandomMove.h>

Public Member Functions

 RandomMove (Observer *observer)
 Creates a RandomMove that randomly move turtles within the spaces managed by the specified observer. More...
 
void operator() (Turtle *turtle) const
 Move the specified turtle at random. More...
 

Detailed Description

Operator(() that implements random move for a turtle.

Constructor & Destructor Documentation

◆ RandomMove()

repast::relogo::RandomMove::RandomMove ( Observer observer)
inline

Creates a RandomMove that randomly move turtles within the spaces managed by the specified observer.

Parameters
observerthe observer whose spaces and turtles we want to move

Member Function Documentation

◆ operator()()

void repast::relogo::RandomMove::operator() ( Turtle turtle) const

Move the specified turtle at random.

Parameters
turtlethe turtel to move

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