Package populus :: Module RowElement :: Class RowElement
[frames] | no frames]

Class RowElement



A RowElement is a cluster of people, relatively close to each other,
perceived as a single unit of participation and arranged in a row.

- NOTE -
This is more an example class than a real final good implementation
The current is intended to quickly build a demo for IVA09.

Instance Methods
 
__init__(self, participants, facing=(0,1,0), parent=render)
x.__init__(...) initializes x; see x.__class__.__doc__ for signature
 
enterForming(self)
Arrange participant in a line when the formation is forming.
 
enterFormed(self)
What to do when enter state Formed.
 
computeOccupancy(self)
Return an approximated space occupancy of the territorial members.
 
update(self, dt)
 
dismiss(self)
Destroy the element dismissing the formation.
 
run(self, task)

Inherited from Element.Element: exitFormed

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__

Properties

Inherited from object: __class__

Method Details

__init__(self, participants, facing=(0,1,0), parent=render)
(Constructor)

 

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

Overrides: object.__init__
(inherited documentation)

enterFormed(self)

 

What to do when enter state Formed.

Overrides: Element.Element.enterFormed
(inherited documentation)

computeOccupancy(self)

 

Return an approximated space occupancy of the territorial members. Occupancy is defined as a rectangular area containing all the members. Notice that the area is not minimal. NOTE: the computation is very approximated and is just a first trial. To be replaced!

dismiss(self)

 

Destroy the element dismissing the formation.

Overrides: Element.Element.dismiss
(inherited documentation)