Swarm-NG  1.1
swarmng.Body.Attribute Class Reference

Attributes of the body, it is just a list of floating point values. More...

Public Member Functions

def __getitem__
 Get the ith value Usage. More...
 
def __setitem__
 Set the ith value Usage. More...
 
def __len__
 Length of the list Usage. More...
 

Detailed Description

Attributes of the body, it is just a list of floating point values.

You can use [] and len to extract values from it or iterate over it with a for loop.

Definition at line 192 of file __init__.doc.py.

Member Function Documentation

def swarmng.Body.Attribute.__getitem__ (   self,
  i 
)

Get the ith value Usage.

1 >>> self[i]

Definition at line 198 of file __init__.doc.py.

def swarmng.Body.Attribute.__len__ (   self)

Length of the list Usage.

1 >>> len(self)

Definition at line 210 of file __init__.doc.py.

def swarmng.Body.Attribute.__setitem__ (   self,
  i,
  v 
)

Set the ith value Usage.

1 >>> self[i] = 3

Definition at line 204 of file __init__.doc.py.


The documentation for this class was generated from the following file: