org.jactr.tools.analysis.production.relationships
Class DefaultRelationship

java.lang.Object
  extended by org.jactr.tools.analysis.production.relationships.DefaultRelationship
All Implemented Interfaces:
IRelationship

public class DefaultRelationship
extends java.lang.Object
implements IRelationship


Constructor Summary
DefaultRelationship(org.antlr.runtime.tree.CommonTree head, org.antlr.runtime.tree.CommonTree tail)
           
 
Method Summary
 org.antlr.runtime.tree.CommonTree getHeadProduction()
          the base production the IRelationship.getTailProduction() is compared to
 double getScore()
           
 double getScore(java.lang.String bufferName)
           
 org.antlr.runtime.tree.CommonTree getTailProduction()
          the production that is being compared to IRelationship.getHeadProduction()
 void setAmbiguousRelationships(java.lang.String bufferName, java.util.Collection<IPair> pairs)
           
 void setNegativeRelationships(java.lang.String bufferName, java.util.Collection<IPair> pairs)
           
 void setPositiveRelationships(java.lang.String bufferName, java.util.Collection<IPair> pairs)
           
 void setScore(java.lang.String bufferName, double score)
           
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DefaultRelationship

public DefaultRelationship(org.antlr.runtime.tree.CommonTree head,
                           org.antlr.runtime.tree.CommonTree tail)
Method Detail

getHeadProduction

public org.antlr.runtime.tree.CommonTree getHeadProduction()
Description copied from interface: IRelationship
the base production the IRelationship.getTailProduction() is compared to

Specified by:
getHeadProduction in interface IRelationship
Returns:

getTailProduction

public org.antlr.runtime.tree.CommonTree getTailProduction()
Description copied from interface: IRelationship
the production that is being compared to IRelationship.getHeadProduction()

Specified by:
getTailProduction in interface IRelationship
Returns:

getScore

public double getScore()
Specified by:
getScore in interface IRelationship

getScore

public double getScore(java.lang.String bufferName)
Specified by:
getScore in interface IRelationship

setScore

public void setScore(java.lang.String bufferName,
                     double score)

setPositiveRelationships

public void setPositiveRelationships(java.lang.String bufferName,
                                     java.util.Collection<IPair> pairs)

setNegativeRelationships

public void setNegativeRelationships(java.lang.String bufferName,
                                     java.util.Collection<IPair> pairs)

setAmbiguousRelationships

public void setAmbiguousRelationships(java.lang.String bufferName,
                                      java.util.Collection<IPair> pairs)