uk.ac.essex.malexa.nlp.dp.GuiTAR
Interface DiscourseSegmentation

All Known Implementing Classes:
Segment

public interface DiscourseSegmentation

A class that encapsulates the general functionality of a Segment and provides implementation to the methods defined by the interface DiscourseSegmentation.

Version:
1.1
Author:
Mijail A. Kabadjov

Method Summary
 void addChild(Segment child)
          Adds a new child to the segment and updates children pointers to prev-/nextSibling.
 Vector getChildren()
          Retrieves the list of children of this segment.
 Segment getNextSibling()
          Retrieves the next sibling of this segment, which could be another Segment or an Utterance.
 Node getNode()
          Retrieves the DOM node of this segment.
 Segment getParent()
          Retrieves the parent segment of this segment.
 Segment getPrevSibling()
          Retrieves the previous sibling of this segment, which could be another Segment or an Utterance.
 Object getRelationWithParent()
          Retrieves the relationship holding between this segment and its parent.
 void setNextSibling(Segment sibling)
          Sets the next sibling of this segment.
 void setPreviousSibling(Segment sibling)
          Sets the previous sibling of this segment.
 

Method Detail

getNode

public Node getNode()
Retrieves the DOM node of this segment.

Returns:
Node The node

getRelationWithParent

public Object getRelationWithParent()
Retrieves the relationship holding between this segment and its parent.

Returns:
Object The relation with parent segment

getParent

public Segment getParent()
Retrieves the parent segment of this segment.

Returns:
Segment The parent segment

getPrevSibling

public Segment getPrevSibling()
Retrieves the previous sibling of this segment, which could be another Segment or an Utterance.

Returns:
Segment The left sibling

getNextSibling

public Segment getNextSibling()
Retrieves the next sibling of this segment, which could be another Segment or an Utterance.

Returns:
Segment The right sibling

getChildren

public Vector getChildren()
Retrieves the list of children of this segment. Returns a polimoriphic Vector containing objects of class Segment or Utterance.

Returns:
Vector The list of Segments and/or Utterances

addChild

public void addChild(Segment child)
Adds a new child to the segment and updates children pointers to prev-/nextSibling.

Parameters:
child - The child (Utterance/Segment) to be added

setPreviousSibling

public void setPreviousSibling(Segment sibling)
Sets the previous sibling of this segment.

Parameters:
sibling - The sibling

setNextSibling

public void setNextSibling(Segment sibling)
Sets the next sibling of this segment.

Parameters:
sibling - The sibling