Skip to content

Model

class Model < Object

Abstract model.

The Model class hierarchy is as follows:

Member Variables

Name Description
h:EventHandler Event handler.

Member Functions

Name Description
getHandler Get the event handler.
setHandler Set the event handler.
play Play the complete model with an event handler, returning a log-weight.

Member Fibers

Name Description
simulate Simulate the model, yielding events.

Member Function Details

getHandler

function getHandler() -> EventHandler

Get the event handler.

play

function play() -> Real

Play the complete model with an event handler, returning a log-weight.

setHandler

function setHandler(h:EventHandler)

Set the event handler.

Member Fiber Details

simulate

fiber simulate() -> Event

Simulate the model, yielding events.