org.hypergraphdb.query
Interface HGAtomPredicate

All Known Implementing Classes:
And, AnyAtomCondition, ArityCondition, AtomPartCondition, AtomProjectionCondition, AtomTypeCondition, AtomValueCondition, DelayedSetLoadPredicate, IncidentCondition, LinkCondition, Not, Or, OrderedLinkCondition, RABasedPredicate, SimpleValueCondition, SubsumedCondition, SubsumesCondition, TargetCondition, TypedValueCondition, TypePlusCondition

public interface HGAtomPredicate

This interface defines a predicate of a single atom. There is no guarantee as to the running time of a predicate, but in general implementation should strive not to do explicit reads from the data store whenever possible.

Author:
Borislav Iordanov

Method Summary
 boolean satisfies(HyperGraph graph, HGHandle handle)
          Check whether a given Object satisfies this query condition.
 

Method Detail

satisfies

boolean satisfies(HyperGraph graph,
                  HGHandle handle)

Check whether a given Object satisfies this query condition.

Parameters:
graph - The HyperGraph instance.
handle - The atom on which to test the query condition.
Returns:
true if the passed in parameter satisfies the condition and false otherwise.