Back to index

python3.2  3.2.2
Public Member Functions | Public Attributes
turtledemo.planet_and_moon.GravSys Class Reference
Inheritance diagram for turtledemo.planet_and_moon.GravSys:
Inheritance graph
[legend]
Collaboration diagram for turtledemo.planet_and_moon.GravSys:
Collaboration graph
[legend]

List of all members.

Public Member Functions

def __init__
def init
def start

Public Attributes

 planets
 t
 dt
_PyObject_HEAD_EXTRA Py_ssize_t ob_refcnt
struct _typeobjectob_type

Detailed Description

Definition at line 25 of file planet_and_moon.py.


Constructor & Destructor Documentation

Definition at line 26 of file planet_and_moon.py.

00026 
00027     def __init__(self):
00028         self.planets = []
00029         self.t = 0
        self.dt = 0.01

Here is the caller graph for this function:


Member Function Documentation

Definition at line 30 of file planet_and_moon.py.

00030 
00031     def init(self):
00032         for p in self.planets:
            p.init()

Here is the caller graph for this function:

Definition at line 33 of file planet_and_moon.py.

00033 
00034     def start(self):
00035         for i in range(10000):
00036             self.t += self.dt
00037             for p in self.planets:
00038                 p.step()

Here is the caller graph for this function:


Member Data Documentation

Definition at line 29 of file planet_and_moon.py.

Definition at line 107 of file object.h.

struct _typeobject* _object::ob_type [inherited]

Definition at line 108 of file object.h.

Definition at line 27 of file planet_and_moon.py.

Definition at line 28 of file planet_and_moon.py.


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