Package sabx10 :: Package utils :: Module sabx_number :: Class Id
[hide private]
[frames] | no frames]

Class Id

source code

object --+
         |
        Id

Keep track of the ids for the NumProcessor class.

Instance Methods [hide private]
 
__init__(self, start_val=0, unique=False)
Setup the instance variables.
source code
 
reset(self)
Start over counting.
source code
 
next(self)
Get the next id.
source code
 
range(self, length)
Get a list of ids.
source code

Inherited from object: __delattr__, __format__, __getattribute__, __hash__, __new__, __reduce__, __reduce_ex__, __repr__, __setattr__, __sizeof__, __str__, __subclasshook__

Instance Variables [hide private]
int start_val
starting id value
  unique
unique ids?
int val
current id value
Properties [hide private]

Inherited from object: __class__

Method Details [hide private]

__init__(self, start_val=0, unique=False)
(Constructor)

source code 

Setup the instance variables.

Overrides: object.__init__