Package populus :: Module Element :: Class ElementIVA09
[frames] | no frames]

Class ElementIVA09



An Element is a cluster of people, relatively close to each other,
perceived as a single unit of participation.

- NOTE -
This is more an example class than a real final good implementation
of an Element base class. The current is intended to quickly build
a demo for IVA09. The class uses a sensor to allow passersby reasoning.

Instance Methods
 
__init__(self, participants, parent=render)
x.__init__(...) initializes x; see x.__class__.__doc__ for signature
 
getName(self)
This is only to make the PerceptionSystem happy!
 
position(self)
This is only to make the PerceptionSystem happy!
 
enterFormed(self)
 
exitFormed(self)
 
OnEnter(self, object)
 
OnExit(self, object)
 
computeOccupancy(self)
Implement this!
 
dismiss(self)
Destroy the element dismissing the formation.

Inherited from HumanTerritory.HumanTerritory: addMembers, annotateTerritory, getCenter, getRadius, locateMember, output, relocateAllMembers, relocateMember, removeMember, reorganize, stashAnnotations, unstashAnnotations

Inherited from object: __delattr__, __getattribute__, __hash__, __new__, __reduce__, __reduce_ex__, __repr__, __setattr__, __str__

Inherited from direct.showbase.DirectObject.DirectObject: accept, acceptOnce, addTask, classTree, detectLeaks, doMethodLater, getAllAccepting, ignore, ignoreAll, isAccepting, isIgnoring, removeAllTasks, removeTask

Properties

Inherited from object: __class__

Method Details

__init__(self, participants, parent=render)
(Constructor)

 

x.__init__(...) initializes x; see x.__class__.__doc__ for signature

Overrides: direct.showbase.DirectObject.DirectObject.__init__