opennlp.grok.expression
Class VarModality

java.lang.Object
  |
  +--opennlp.grok.expression.VarModality
All Implemented Interfaces:
opennlp.common.unify.Indexed, Modality, opennlp.common.unify.Mutable, opennlp.common.unify.Unifiable, opennlp.common.unify.Variable

public class VarModality
extends java.lang.Object
implements opennlp.common.unify.Variable, opennlp.common.unify.Indexed, opennlp.common.unify.Mutable, Modality

A class for variables which can stand for slash modalities.

Version:
$Revision: 1.2 $, $Date: 2002/09/13 17:20:21 $
Author:
Jason Baldridge

Field Summary
protected  int _hashCode
           
protected  int _index
           
protected  java.lang.String _name
           
 
Constructor Summary
  VarModality()
           
  VarModality(java.lang.String name)
           
protected VarModality(java.lang.String name, int index)
           
 
Method Summary
 java.lang.Object copy()
           
 void deepMap(opennlp.common.unify.ModFcn mf)
           
 boolean equals(java.lang.Object o)
           
 java.lang.Object fill(opennlp.common.unify.Substitution sub)
           
 byte getDirection()
           
 int getIndex()
           
 int hashCode()
           
 java.lang.String name()
           
 boolean occurs(opennlp.common.unify.Variable var)
           
 void setIndex(int index)
           
 java.lang.String toString()
           
 java.lang.String toString(byte dir)
           
 java.lang.Object unify(java.lang.Object u, opennlp.common.unify.Substitution sub)
           
 void unifyCheck(java.lang.Object o)
           
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Field Detail

_name

protected final java.lang.String _name

_index

protected int _index

_hashCode

protected int _hashCode
Constructor Detail

VarModality

public VarModality()

VarModality

public VarModality(java.lang.String name)

VarModality

protected VarModality(java.lang.String name,
                      int index)
Method Detail

name

public java.lang.String name()
Specified by:
name in interface opennlp.common.unify.Variable

copy

public java.lang.Object copy()
Specified by:
copy in interface Modality

deepMap

public void deepMap(opennlp.common.unify.ModFcn mf)
Specified by:
deepMap in interface opennlp.common.unify.Mutable

getIndex

public int getIndex()
Specified by:
getIndex in interface opennlp.common.unify.Indexed

setIndex

public void setIndex(int index)
Specified by:
setIndex in interface opennlp.common.unify.Indexed

occurs

public boolean occurs(opennlp.common.unify.Variable var)
Specified by:
occurs in interface opennlp.common.unify.Unifiable

hashCode

public int hashCode()
Overrides:
hashCode in class java.lang.Object

equals

public boolean equals(java.lang.Object o)
Specified by:
equals in interface opennlp.common.unify.Unifiable
Overrides:
equals in class java.lang.Object

unifyCheck

public void unifyCheck(java.lang.Object o)
                throws opennlp.common.unify.UnifyFailure
Specified by:
unifyCheck in interface opennlp.common.unify.Unifiable
opennlp.common.unify.UnifyFailure

unify

public java.lang.Object unify(java.lang.Object u,
                              opennlp.common.unify.Substitution sub)
                       throws opennlp.common.unify.UnifyFailure
Specified by:
unify in interface opennlp.common.unify.Unifiable
opennlp.common.unify.UnifyFailure

fill

public java.lang.Object fill(opennlp.common.unify.Substitution sub)
                      throws opennlp.common.unify.UnifyFailure
Specified by:
fill in interface opennlp.common.unify.Unifiable
opennlp.common.unify.UnifyFailure

getDirection

public byte getDirection()
Specified by:
getDirection in interface Modality

toString

public java.lang.String toString(byte dir)
Specified by:
toString in interface Modality

toString

public java.lang.String toString()
Overrides:
toString in class java.lang.Object


Copyright © 2003 Jason Baldridge and Gann Bierner. All Rights Reserved.