GBE::GRadiatingAgent Class Reference
Periodically radiates an influence.
More...
#include <GRadiatingAgent.h>
Inheritance diagram for GBE::GRadiatingAgent:
[legend]Collaboration diagram for GBE::GRadiatingAgent:
[legend]List of all members.
Detailed Description
Periodically radiates an influence.
Radiates a fraction (Fraction) of the own energy as influence every few milliseconds (according to the Msleep attribute). If the element has a form then a GPositionalInfluence is used, otherwise a GElementInfluence.
A range can be specified in which the agent should keep the element's energy amount. If the energy amount is below the minimum then no influence is emitted. If the energy amount is above the maximum then more energy is emitted to get down to the maximum amount.
- See also:
- GPositionalInfluence.
Constructor & Destructor Documentation
| GBE::GRadiatingAgent::GRadiatingAgent |
( |
double |
fraction, |
|
|
double |
min_energy_amount, |
|
|
double |
max_energy_amount, |
|
|
unsigned long |
msleep = 100, |
|
|
QObject * |
parent = NULL, |
|
|
const char * |
name = NULL |
|
) |
|
|
|
|
Constructor. Allows for paramter initialisation. |
Member Function Documentation
| void GBE::GRadiatingAgent::run |
( |
|
) |
[virtual] |
|
| void GBE::GRadiatingAgent::setActiveElementData |
( |
bool |
element_active, |
|
|
double |
sense_distance, |
|
|
double |
sense_distance_detail |
|
) |
[virtual] |
|
Member Data Documentation
|
|
If current energy amount is between MinEnergyAmount and MaxEnergyAmount then this fraction of own energy amount is emitted |
|
|
If current energy amount is greater than MaxEnergyAmount the agent will emit just as much to reach MaxEnergyAmount. |
|
|
The agent won't radiate any influence if current energy amount is less than MinEnergyAmount. |
|
|
Determines the time between which influences are radiated. |
|
|
Sets sense distance for equal hierarchy level |
|
|
Sets sense distance for lower hierarchy level |
The documentation for this class was generated from the following files:
Generated on Thu Oct 21 21:18:15 2004 for G System by
1.3.6