#include <iso_flock_reset_behavior.h>
Inherits iso::flock::Behavior.
Inheritance diagram for iso::flock::ResetBehavior:
Public Member Functions | |
ResetBehavior (const base::String &pInputParameterString, const base::String &pOutputParameterString) | |
create behavior | |
ResetBehavior (Agent *pAgent, const base::String &pBehaviorName, const base::String &pInputParameterString, const base::String &pOutputParameterString) throw (FlockException) | |
create behavior | |
~ResetBehavior () | |
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 * | mResetPar |
Parameter * | mResetValuePar |
reset parameter (output) | |
Parameter * | mResetAmountPar |
reset value parameter (internal) |
value
The Behavior randomizes parameter value
Input Parameter:
Output Parameter:
type: output dim: nD write: replace
Internal Parameter:
name: xxx_resetValue dim: nD defaultValue: 0.0
name: xxx_resetAmount dim: nD defaultValue: 1.0
name: xxx_active dim: 1D defaultValue: 0.1
Created by Daniel Bisig on 4/16/07.
ResetBehavior::ResetBehavior | ( | const base::String & | pInputParameterString, | |
const base::String & | pOutputParameterString | |||
) |
create behavior
pInputParameterString | input parameter string (parameters are space separated) | |
pOutputParameterString | output paramaters are space separated) |
ResetBehavior::ResetBehavior | ( | 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 |
ResetBehavior::~ResetBehavior | ( | ) |
destructor
Behavior * ResetBehavior::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 * ResetBehavior::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 ResetBehavior::act | ( | ) | [virtual] |
Parameter* iso::flock::ResetBehavior::mResetPar [protected] |
Parameter* iso::flock::ResetBehavior::mResetValuePar [protected] |
reset parameter (output)
Parameter* iso::flock::ResetBehavior::mResetAmountPar [protected] |
reset value parameter (internal)