__init__ def __init__(self, aliasMap={}) Undocumented function. |
__loadPhase def __loadPhase(self, phase) Undocumented function. |
__phaseNotFound def __phaseNotFound(self, mode, aPhase) Undocumented function. |
__repr__ def __repr__(self) Undocumented function. |
__str__ def __str__(self) Undocumented function. |
__unloadPhase def __unloadPhase(self, phase) Undocumented function. |
cleanup def cleanup(self) Will force the unloading, in correct order, of all currently loaded phases. |
getAliasPhase def getAliasPhase(self, alias) Returns the phase number of an alias, if it exists. Otherwise, returns the alias. |
getPhase def getPhase(self) Returns the current phase (or alias, if defined) this object is currently in. |
getPhaseAlias def getPhaseAlias(self, phase) Returns the alias of a phase number, if it exists. Otherwise, returns the phase number. |
setAlias def setAlias(self, phase, alias) Map an alias to a phase number. phase must be >= 0 and alias must be a string of characters suitable for python variable names. The mapping must be one-to-one. |
setPhase def setPhase(self, aPhase) aPhase can be either a phase number or a predefined alias. Will invoke a sequence of loadPhase*() or unloadPhase*() functions corresponding to the difference between the current phase and aPhase, starting at the current phase. |