Walker :: Base :: Walker :: Class Walker
[hide private]
[frames] | no frames]

Class Walker

source code

object --+
         |
        Walker

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 POR.
source code
POR
getCurrPOR(self)
Returns: Point of regard to the current object
source code
POR
getParentPOR(self)
Returns: Point of regard to the parent of the current object
source code
POR
getNextPOR(self)
Returns: Point of regard to the next object in the walk order
source code
POR
getPrevPOR(self)
Returns: Point of regard to the previous object in the walk order
source code
POR
getFirstPOR(self)
Returns: Point of regard to the first of all objects
source code
POR
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]
POR por
The starting POR for the Walker
Properties [hide private]

Inherited from object: __class__

Method Details [hide private]

__init__(self, por)
(Constructor)

source code 

Stores the starting POR.

Parameters:
Overrides: object.__init__

getCurrPOR(self)

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

getParentPOR(self)

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

getNextPOR(self)

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

getPrevPOR(self)

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

getFirstPOR(self)

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

getLastPOR(self)

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