Inheritance diagram for TrackBehavior:
Public Member Functions | |
TrackBehavior (const base::String &pInputParameterString, const base::String &pOutputParameterString) | |
create behavior | |
TrackBehavior (Agent *pAgent, const base::String &pBehaviorName, const base::String &pInputParameterString, const base::String &pOutputParameterString) throw (FlockException) | |
create behavior | |
~TrackBehavior () | |
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 * | mPositionPar |
Parameter * | mForcePar |
position parameter (input) | |
Parameter * | mMaxDistPar |
force parameter (output) | |
Parameter * | mAmountPar |
minimum distance parameter (internal) | |
space::NeighborGroup * | mContourNeighbors |
behavior amount parameter (internal) | |
math::Vector< float > | mTmpForce |
contour neighbor group |
TrackBehavior::TrackBehavior | ( | const base::String & | pInputParameterString, | |
const base::String & | pOutputParameterString | |||
) |
create behavior
pInputParameterString | input parameter string (parameters are space separated) | |
pOutputParameterString | output paramaters are space separated) |
TrackBehavior::TrackBehavior | ( | 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 |
TrackBehavior::~TrackBehavior | ( | ) |
destructor
virtual Behavior* TrackBehavior::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.
virtual Behavior* TrackBehavior::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 TrackBehavior::act | ( | ) | [virtual] |
Parameter* TrackBehavior::mPositionPar [protected] |
Parameter* TrackBehavior::mForcePar [protected] |
position parameter (input)
Parameter* TrackBehavior::mMaxDistPar [protected] |
force parameter (output)
Parameter* TrackBehavior::mAmountPar [protected] |
minimum distance parameter (internal)
space::NeighborGroup* TrackBehavior::mContourNeighbors [protected] |
behavior amount parameter (internal)
math::Vector<float> TrackBehavior::mTmpForce [protected] |
contour neighbor group