Skip to content

Handler

abstract class Handler < Object

Abstract event handler.

The Handler class hierarchy is as follows:

Member Functions

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

Member Function Details

handle

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

Handle a sequence of events.

  • events: Event sequence.

Returns: Accumulated (log-)weight.

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

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

  • events: Event sequence.
  • trace: Output trace.

Returns: Accumulated (log-)weight.

abstract function handle(event:Event) -> Real

Handle an event.

  • event: The event.

Returns: Log-weight adjustment.