public class IncidentCondition extends java.lang.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(java.lang.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) |
java.lang.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.public int hashCode()
hashCode
in class java.lang.Object
public boolean equals(java.lang.Object x)
equals
in class java.lang.Object
public java.lang.String toString()
toString
in class java.lang.Object