3.1.11. c3po.CollaborativeObject module

Inheritance diagram of c3po.CollaborativeObject

Contain the class CollaborativePhysicsDriver.

class c3po.CollaborativeObject.CollaborativeObject(elements)

Bases: object

CollaborativeObject defines the concept of a collaborative object.

A collaborative object of a certain type is built from a collection of objects of that same type. Collaborative actions are obtained by the realization of these same actions by the objects held.

__init__(elements)

Build an CollaborativeObject object.

Parameters:

elements (list) – List of collaborating elements.

getElements()

Return the elements held.

Returns:

The list of elements provided to the constructor.

Return type:

list

getElementsRecursively()

Similar to getElements() but is applied recursively in order to return the full list of elements.

Returns:

The full list of elements.

Return type:

list