August'24: Kamaelia is in maintenance mode and will recieve periodic updates, about twice a year, primarily targeted around Python 3 and ecosystem compatibility. PRs are always welcome. Latest Release: 1.14.32 (2024/3/24)

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, 09 Dec 2009 at 04:00:25 UTC/GMT