de.cau.cs.kieler.sim.kiem
Interface IJSONStringDataComponent

All Known Implementing Classes:
DataObserver, DataProducer, JSONStringDataComponent

public interface IJSONStringDataComponent

The Interface IJSONObjectDataComponent. If the DataComponent extends this extension point it can handle JSON objects in String notation. A JSON implementation for Java that can be found on "www.json.org/java".

Rating yellow
(2009-01-15)

Method Summary
 String step(String jSONString)
          Step method for a DataObserver and a DataProducer.
 

Method Detail

step

String step(String jSONString)
            throws KiemExecutionException
Step method for a DataObserver and a DataProducer.

For a producer only the argument will always be null. For an observer only this method will be called asynchronous. This may mean that in case the observer is slow, it may be skipped at some consecutive steps until it becomes ready again. If this is not desired and the observer MUST NOT be skipped, then the DataComponent should also be a DataProducer but return just null.

If an error occurs during the execution of the step method, a DataComponent should raise a KiemExecutionException that is then catched by the execution manager an brought to the user's attention.

Parameters:
jSONString - the concrete JSONString of input data (if observer)
Returns:
the JSONString with the output data (if producer)
Throws:
KiemExecutionException - a KiemExecutionException