de.uds.cs.st.dd.ui
Class ConsoleViewer

java.lang.Object
  |
  +--de.uds.cs.st.dd.ui.ConsoleViewer
All Implemented Interfaces:
ISimpleViewer

public class ConsoleViewer
extends Object
implements ISimpleViewer

A very simple console viewer that displays the text of the messages.

Author:
Philipp Bouillon

Constructor Summary
ConsoleViewer()
          Creates a new ConsoleViewer object.
 
Method Summary
 void sendMessage(String message)
          Used to send an arbitrary message.
 void sendTextMessage(String message)
          Convenience method to send a text message.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ConsoleViewer

public ConsoleViewer()
Creates a new ConsoleViewer object.

Method Detail

sendMessage

public void sendMessage(String message)
Description copied from interface: ISimpleViewer
Used to send an arbitrary message. Substrings may be interpreted or left alone.

Specified by:
sendMessage in interface ISimpleViewer
Parameters:
message - the message to be sent. May contain additional information about the message type.

sendTextMessage

public void sendTextMessage(String message)
Description copied from interface: ISimpleViewer
Convenience method to send a text message.

Specified by:
sendTextMessage in interface ISimpleViewer
Parameters:
message - text message to send.