March 2024 - This site, and Kamaelia are being updated. There is significant work needed, and PRs are welcome.
Axon.idGen.py
Version: Axon 1.0
idGen() - idsequence generator
Pydoc Style
Documentation
FUNCTIONS
newId = strId(self, thing) method of
idGen instance
- 'IG.strId(object)' - Allocates & returns the next available id
combined with the object's class name, in string form
numId(self) method of idGen
instance
- 'IG.numId()' - Allocates & returns the next available id
strId(self, thing) method of idGen
instance
- 'IG.strId(object)' - Allocates & returns the next available id
combined with the object's class name, in string form
tupleId(self, thing) method of idGen
instance
- 'IG.tupleId(thing)' -> (IG.numId(), IG.strId(thing)), but with
ids the same in num & str
class idGen(object)
Methods defined here:
idToString(self, thing,
aNumId)
- INTERNAL
'IG.idToString(thing,numId)' - Combines the 'str()' of the object's
class with the id to form a string id
next = nextId(self)
nextId(self)
- INTERNAL
'IG.nextId()' - returns the next id, incrementing the private class
variable
numId(self)
- 'IG.numId()' - Allocates & returns the next available id
strId(self, thing)
- 'IG.strId(object)' - Allocates & returns the next available id
combined with the object's class name, in string form
tupleId(self, thing)
- 'IG.tupleId(thing)' -> (IG.numId(), IG.strId(thing)), but with
ids the same in num & str
...
Testdoc
Documentation
TODO:Implement test suite for
Axon.debug.py (We did mention that tests were added late in the
project?)
Michael, December 2004