opennlp.grok.unify
Class GFeatVar
java.lang.Object
|
+--opennlp.grok.unify.GFeatVar
- All Implemented Interfaces:
- opennlp.common.unify.Indexed, opennlp.common.unify.Mutable, opennlp.common.unify.Unifiable, opennlp.common.unify.Variable
- public class GFeatVar
- extends java.lang.Object
- implements opennlp.common.unify.Variable, opennlp.common.unify.Indexed, opennlp.common.unify.Mutable
A class for variables which can stand for any feature.
- Version:
- $Revision: 1.4 $, $Date: 2003/02/11 12:28:26 $
- Author:
- Jason Baldridge
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)
|
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.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 |
_name
protected final java.lang.String _name
_index
protected int _index
_hashCode
protected int _hashCode
GFeatVar
public GFeatVar()
GFeatVar
public GFeatVar(java.lang.String name)
GFeatVar
protected GFeatVar(java.lang.String name,
int index)
name
public java.lang.String name()
- Specified by:
name
in interface opennlp.common.unify.Variable
copy
public java.lang.Object copy()
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
toString
public java.lang.String toString()
- Overrides:
toString
in class java.lang.Object
Copyright © 2003 Jason Baldridge and Gann Bierner. All Rights Reserved.