GBE::GUniverseExpansionAgent Class Reference

#include <GUniverseExpansionAgent.h>

Inheritance diagram for GBE::GUniverseExpansionAgent:

Inheritance graph
[legend]
Collaboration diagram for GBE::GUniverseExpansionAgent:

Collaboration graph
[legend]
List of all members.

Public Slots

virtual void receiveInfluence (const GCS::GElementInfluence &influence)
virtual void initMaxDistance (double maxdistance)

Public Member Functions

 GUniverseExpansionAgent ()
virtual ~GUniverseExpansionAgent ()

Detailed Description

Author:
Gerald Degeneve
When an influence of a child element is received the Agent checks the position of the sender. If the sender is going to leave the borders of this element the form will be expanded.

Adds the following xml data to the element data:

  <dynamics><maxdistance>double value</maxdistance></dynamics>


Constructor & Destructor Documentation

GBE::GUniverseExpansionAgent::GUniverseExpansionAgent (  ) 

Constructor

GBE::GUniverseExpansionAgent::~GUniverseExpansionAgent (  )  [virtual]

Virtual destructor for subclassing.


Member Function Documentation

void GBE::GUniverseExpansionAgent::initMaxDistance ( double  maxdistance  )  [virtual, slot]

Initializes the maximal allowed Distance in percent between an element and the borders of this Element. If the Form is 1000x1000x1000 and the maxdistance is 0.2 the form will be expanded if a element is 200 far away from the border.

Parameters:
factor acceleration factor towards an influence source

void GBE::GUniverseExpansionAgent::receiveInfluence ( const GCS::GElementInfluence influence  )  [virtual, slot]

Reimplements GAgent::receiveInfluence(). Expands the Form of this element, when necessary..

See also:
GCS::GEnergy, GCS::GElementInfluence.


The documentation for this class was generated from the following files:
Generated on Thu Nov 16 07:49:26 2006 for G System by  doxygen 1.4.7