org.jactr.tools.analysis.production.relationships
Class DefaultRelationship
java.lang.Object
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)
|
| Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
DefaultRelationship
public DefaultRelationship(org.antlr.runtime.tree.CommonTree head,
org.antlr.runtime.tree.CommonTree tail)
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)