Skip to content

Handler


abstract class Handler

Event handler that eagerly computes weights.

classDiagram Handler <|-- PlayHandler Handler <|-- MoveHandler link Handler "../Handler/" link PlayHandler "../PlayHandler/" link MoveHandler "../MoveHandler/"

Member Variables

Name Description
input:Tape<Record>? Input trace, if any.
output:Tape<Record>? Output trace, if any.
w:Real Accumulated weight.

Member Functions

Name Description
handle Handle an event.
doHandle Handle an event.
doHandle Handle an event with an input.

Member Function Details

doHandle

abstract function doHandle(event:Event)

Handle an event.

  • event: The event.

abstract function doHandle(record:Record, event:Event)

Handle an event with an input.

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

handle

final function handle(event:Event)

Handle an event.

  • event: The event.

This calls one of the doHandle() member functions according to the current state.