public class IncidentCondition extends Object implements HGQueryCondition, HGAtomPredicate
The IncidentCondition
specifies that a search result atom
should be a member of the incidence set of a given atom. By itself the
condition would yield a query that enumerates all links pointing to
the specified atom.
Constructor and Description |
---|
IncidentCondition() |
IncidentCondition(HGHandle target) |
IncidentCondition(Ref<HGHandle> target) |
Modifier and Type | Method and Description |
---|---|
boolean |
equals(Object x) |
HGHandle |
getTarget() |
Ref<HGHandle> |
getTargetRef() |
int |
hashCode() |
boolean |
satisfies(HyperGraph hg,
HGHandle handle)
Check whether a given
Object satisfies this
query condition. |
void |
setTarget(HGHandle target) |
String |
toString() |
public IncidentCondition()
public IncidentCondition(HGHandle target)
public HGHandle getTarget()
public void setTarget(HGHandle target)
public boolean satisfies(HyperGraph hg, HGHandle handle)
HGAtomPredicate
Check whether a given Object
satisfies this
query condition.
satisfies
in interface HGAtomPredicate
hg
- The HyperGraph
instance.handle
- The atom on which to test the query condition.true
if the passed in parameter satisfies
the condition and false
otherwise.Copyright © 2015. All rights reserved.