Class com.phrasys.events.ParagraphEvent

java.lang.Object
    |
    +----java.util.EventObject
            |
            +----com.phrasys.events.ParagraphEvent

public class ParagraphEvent
extends java.util.EventObject
This class is used as a wrapper for paragraphs as read by the Sentencer component.

Version:
1.0 (17/02/99)
Author:
Oliver Mason

Constructor Index

 o ParagraphEvent(Object, String, int)
Constructor.

Method Index

 o getID()
Retrieve the paragraph ID.
 o getParagraph()
Retrieve the paragraph.

Constructor Detail

 o ParagraphEvent
public ParagraphEvent(java.lang.Object source,
                      java.lang.String para,
                      int id)
          Constructor.
Parameters:
source - the originating source (ie the Sentencer).
para - the paragraph that has been read or null as EOF marker.
id - the paragraph ID.

Method Detail

 o getParagraph
public java.lang.String getParagraph()
          Retrieve the paragraph. The paragraph that is transmitted using this event can be retrieved.
Returns:
the paragraph or null if the EOF has been reached.
 o getID
public int getID()
          Retrieve the paragraph ID.
Returns:
the paragraph ID.