jts
Class RCC9Matrix

java.lang.Object
  extended by jts.RCC9Matrix

public class RCC9Matrix
extends java.lang.Object

Class for determining the RCC9 relation between two objects.


Field Summary
private  boolean equivalent
          specifies if the objects are equivalent
private  IntersectionMatrix matrix
          the Egenhofer9IM matrix
 
Constructor Summary
RCC9Matrix(Geometry g1, Geometry g2)
          Constructs an RCC9 matrix without the equivalence property.
RCC9Matrix(Geometry g1, Geometry g2, double precision)
          Constructs an RCC9 matrix.
 
Method Summary
 boolean DC()
          Returns true if the objects are disjoint.
 boolean EC()
          Returns true if the objects are externally connected.
 boolean EQ()
          Returns true if the objects are equal.
 boolean equivalent()
          Returns true if the objects are equivalent.
 java.lang.String getRCC5Relation()
          Getsh the RCC5 relation between the objects.
 java.lang.String getRCC8Relation()
          Getsh the RCC8 relation between the objects.
 java.lang.String getRelation()
          Getsh the RCC9 relation between the objects.
 boolean NTPP()
          Returns true if the first object contains the second object and the object are not tangentialy connected.
 boolean NTPPi()
          Returns true if the second object contains the first object and the object are not tangentialy connected.
 boolean PO()
          Returns true if the objects are partially overlapping.
private  boolean tangentialyConnected()
          Returns true if the objects are tangentialy connected.
 boolean TPP()
          Returns true if the first object contains the second object and the object are tangentialy connected.
 boolean TPPi()
          Returns true if the second object contains the first object and the object are tangentialy connected.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

matrix

private IntersectionMatrix matrix
the Egenhofer9IM matrix


equivalent

private boolean equivalent
specifies if the objects are equivalent

Constructor Detail

RCC9Matrix

public RCC9Matrix(Geometry g1,
                  Geometry g2)
Constructs an RCC9 matrix without the equivalence property.

Parameters:
g1 - - the first geometry
g2 - - the second geometry

RCC9Matrix

public RCC9Matrix(Geometry g1,
                  Geometry g2,
                  double precision)
Constructs an RCC9 matrix.

Parameters:
g1 - - the first geometry
g2 - - the second geometry
precision - - the precision used for determining equivalence
Method Detail

tangentialyConnected

private boolean tangentialyConnected()
Returns true if the objects are tangentialy connected.


equivalent

public boolean equivalent()
Returns true if the objects are equivalent.


DC

public boolean DC()
Returns true if the objects are disjoint.


EC

public boolean EC()
Returns true if the objects are externally connected.


PO

public boolean PO()
Returns true if the objects are partially overlapping.


EQ

public boolean EQ()
Returns true if the objects are equal.


TPP

public boolean TPP()
Returns true if the first object contains the second object and the object are tangentialy connected.


TPPi

public boolean TPPi()
Returns true if the second object contains the first object and the object are tangentialy connected.


NTPP

public boolean NTPP()
Returns true if the first object contains the second object and the object are not tangentialy connected.


NTPPi

public boolean NTPPi()
Returns true if the second object contains the first object and the object are not tangentialy connected.


getRelation

public java.lang.String getRelation()
Getsh the RCC9 relation between the objects.


getRCC8Relation

public java.lang.String getRCC8Relation()
Getsh the RCC8 relation between the objects.


getRCC5Relation

public java.lang.String getRCC5Relation()
Getsh the RCC5 relation between the objects.