|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectorg.jcae.mesh.oemm.TraversalProcedure
public abstract class TraversalProcedure
Abstract class to implement OEMM traversal. Derived classes must define the
action(org.jcae.mesh.oemm.OEMM, org.jcae.mesh.oemm.OEMM.Node, int, int) method.
OEMM.walk(org.jcae.mesh.oemm.TraversalProcedure)| Field Summary | |
|---|---|
static int |
ABORT
Abort tree traversal immediately. |
protected static int |
LEAF
Current node is a leaf |
static int |
OK
Continue tree traversal. |
protected static int |
POSTORDER
Current node is not a leaf and its children have already been processed. |
protected static int |
PREORDER
Current node is not a leaf and its children have not been processed yet. |
static int |
SKIPCHILD
Do not process children. |
| Constructor Summary | |
|---|---|
TraversalProcedure()
|
|
| Method Summary | |
|---|---|
abstract int |
action(OEMM o,
OEMM.Node c,
int octant,
int visit)
Abstract class which has to be overridden by subclasses. |
void |
finish(OEMM oemm)
Method called after traversing the OEMM. |
void |
init(OEMM oemm)
Method called before traversing the OEMM. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
protected static final int PREORDER
protected static final int POSTORDER
protected static final int LEAF
public static final int OK
public static final int ABORT
public static final int SKIPCHILD
| Constructor Detail |
|---|
public TraversalProcedure()
| Method Detail |
|---|
public void init(OEMM oemm)
public void finish(OEMM oemm)
public abstract int action(OEMM o,
OEMM.Node c,
int octant,
int visit)
o - OEMM structurec - the current node of the OEMM structureoctant - the octant number in parent nodevisit - this parameter is set to LEAF if the current
node is a leaf, PREORDER if children have not
yet been traversed, and POSTOREDER otherwise.
OEMM.walk(org.jcae.mesh.oemm.TraversalProcedure) immediately
SKIPCHILD skip current cell (ie do not process its children)
OK process normallyOEMM.walk(org.jcae.mesh.oemm.TraversalProcedure)
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||