org.robokind.impl.speech
Class PortableSpeechEvent

java.lang.Object
  extended by org.robokind.impl.speech.PortableSpeechEvent
All Implemented Interfaces:
org.robokind.api.speech.SpeechEvent

public class PortableSpeechEvent
extends Object
implements org.robokind.api.speech.SpeechEvent

SpeechEvent implementation wrapping a SpeechEventRecord.

Author:
Matthew Stevenson

Nested Class Summary
static class PortableSpeechEvent.RemoteSpeechEventAdapter
          Converts a SpeechEventRecord to a PortableSpeechEvent.
 
Constructor Summary
PortableSpeechEvent(org.robokind.avrogen.speech.SpeechEventRecord event)
          Creates a new SpeechEvent from the given SpeechEventRecord.
 
Method Summary
 Integer getCurrentData()
           
 Integer getDuration()
           
 Integer getNextData()
           
 String getSpeechEventType()
           
 Long getStreamNumber()
           
 String getStringData()
           
 Integer getTextLength()
           
 Integer getTextPosition()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

PortableSpeechEvent

public PortableSpeechEvent(org.robokind.avrogen.speech.SpeechEventRecord event)
Creates a new SpeechEvent from the given SpeechEventRecord.

Parameters:
event - SpeechEventRecord to wrap
Method Detail

getSpeechEventType

public String getSpeechEventType()
Specified by:
getSpeechEventType in interface org.robokind.api.speech.SpeechEvent

getStreamNumber

public Long getStreamNumber()
Specified by:
getStreamNumber in interface org.robokind.api.speech.SpeechEvent

getTextPosition

public Integer getTextPosition()
Specified by:
getTextPosition in interface org.robokind.api.speech.SpeechEvent

getTextLength

public Integer getTextLength()
Specified by:
getTextLength in interface org.robokind.api.speech.SpeechEvent

getCurrentData

public Integer getCurrentData()
Specified by:
getCurrentData in interface org.robokind.api.speech.SpeechEvent

getNextData

public Integer getNextData()
Specified by:
getNextData in interface org.robokind.api.speech.SpeechEvent

getStringData

public String getStringData()
Specified by:
getStringData in interface org.robokind.api.speech.SpeechEvent

getDuration

public Integer getDuration()
Specified by:
getDuration in interface org.robokind.api.speech.SpeechEvent


Copyright © 2011. All Rights Reserved.