package interpreter
- Alphabetic
- Public
- Protected
Type Members
- class CtfEventIterator extends Trace
An Interpreter.Trace generated from a CTF trace.
- class EventIterator extends Iterator[Event]
An Interpreter.Trace generated from de.uni_luebeck.isp.tessla.interpreter.TraceParser.Events.
An Interpreter.Trace generated from de.uni_luebeck.isp.tessla.interpreter.TraceParser.Events.
This makes use of the de.uni_luebeck.isp.tessla.interpreter.TraceExpressionEvaluator to evaluate the event data.
- class Interpreter extends StreamEngine
An interpreter instance for a given specification.
- class RuntimeEvaluator extends AnyRef
An evaluator for core expressions, given implementations for externs.
- class StreamEngine extends AnyRef
Evaluates a stream graph synchronously.
Evaluates a stream graph synchronously. In each evaluation cycle inputs are supplied with values. Then.input and delay nodes are triggered to initiate the propagation of values. Listeners can be registered to receive results at output streams.
Value Members
- case object BuildInfo extends Product with Serializable
This object was generated by sbt-buildinfo.
- object Interpreter
Evaluates a core specification with a given input trace, producing a trace of events as result.
- object JavaApi
API interface for accessing the TeSSLa compiler from other Java or Scala projects.
API interface for accessing the TeSSLa compiler from other Java or Scala projects. This API is optimized for a comfortable use from Java and Scala code.
Usage example (in Java):
import de.uni_luebeck.isp.tessla.interpreter.JavaApi; import de.uni_luebeck.isp.tessla.interpreter.JavaApi.*; import de.uni_luebeck.isp.tessla.interpreter.StreamEngine; class Main { public static void main(String[] args) { String spec_str = "in temperature: Events[Int]\r\n" + "\r\n" + "def low = temperature < 3\r\n" + "def high = temperature > 8\r\n" + "def unsafe = low || high\r\n" + "\r\n" + "out unsafe"; System.out.println("Compiling..."); Engine res = JavaApi.compile(spec_str ,"spec.tessla").engine(); System.out.println("Ready!"); res.addListener(new EngineListener(){ public void event(String stream, scala.math.BigInt time, Object value) { System.out.println("Got: " + stream + " = " + value + " at " + time); } public void printEvent(scala.math.BigInt time, Object value) { System.out.println("Raw output: " + value + " at " + time); } }); res.setTime(1); res.provide("temperature",2); res.setTime(2); res.provide("temperature",15); res.setTime(5); res.provide("temperature",8); res.step(); System.out.println("Finished!"); } }
Note: This API internally uses the TeSSLa interpreter. For high performance applications it is advisable to use the TeSSLa compiler to generate a Scala API directly for a specific specification.
- object RuntimeEvaluator
- object RuntimeTypeChecker
Performs type checking on runtime values.
- object StreamEngine
- object Trace
Factory for Interpreter.Traces.
- object TraceExpressionEvaluator
Evaluates expressions used in traces.
Evaluates expressions used in traces.
- object TraceParser
Provides parsing for traces in csv or standard format.