uk.ac.essex.malexa.nlp.dp.GuiTAR
Class Cf

java.lang.Object
  extended byuk.ac.essex.malexa.nlp.dp.GuiTAR.Cf
All Implemented Interfaces:
AnaphoraResolution
Direct Known Subclasses:
NominalGroup

public abstract class Cf
extends Object
implements AnaphoraResolution

A class that encapsulates the general functionality of a forward-looking centre (Cf). This is an abstract class that enables the creation and manipulation of a polymorphic list of Cfs. It implements the interface AnaphoraResolution, hence forces its subclasses to provide an implementation of the method resolveAnaphor().

Version:
1.1
Author:
Mijail A. Kabadjov

Field Summary
private  boolean anaphoric
           
private  Node domNode
           
private  byte type
           
private  Utterance utterance
           
 
Constructor Summary
Cf(Node theNode, Utterance utt, byte theType)
          Constructor.
 
Method Summary
 Cf findCfById(String cfId, DiscourseModel dm)
          Looks for the Cf whose neId of its DOM node is equal to cfId.
 Node getNode()
          Returns the node holding the Cf.
 byte getType()
          Returns the type of the Cf.
 Utterance getUtterance()
          Returns the utterance of the Cf.
 boolean isAnaphoric()
          Checks whether this Cf is anaphoric or not.
 void setAnaphoric(boolean flag)
          Sets the anaphoric attribute of this Cf as given by the parameter flag.
 void setNode(Node theNode)
          Stores the node that holds this Cf.
 void setType(byte theType)
          Stores the identified type this Cf.
 void setUtterance(Utterance utt)
          Stores the pointer to the Utterance that holds this Cf.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface uk.ac.essex.malexa.nlp.dp.GuiTAR.AnaphoraResolution
resolveAnaphor
 

Field Detail

domNode

private Node domNode

utterance

private Utterance utterance

type

private byte type

anaphoric

private boolean anaphoric
Constructor Detail

Cf

public Cf(Node theNode,
          Utterance utt,
          byte theType)
Constructor. Sets the DOM node that holds the Cf, the pointer to the Utterance of the Cf and the identified type of the Cf (see NominalGroup for types of NPs).

Parameters:
theNode - The node that holds the Cf
Method Detail

getType

public byte getType()
Returns the type of the Cf.

Returns:
byte the type of the Cf

getNode

public Node getNode()
Returns the node holding the Cf.

Returns:
Node the node holding the Cf

getUtterance

public Utterance getUtterance()
Returns the utterance of the Cf.

Returns:
Utterance The utterance of this Cf

isAnaphoric

public boolean isAnaphoric()
Checks whether this Cf is anaphoric or not.

Returns:
boolean true if this Cf is anaphoric, false otherwise

findCfById

public Cf findCfById(String cfId,
                     DiscourseModel dm)
Looks for the Cf whose neId of its DOM node is equal to cfId.

Parameters:
cfId - The cfId of the Cf to be searched for
dm - The Dicourse Model to be searched
Returns:
Cf The Cf whose neId of its DOM node is equal to cfId

setNode

public void setNode(Node theNode)
Stores the node that holds this Cf.

Parameters:
theNode - the node that holds this Cf

setUtterance

public void setUtterance(Utterance utt)
Stores the pointer to the Utterance that holds this Cf.

Parameters:
utt - The Utterance

setType

public void setType(byte theType)
Stores the identified type this Cf.

Parameters:
theType - The identified type this Cf

setAnaphoric

public void setAnaphoric(boolean flag)
Sets the anaphoric attribute of this Cf as given by the parameter flag.

Parameters:
flag - The parameter that sets this Cf as anaphoric or not (true/false)