com.vividsolutions.jump.workbench.ui.plugin.analysis
Class GeometryPredicate

java.lang.Object
  extended by com.vividsolutions.jump.workbench.ui.plugin.analysis.GeometryPredicate
Direct Known Subclasses:
GeometryPredicate.DisjointPredicate, GeometryPredicate.SimilarPredicate, GeometryPredicate.WithinDistancePredicate

public abstract class GeometryPredicate
extends java.lang.Object

A function object for Geometry functions (which return a Geometry). Provides metadata about the function.

Version:
1.0
Author:
Martin Davis

Nested Class Summary
static class GeometryPredicate.DisjointPredicate
           
static class GeometryPredicate.SimilarPredicate
           
static class GeometryPredicate.WithinDistancePredicate
           
 
Constructor Summary
GeometryPredicate(java.lang.String name)
           
GeometryPredicate(java.lang.String name, int nParams)
           
GeometryPredicate(java.lang.String name, int nArgs, int nParams)
           
GeometryPredicate(java.lang.String name, int nArgs, int nParams, java.lang.String description)
           
 
Method Summary
 int getGeometryArgumentCount()
           
 java.lang.String getName()
           
 int getParameterCount()
           
abstract  boolean isTrue(com.vividsolutions.jts.geom.Geometry geom0, com.vividsolutions.jts.geom.Geometry geom1, double[] param)
           
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

GeometryPredicate

public GeometryPredicate(java.lang.String name,
                         int nParams)

GeometryPredicate

public GeometryPredicate(java.lang.String name)

GeometryPredicate

public GeometryPredicate(java.lang.String name,
                         int nArgs,
                         int nParams)

GeometryPredicate

public GeometryPredicate(java.lang.String name,
                         int nArgs,
                         int nParams,
                         java.lang.String description)
Method Detail

getName

public java.lang.String getName()

getGeometryArgumentCount

public int getGeometryArgumentCount()

getParameterCount

public int getParameterCount()

isTrue

public abstract boolean isTrue(com.vividsolutions.jts.geom.Geometry geom0,
                               com.vividsolutions.jts.geom.Geometry geom1,
                               double[] param)