com.soundhelix.remotecontrol
Class AbstractTextRemoteControl

java.lang.Object
  extended by com.soundhelix.remotecontrol.AbstractTextRemoteControl
All Implemented Interfaces:
RemoteControl, TextRemoteControl, Runnable
Direct Known Subclasses:
ConsoleRemoteControl, SwingRemoteControl

public abstract class AbstractTextRemoteControl
extends Object
implements TextRemoteControl

Implements an abstract simple text-based remote control.

Author:
Thomas Schuerger (thomas@schuerger.com)

Constructor Summary
AbstractTextRemoteControl()
           
 
Method Summary
 SongContext getSongContext()
          Gets the song context to be remote-controlled.
 void run()
          Implements the main functionality of the remote control.
 void setSongContext(SongContext songContext)
          Sets the song context to be remote-controlled.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface com.soundhelix.remotecontrol.TextRemoteControl
readLine, writeLine
 

Constructor Detail

AbstractTextRemoteControl

public AbstractTextRemoteControl()
Method Detail

run

public void run()
Implements the main functionality of the remote control.

Specified by:
run in interface Runnable

getSongContext

public SongContext getSongContext()
Description copied from interface: RemoteControl
Gets the song context to be remote-controlled.

Specified by:
getSongContext in interface RemoteControl
Returns:
the song context

setSongContext

public void setSongContext(SongContext songContext)
Description copied from interface: RemoteControl
Sets the song context to be remote-controlled.

Specified by:
setSongContext in interface RemoteControl
Parameters:
songContext - the song context