kaos.vlik
Class SexpTranslator

java.lang.Object
  extended by kaos.vlik.SexpTranslator
All Implemented Interfaces:
ObservationTranslator, Translator

public class SexpTranslator
extends java.lang.Object
implements ObservationTranslator

A translator for writing observations to a PrintStream in a simple s-expression format.


Nested Class Summary
 class SexpTranslator.MovementEntry
           
 
Constructor Summary
SexpTranslator(java.io.PrintWriter out)
           
 
Method Summary
 java.util.List getUpdateTypes()
           
 void update(java.lang.String observableID, java.lang.String updateType, java.lang.Object update)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

SexpTranslator

public SexpTranslator(java.io.PrintWriter out)
Parameters:
out - The stream this translator sends its output on.
Method Detail

getUpdateTypes

public java.util.List getUpdateTypes()
Specified by:
getUpdateTypes in interface ObservationTranslator
Returns:
A list of strings, the update types which this Translator is able to handle.

update

public void update(java.lang.String observableID,
                   java.lang.String updateType,
                   java.lang.Object update)
Specified by:
update in interface ObservationTranslator
See Also:
KAoSObserver.update(java.lang.String, java.lang.String, java.lang.Object, java.lang.Object)