Main Page | Class Hierarchy | Alphabetical List | Class List | File List | Class Members | File Members

Pac Class Reference

#include <Pac.h>

Inheritance diagram for Pac:

Elastoid PhysicalObject GraphicalObject List of all members.

Public Member Functions

Public Attributes

Private Member Functions

Private Attributes


Constructor & Destructor Documentation

Pac::Pac real  x0,
real  y0
 

Definition at line 12 of file Pac.cpp.

References activeLink, Elastoid::addObject(), index(), ElasticLink::k, l, M_PI, nCircles, real, rPac, GraphicalObject::setColor(), u, and u0.

Pac::~Pac  )  [virtual]
 

Definition at line 37 of file Pac.cpp.


Member Function Documentation

void Pac::controll  )  [virtual]
 

Transmits perceptual information to the controller and gets motor information from it. To be overridden by agents or other objects with self-generated movement.

Reimplemented from PhysicalObject.

Definition at line 41 of file Pac.cpp.

References activeLink, RandomController::advanceTime(), controller, Controller::getOutput(), l, ElasticLink::length, M_PI, nCircles, Vector2::normalize(), real, Vector2::rotate(), u, and u0.

int Pac::index int  i  )  [inline, private]
 

Definition at line 36 of file Pac.h.

Referenced by Pac().


Member Data Documentation

ElasticLink* Pac::activeLink
 

The link that can be controlled by the agent (the mouth).

Definition at line 17 of file Pac.h.

Referenced by controll(), and Pac().

RandomController Pac::controller
 

Definition at line 23 of file Pac.h.

Referenced by controll().

real Pac::l
 

The rest length of the active link.

Definition at line 20 of file Pac.h.

Referenced by controll(), and Pac().

int Pac::nCircles [private]
 

The number of circles that compose the agent. Should be odd.

Definition at line 29 of file Pac.h.

Referenced by controll(), and Pac().

real Pac::rPac [private]
 

The radius of the circular structure of the agent.

Definition at line 32 of file Pac.h.

Referenced by Pac().

real Pac::u [private]
 

Definition at line 34 of file Pac.h.

Referenced by controll(), and Pac().

real Pac::u0 [private]
 

Definition at line 34 of file Pac.h.

Referenced by controll(), and Pac().


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

Thyrix homepageUsers' guide

(C) Arxia 2004-2005