Skip to content

TraceHandler

abstract class TraceHandler < Object

Abstract event handler that requires an input trace.

The Handler class hierarchy is as follows:

Member Functions

Name Description
handle Handle a sequence of events with an input trace.
handle Handle a sequence of events with an input trace and record them in an output trace.
handle Handle an event with an input record.

Member Function Details

handle

final function handle(input:Trace, events:Event!) -> Real

Handle a sequence of events with an input trace.

  • input: Input trace.
  • events: Event sequence.

Returns: Accumulated log-weight.

final function handle(input:Trace, events:Event!, output:Trace) -> Real

Handle a sequence of events with an input trace and record them in an output trace.

  • input: Input trace.
  • events: Event sequence.
  • output: Output trace.

Returns: Accumulated log-weight.

abstract function handle(record:Record, event:Event) -> Real

Handle an event with an input record.

  • record: The record.
  • event: The event.

Returns: Log-weight.