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

 

Kamaelia is an open source project originated from and guided by BBC Research. For more information browse the site or get in contact.

This is an ongoing community based development site. As a result the contents of this page is the opinions of the contributors of the pages involved not the organisations involved. Specificially, this page may contain personal views which are not the views of the BBC. (the site is powered by a wiki engine)

(C) Copyright 2008 Kamaelia Contributors, including the British Broadcasting Corporation, All Rights Reserved

This web site is powered by the same code created for the bicker manor project. For more details, contact Michael Sparks at BBC Research directly (cf contact)