Skip to content

EventHandler

final class EventHandler < Object

Is recording enabled?

Member Variables

Name Description
trace:Queue<Record> Trace.

Member Functions

Name Description
setMode Set the play/replay mode.
setRecord Set the record flag.
handle Handle a sequence of events.
handle Handle a single event.
rewind Rewind, in order to replay recorded events.

Member Function Details

handle

function handle(evt:Event!) -> Real

Handle a sequence of events.

Returns: Log-weight.

function handle(evt:Event) -> Real

Handle a single event.

  • evt: The event.

Returns: Any necessary log-weight adjustment.

rewind

function rewind()

Rewind, in order to replay recorded events.

setMode

function setMode(mode:Integer8)

Set the play/replay mode. Valid modes are:

setRecord

function setRecord(record:Boolean)

Set the record flag.