#include <iso_flock_parameter_combine_behavior.h>
Inherits iso::flock::Behavior.
Inheritance diagram for iso::flock::ParameterCombineBehavior:
Public Member Functions | |
ParameterCombineBehavior (const base::String &pInputParameterString, const base::String &pOutputParameterString) | |
create behavior | |
ParameterCombineBehavior (Agent *pAgent, const base::String &pBehaviorName, const base::String &pInputParameterString, const base::String &pOutputParameterString) throw (FlockException) | |
create behavior | |
~ParameterCombineBehavior () | |
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 * | mOutputPar |
input parameters into single output parameter
The behavior concatenations all input parameter values into a single output parameter.
Input Parameters:
type: InputParameter1 dim: nD neighbors: ignore
type: InputParameter2 dim: nD neighbors: ignore
etc
Output Parameter:
type: OutputParameter dim: the sum of the dimensions of all input parameters write: replace
Created by Daniel Bisig on 2/7/08.
ParameterCombineBehavior::ParameterCombineBehavior | ( | const base::String & | pInputParameterString, | |
const base::String & | pOutputParameterString | |||
) |
create behavior
pInputParameterString | input parameter string (parameters are space separated) | |
pOutputParameterString | output paramaters are space separated) |
ParameterCombineBehavior::ParameterCombineBehavior | ( | 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 |
ParameterCombineBehavior::~ParameterCombineBehavior | ( | ) |
destructor
Behavior * ParameterCombineBehavior::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 * ParameterCombineBehavior::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 ParameterCombineBehavior::act | ( | ) | [virtual] |