#include <iso_flock_parameter_print_behavior.h>
Inherits iso::flock::Behavior.
Inheritance diagram for iso::flock::ParameterPrintBehavior:
Public Member Functions | |
ParameterPrintBehavior (const base::String &pInputParameterString, const base::String &pOutputParameterString) | |
create behavior | |
ParameterPrintBehavior (Agent *pAgent, const base::String &pBehaviorName, const base::String &pInputParameterString, const base::String &pOutputParameterString) throw (FlockException) | |
create behavior | |
~ParameterPrintBehavior () | |
destructor | |
virtual Behavior * | create (const base::String &pBehaviorName, Agent *pAgent) const throw (FlockException) |
create copy of behavior | |
virtual Behavior * | create (const base::String &pInputParameterString, const base::String &pOutputParameterString) const |
create copy of behavior | |
void | act () |
perform behavior | |
Protected Attributes | |
Parameter * | mParameter |
to console
The Behavior prints parameter to console
It prints the agent name and the parameter's value and backup value
Might come in handy for debugging purposes
Input Parameter:
type: any dim: nD neighbors: ignored
Output Parameter:
Internal Parameter:
name: xxx_active dim: 1D defaultValue: 0.1
Created by Daniel Bisig on 05/12/08.
ParameterPrintBehavior::ParameterPrintBehavior | ( | const base::String & | pInputParameterString, | |
const base::String & | pOutputParameterString | |||
) |
create behavior
pInputParameterString | input parameter string (parameters are space separated) | |
pOutputParameterString | output paramaters are space separated) |
ParameterPrintBehavior::ParameterPrintBehavior | ( | Agent * | pAgent, | |
const base::String & | pBehaviorName, | |||
const base::String & | pInputParameterString, | |||
const base::String & | pOutputParameterString | |||
) | throw (FlockException) |
create behavior
pAgent | agent this behavior belongs to | |
pBehaviorName | name of behavior | |
pInputParameterString | input parameter string (parameters are space separated) | |
pOutputParameterString | output paramaters are space separated) |
FlockException | wrong number of type of parameters |
ParameterPrintBehavior::~ParameterPrintBehavior | ( | ) |
destructor
Behavior * ParameterPrintBehavior::create | ( | const base::String & | pBehaviorName, | |
Agent * | pAgent | |||
) | const throw (FlockException) [virtual] |
create copy of behavior
pAgent | agent this behavior belongs to | |
pBehaviorName | name of behavior |
FlockException | wrong number of type of parameters |
Implements iso::flock::Behavior.
Behavior * ParameterPrintBehavior::create | ( | const base::String & | pInputParameterString, | |
const base::String & | pOutputParameterString | |||
) | const [virtual] |
create copy of behavior
pInputParameterString | input parameter string | |
pOutputParameterString | output parameter string |
Implements iso::flock::Behavior.
void ParameterPrintBehavior::act | ( | ) | [virtual] |
Parameter* iso::flock::ParameterPrintBehavior::mParameter [protected] |