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

Class LineElement


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

Instance Methods
 
__init__(self, participants, direction=(0,1,0))
Create an empty CompositeFormation.
 
dismiss(self)
Destroy the formation and dismiss the units form arranging in a certain way.
 
run(self, task)

Inherited from Formation.LineFormation: enterFormed, enterForming

Inherited from Formation.CompositeFormation: add, annotate, bounds, direction, enterBroken, exitBroken, exitFormed, exitForming, getNumUnits, getUnit, goTo, position, radius, rearrange, remove, setDirection, setPosition, speed, update, whenBroken, whenFormed, whenForming

Inherited from Formation.FormationUnit: turnTo

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__

Class Variables

Inherited from Formation.CompositeFormation: SEPARATION, SHAPE_TOLERANCE, STABILITY_THRESHOLD

Properties

Inherited from object: __class__

Method Details

__init__(self, participants, direction=(0,1,0))
(Constructor)

 

Create an empty CompositeFormation.

Overrides: object.__init__
(inherited documentation)

dismiss(self)

 

Destroy the formation and dismiss the units form arranging in a certain way.

Overrides: Element.dismiss
(inherited documentation)