ro.mosc.reco.glyphdesciption
Class IntersectionRelationResolver

java.lang.Object
  extended by ro.mosc.reco.glyphdesciption.IntersectionRelationResolver
All Implemented Interfaces:
RelationResolver

public class IntersectionRelationResolver
extends java.lang.Object
implements RelationResolver

Class determinating Intersection (of two lines) characteristic predicate


Field Summary
private  java.awt.Rectangle glyphContainerRectangle
           
 
Constructor Summary
IntersectionRelationResolver(java.awt.Rectangle glyphContainerRectangle)
           
 
Method Summary
 double getRelationValue(java.lang.Object[] elements)
          Computes characteristic predicate values for a certain relation an for given elements.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

glyphContainerRectangle

private java.awt.Rectangle glyphContainerRectangle
Constructor Detail

IntersectionRelationResolver

public IntersectionRelationResolver(java.awt.Rectangle glyphContainerRectangle)
Method Detail

getRelationValue

public double getRelationValue(java.lang.Object[] elements)
Description copied from interface: RelationResolver
Computes characteristic predicate values for a certain relation an for given elements.

Specified by:
getRelationValue in interface RelationResolver
Parameters:
elements - elements in relation
Returns:
a value betwen 0 and 1