Class dnx.lr.InstancePathTraversal
All Packages  Class Hierarchy  This Package  Previous  Next  Index

Class dnx.lr.InstancePathTraversal

java.lang.Object
   |
   +----dnx.util.DNXObject
           |
           +----dnx.util.DNXInstancedObject
                   |
                   +----dnx.lr.Action
                           |
                           +----dnx.lr.Traversal
                                   |
                                   +----dnx.lr.InstanceTraversal
                                           |
                                           +----dnx.lr.TraversalPathTraversal
                                                   |
                                                   +----dnx.lr.InstancePathTraversal

public class InstancePathTraversal
extends TraversalPathTraversal
A traversal which keeps track of the path to the current instance. You can uniquify the current instance while it's being visited.

Variable Index

 o currentFieldInd
 o currentInstance
 o currentNodeInd
 o currentPath
 o debugVisiting
 o instancesAlongPath
 o pathRecording

Constructor Index

 o InstancePathTraversal()
Construct a traversal with a traversal type of GROUP_TRAVERSAL and a context interest of DEFAULT_NODES.
 o InstancePathTraversal(int)
Construct a traversal with the specified traversal type and a geometry interest of DEFAULT_NODES.
 o InstancePathTraversal(int, int)
Construct a traversal with the specified traversal type and geometry interest.

Method Index

 o begin(NodeInstance)
Don't call this yourself.
 o childInstanceMapperCallback(NodeInstance, NodeInstance, int, int, Object)
You should definitely not call this yourself.
 o uniquifyCurrentInstance()

Variables

 o instancesAlongPath
  protected NodeInstanceList instancesAlongPath
 o currentPath
  protected InstancePath currentPath
 o pathRecording
  protected boolean pathRecording
 o currentInstance
  protected NodeInstance currentInstance
 o currentFieldInd
  protected int currentFieldInd
 o currentNodeInd
  protected int currentNodeInd
 o debugVisiting
  public static boolean debugVisiting

Constructors

 o InstancePathTraversal
  public InstancePathTraversal()
Construct a traversal with a traversal type of GROUP_TRAVERSAL and a context interest of DEFAULT_NODES.
 o InstancePathTraversal
  public InstancePathTraversal(int traversalType)
Construct a traversal with the specified traversal type and a geometry interest of DEFAULT_NODES.
 o InstancePathTraversal
  public InstancePathTraversal(int traversalType,
                               int contextInterest)
Construct a traversal with the specified traversal type and geometry interest.

Methods

 o begin
  public void begin(NodeInstance inst)
Don't call this yourself. It's called automatically.
Overrides:
begin in class TraversalPathTraversal
 o uniquifyCurrentInstance
  protected NodeInstance uniquifyCurrentInstance()
 o childInstanceMapperCallback
  public NodeInstance childInstanceMapperCallback(NodeInstance child,
                                                  NodeInstance parent,
                                                  int fieldind,
                                                  int nodeind,
                                                  Object mapData)
You should definitely not call this yourself. Override this if you want to change the way the traversal works.
Overrides:
childInstanceMapperCallback in class TraversalPathTraversal

All Packages  Class Hierarchy  This Package  Previous  Next  Index