Package AccessEngine :: Package AEWalkers :: Module Base :: Class AEWalker
[hide private]
[frames] | no frames]

Class AEWalker

source code

object --+
         |
        AEWalker

Walks accessible hiearchy in a well-defined order determined by a subclass of this base class. The traversal is stateless so that the walker can begin at any node in the tree and walk in any direction.

Instance Methods [hide private]
 
__init__(self, por)
Stores the starting AEPor.
source code
AEPor
getCurrPOR(self)
Returns: Point of regard to the current object
source code
AEPor
getParentPOR(self)
Returns: Point of regard to the parent of the current object
source code
AEPor
getNextPOR(self)
Returns: Point of regard to the next object in the walk order
source code
AEPor
getPrevPOR(self)
Returns: Point of regard to the previous object in the walk order
source code
AEPor
getFirstPOR(self)
Returns: Point of regard to the first of all objects
source code
AEPor
getLastPOR(self)
Returns: Point of regard to the last of all objects
source code

Inherited from object: __delattr__, __getattribute__, __hash__, __new__, __reduce__, __reduce_ex__, __repr__, __setattr__, __str__

Instance Variables [hide private]
AEPor por
The starting AEPor for the AEWalker
Properties [hide private]

Inherited from object: __class__

Method Details [hide private]

__init__(self, por)
(Constructor)

source code 
Stores the starting AEPor.
Parameters:
  • por (AEPor) - The current AEPor for the AEWalker
Overrides: object.__init__

getCurrPOR(self)

source code 
Returns: AEPor
Point of regard to the current object
Raises:
  • NotImplementedError - When not overriden in a subclass

getParentPOR(self)

source code 
Returns: AEPor
Point of regard to the parent of the current object
Raises:
  • NotImplementedError - When not overriden in a subclass

getNextPOR(self)

source code 
Returns: AEPor
Point of regard to the next object in the walk order
Raises:
  • NotImplementedError - When not overriden in a subclass

getPrevPOR(self)

source code 
Returns: AEPor
Point of regard to the previous object in the walk order
Raises:
  • NotImplementedError - When not overriden in a subclass

getFirstPOR(self)

source code 
Returns: AEPor
Point of regard to the first of all objects
Raises:
  • NotImplementedError - When not overriden in a subclass

getLastPOR(self)

source code 
Returns: AEPor
Point of regard to the last of all objects
Raises:
  • NotImplementedError - When not overriden in a subclass