public abstract class TraversalCondition extends Object implements HGQueryCondition
A condition that gets translated into a graph traversal. This is base class for
the two variants of traversal (breadth-first and depth-first). A traversal condition
will generally be configured with more than just the starting atom. It will use
a DefaultALGenerator
for the traversal. So for the meaning of parameters
such as linkPredicate
, returnPreceeding
etc., see
DefaultALGenerator
.
Constructor and Description |
---|
TraversalCondition() |
TraversalCondition(HGHandle startAtom) |
TraversalCondition(Ref<HGHandle> startAtom) |
Modifier and Type | Method and Description |
---|---|
boolean |
equals(Object x) |
HGAtomPredicate |
getLinkPredicate() |
HGAtomPredicate |
getSiblingPredicate() |
HGHandle |
getStartAtom() |
Ref<HGHandle> |
getStartAtomReference() |
abstract HGTraversal |
getTraversal(HyperGraph graph) |
int |
hashCode() |
boolean |
isReturnPreceeding() |
boolean |
isReturnSource() |
boolean |
isReturnSucceeding() |
boolean |
isReverseOrder() |
HGALGenerator |
makeGenerator(HyperGraph graph) |
void |
setLinkPredicate(HGAtomPredicate linkPredicate) |
void |
setReturnPreceeding(boolean returnPreceeding) |
void |
setReturnSource(boolean returnSource) |
void |
setReturnSucceeding(boolean returnSucceeding) |
void |
setReverseOrder(boolean reverseOrder) |
void |
setSiblingPredicate(HGAtomPredicate siblingPredicate) |
void |
setStartAtom(HGHandle startAtom) |
void |
setStartAtomReference(Ref<HGHandle> startAtom) |
public TraversalCondition()
public TraversalCondition(HGHandle startAtom)
public HGALGenerator makeGenerator(HyperGraph graph)
public abstract HGTraversal getTraversal(HyperGraph graph)
public HGHandle getStartAtom()
public void setStartAtom(HGHandle startAtom)
public HGAtomPredicate getLinkPredicate()
public void setLinkPredicate(HGAtomPredicate linkPredicate)
public HGAtomPredicate getSiblingPredicate()
public void setSiblingPredicate(HGAtomPredicate siblingPredicate)
public boolean isReturnPreceeding()
public void setReturnPreceeding(boolean returnPreceeding)
public boolean isReturnSucceeding()
public void setReturnSucceeding(boolean returnSucceeding)
public boolean isReverseOrder()
public void setReverseOrder(boolean reverseOrder)
public boolean isReturnSource()
public void setReturnSource(boolean returnSource)
Copyright © 2015. All rights reserved.