Kamaelia docs : Axon.idGen.idGen

For examples and more explanations, see the module level docs.


class idGen(object)

Unique ID creator.

Use numId(), strId(), and tupleId() methods to obtain unique IDs.

Methods defined here

idToString(self, thing, aNumId)

INTERNAL

Combines the 'str()' of the object's class with the id to form a string id

next(self)

INTERNAL

Returns the next unique id, incrementing the private class variable

nextId(self)

INTERNAL

Returns the next unique id, incrementing the private class variable

numId(self)

Allocates & returns the next available id

strId(self, thing)

Allocates & returns the next available id combined with the object's class name, in string form

tupleId(self, thing)

Allocates the next available id and returns it both as a tuple (num,str) containing both the numeric version and a string version where it is combined with the object's class name.

Feedback

Got a problem with the documentation? Something unclear that could be clearer? Want to help improve it? Constructive criticism is very welcome - especially if you can suggest a better rewording!

Please leave you feedback here in reply to the documentation thread in the Kamaelia blog.

-- Automatic documentation generator, 19 Oct 2008 at 14:28:09 UTC/GMT

This is a page from the Kamaelia website. You can find the original here: