opennlp.grok.expression
Class AtomCat

java.lang.Object
  |
  +--opennlp.grok.expression.AbstractCat
        |
        +--opennlp.grok.expression.AtomCat
All Implemented Interfaces:
opennlp.common.synsem.Category, opennlp.common.unify.Mutable, java.io.Serializable, TargetCat, gnu.trove.TLinkable, opennlp.common.unify.Unifiable

public final class AtomCat
extends AbstractCat
implements TargetCat

The most basic CG category.

Version:
$Revision: 1.40 $, $Date: 2003/02/20 12:07:50 $
Author:
Gann Bierner, Jason Baldridge, Michael White
See Also:
Serialized Form

Field Summary
 
Fields inherited from class opennlp.grok.expression.AbstractCat
_featStruc, _lf, _next, _previous, SHOW_SEMANTICS
 
Constructor Summary
AtomCat(org.jdom.Element acel)
          Constructor which retrieves the atomic category from the XML element.
AtomCat(java.lang.String t)
          Constructor which creates an atomic category with the given type.
AtomCat(java.lang.String t, opennlp.common.unify.FeatureStructure fs)
          Constructor which creates an atomic category with the given type and feature structure.
AtomCat(java.lang.String t, opennlp.common.unify.FeatureStructure fs, opennlp.common.synsem.LF lf)
          Constructor which creates an atomic category with the given type, feature structure and LF.
 
Method Summary
 opennlp.common.synsem.Category copy()
           
 void deepMap(opennlp.common.unify.ModFcn mf)
           
 boolean equals(java.lang.Object c)
           
 java.lang.Object fill(opennlp.common.unify.Substitution s)
           
 java.lang.String getType()
           
 java.lang.String hashString(java.util.Map varMap)
          Returns a hash string using the given map from vars to int strings.
 boolean shallowEquals(java.lang.Object c)
           
 java.lang.String toString()
           
 java.lang.Object unify(java.lang.Object u, opennlp.common.unify.Substitution sub)
          NB: The LF does not participate in unification.
 void unifyCheck(java.lang.Object u)
           
 
Methods inherited from class opennlp.grok.expression.AbstractCat
forall, getFeatureStructure, getLF, getNext, getPrevious, hashString, occurs, prettyLength, prettyPrint, prettyPrint, setFeatureStructure, setLF, setNext, setPrevious, showFeature, tooLong
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 
Methods inherited from interface opennlp.common.synsem.Category
forall, getFeatureStructure, getLF, hashString, setFeatureStructure, setLF
 
Methods inherited from interface opennlp.common.unify.Unifiable
occurs
 

Constructor Detail

AtomCat

public AtomCat(java.lang.String t)
Constructor which creates an atomic category with the given type.


AtomCat

public AtomCat(java.lang.String t,
               opennlp.common.unify.FeatureStructure fs)
Constructor which creates an atomic category with the given type and feature structure.


AtomCat

public AtomCat(java.lang.String t,
               opennlp.common.unify.FeatureStructure fs,
               opennlp.common.synsem.LF lf)
Constructor which creates an atomic category with the given type, feature structure and LF.


AtomCat

public AtomCat(org.jdom.Element acel)
Constructor which retrieves the atomic category from the XML element.

Method Detail

getType

public java.lang.String getType()

copy

public opennlp.common.synsem.Category copy()
Specified by:
copy in interface opennlp.common.synsem.Category
Specified by:
copy in class AbstractCat

deepMap

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

unifyCheck

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

unify

public java.lang.Object unify(java.lang.Object u,
                              opennlp.common.unify.Substitution sub)
                       throws opennlp.common.unify.UnifyFailure
NB: The LF does not participate in unification.

Specified by:
unify in interface opennlp.common.unify.Unifiable
Specified by:
unify in class AbstractCat
opennlp.common.unify.UnifyFailure

fill

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

shallowEquals

public boolean shallowEquals(java.lang.Object c)
Specified by:
shallowEquals in interface opennlp.common.synsem.Category
Overrides:
shallowEquals in class AbstractCat

equals

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

toString

public java.lang.String toString()
Specified by:
toString in class AbstractCat

hashString

public java.lang.String hashString(java.util.Map varMap)
Returns a hash string using the given map from vars to int strings.

Specified by:
hashString in interface opennlp.common.synsem.Category
Specified by:
hashString in class AbstractCat


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