april  1.0.0
...
 All Classes Files Functions Variables Typedefs Enumerations Enumerator Macros Pages
april::Gui::AGui Class Reference

An Actor with gui characteristics. More...

#include <agui.h>

+ Inheritance diagram for april::Gui::AGui:

Public Member Functions

 AGui (World *w)
 constructor;
- Public Member Functions inherited from april::Actor
 Actor (World *w)
 constructor; creates an invalid actor that needs further initialisation
virtual bool save (QSettings &s) const
 save to a QSettings object
virtual bool load (QSettings &s)
 load from a QSettings object
virtual ID identificator (void) const
 associated ID, if any
virtual Factoryfactory (void) const
 associated factory, if any
SensorfirstSensor (void) const
 first sensor in internal list
ActuatorfirstActuator (void) const
 first actuator in internal list
ReflexfirstReflex (void) const
 first reflex in internal list
BrainfirstBrain (void) const
 first brain in internal list
SensorfindSensor (ID id) const
 first sensor in internal list
ActuatorfindActuator (ID id) const
 first actuator in internal list
ReflexfindReflex (ID id) const
 first reflex in internal list
BrainfindBrain (ID id) const
 first brain in internal list
Worldworld (void) const
 the world where we belong
ID kind (void) const
 tell the kind
QString kindName (void) const
 get the name of the kind (shortcut for UniqueId::name() )
const DNAdna (void) const
 the DNA of this actor
quint64 birth (void) const
 tell the date of birth
quint64 death (void) const
 tell the date of death
quint64 age (void) const
 tell the age of this actor
quint64 toLive (void) const
 tell the life span of this actor
quint64 energy (void) const
 own energy reserve
quint64 totalEnergy (void) const
 total energy packed in this agent (the agent itself and the compoenets)
quint64 cost (void) const
 energy cost
bool isAlive (void) const
 alive or dead
bool dies (void) const
 tell if this is the moment when the agent dies
- Public Member Functions inherited from april::Component
 Component (void)
 constructor;
Amorph & payload (void)
 associated data

Protected Member Functions

virtual ~AGui (void)
 destructor;
- Protected Member Functions inherited from april::Actor
virtual ~Actor (void)
 destructor;
void killMe (void)
 kill the actor; both the actor and the world use this method
void setDNA (const DNA &src)
 set the DNA to provided sequence (intended for ActorFactory)
bool decodeDNA (void)
 load the components of the actor from the DNA
bool addActuator (Actuator *act)
 add an Actuator
bool addSensor (Sensor *act)
 add a Sensor
bool addReflex (Reflex *act)
 add a Reflex
bool addBrain (Brain *act)
 add a Brain
bool remActuator (Actuator *act)
 remove an Actuator
bool remSensor (Sensor *act)
 remove a Sensor
bool remReflex (Reflex *act)
 remove a Reflex
bool remBrain (Brain *act)
 remove a Brain
void doSteps (int steps=1)
 perform steps (called by the World)
void makeAlive (void)
 make the actor alive
void setEnergy (quint64 new_val)
 set total energy (used by the world to initialise and terminate actor)
- Protected Member Functions inherited from april::Component
virtual ~Component (void)
 destructor;
virtual void inserted (void)
 the instance is informed that the parent attached it

Additional Inherited Members

- Static Public Member Functions inherited from april::Actor
static Q_REQUIRED_RESULT ActorfromStg (World *w, QSettings &s)
 constructor method; creates and loads an actor from QSettings

Detailed Description

An Actor with gui characteristics.


The documentation for this class was generated from the following files: