3.1.11. c3po.CollaborativeObject module
Contain the class CollaborativePhysicsDriver.
- class c3po.CollaborativeObject.CollaborativeObject(elements)
Bases:
objectCollaborativeObjectdefines 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
CollaborativeObjectobject.- Parameters:
elements (list) – List of collaborating elements.
- getElements()
Return the elements held.
- Returns:
The list of elements provided to the constructor.
- Return type:
- 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: