Swarm-NG  1.1
swarmng.Ensemble Class Reference

Abstract ensemble data structure. More...

Inheritance diagram for swarmng.Ensemble:
swarmng.DefaultEnsemble

Public Member Functions

def __getitem__
 Get the ith system as a System object. More...
 
def __len__
 Number of systems in the ensemble equal to nsys Usage. More...
 

Properties

 nsys = property
 Number of systems in the ensemble (integer value)
 
 nbod = property
 Number of bodies per system (integer value)
 

Detailed Description

Abstract ensemble data structure.

The ensemble class has all the accessor methods it is only abstract in terms of storage. Because an ensemble can be stored on GPU memory or system memory.

To create an ensemble refer to DefaultEnsemble.create or DefaultEnsemble.load_from_bin or DefaultEnsemble.load_from_text

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

Member Function Documentation

def swarmng.Ensemble.__getitem__ (   self,
  i 
)

Get the ith system as a System object.

Usage

1 >>> self[i]

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

def swarmng.Ensemble.__len__ (   self)

Number of systems in the ensemble equal to nsys Usage.

1 >>> len(self)

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


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