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

java.lang.Object
  extended byuk.ac.essex.malexa.nlp.dp.GuiTAR.Segment
      extended byuk.ac.essex.malexa.nlp.dp.GuiTAR.Utterance
All Implemented Interfaces:
DiscourseSegmentation

public class Utterance
extends Segment

A class that encapsulates the general functionality of an Utterance. Eventually this class might have additional functionality, but for the moment it acts as a Segment, the main difference being that its children are Cfs not Utterances nor Segments.

Version:
1.1
Author:
Mijail A. Kabadjov

Field Summary
 
Fields inherited from class uk.ac.essex.malexa.nlp.dp.GuiTAR.Segment
children
 
Constructor Summary
Utterance(Node node, Segment seg)
          Initialises the instance variables.
 
Method Summary
 void addChild(Cf child)
          Adds a new Cf to this utterance.
 void addChild(Segment child)
          Overrides method in class Segment to enforce that an utterance cannot contain other utterances nor segments.
 
Methods inherited from class uk.ac.essex.malexa.nlp.dp.GuiTAR.Segment
getChildren, getNextSibling, getNode, getParent, getPrevSibling, getRelationWithParent, setNextSibling, setPreviousSibling
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Utterance

public Utterance(Node node,
                 Segment seg)
Initialises the instance variables.

Parameters:
node - The DOM node of this utterance
seg - The segment to which this utterance belongs
Method Detail

addChild

public void addChild(Cf child)
Adds a new Cf to this utterance.

Parameters:
child - The Cf to be added

addChild

public void addChild(Segment child)
Overrides method in class Segment to enforce that an utterance cannot contain other utterances nor segments.

Specified by:
addChild in interface DiscourseSegmentation
Overrides:
addChild in class Segment
Parameters:
child - The child (Utterance/Segment) to be added