org.robokind.impl.speech
Class PortableSpeechEvent
java.lang.Object
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
Constructor Summary |
PortableSpeechEvent(org.robokind.avrogen.speech.SpeechEventRecord event)
Creates a new SpeechEvent from the given SpeechEventRecord. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
PortableSpeechEvent
public PortableSpeechEvent(org.robokind.avrogen.speech.SpeechEventRecord event)
- Creates a new SpeechEvent from the given SpeechEventRecord.
- Parameters:
event
- SpeechEventRecord to wrap
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.