Class SpatialPredicate

  • All Implemented Interfaces:
    ProjectionPredicate
    Direct Known Subclasses:
    Linked, LinkedFrom, LinkedTo, Within, WithinMoore, WithinVN

    public abstract class SpatialPredicate
    extends Object
    implements ProjectionPredicate
    Abstract implementation of Predicate interface. All the implemented methods return false. Particular predicate implementations can override one or more of these methods as appropriate. For example, "within" only applies to networks, so the Within predicate would override evaluate(Network).
    Version:
    $Revision$ $Date$
    Author:
    Nick Collier
    • Constructor Detail

      • SpatialPredicate

        public SpatialPredicate()
    • Method Detail

      • evaluate

        public boolean evaluate​(Projection projection)
        Evaluates the projection against this predicate. This is the default for any Projections not specifically named below.
        Specified by:
        evaluate in interface ProjectionPredicate
        Parameters:
        projection - the projection to evaluate against.
        Returns:
        false
      • evaluate

        public boolean evaluate​(Network network)
        Evaluates the Network against this predicate.
        Specified by:
        evaluate in interface ProjectionPredicate
        Parameters:
        network - the projection to evaluate against.
        Returns:
        false
      • evaluate

        public boolean evaluate​(Grid grid)
        Evaluates the Grid against this predicate.
        Specified by:
        evaluate in interface ProjectionPredicate
        Parameters:
        grid - the Grid to evaluate against.
        Returns:
        false
      • evaluate

        public boolean evaluate​(ContinuousSpace space)
        Evaluates the ContinuousSpace against this predicate.
        Specified by:
        evaluate in interface ProjectionPredicate
        Parameters:
        space - the continuous space to evaluate against.
        Returns:
        false