Daemon class | events.t[744]

Daemon. A daemon is an event that fires repeatedly at given intervals. When a daemon is executed, it is scheduled again for execution after its interval elapses again.

`class Daemon : Event`

Superclass Tree (in declaration order)

`Daemon`
`Event`
`BasicEvent`
`object`

Subclass Tree

`Daemon`
`SenseDaemon`

Global Objects

(none)

Summary of Properties

`interval_`

Inherited from `Event` :
`eventOrder isPromptDaemon nextRunTime`

Inherited from `BasicEvent` :
`obj_ prop_ sense_ source_`

Summary of Methods

`construct executeEvent`

Inherited from `Event` :
`delayEvent getNextRunTime removeEvent`

Inherited from `BasicEvent` :
`callMethod eventMatches`

Properties

`interval_` | `events.t[788]`

our execution interval, in turns

Methods

`construct (obj, prop, interval)`OVERRIDDEN | `events.t[753]`

Creation. 'interval' is the number of turns between invocations of the daemon; this should be at least 1, which causes the daemon to be invoked on each turn. The first execution will be (interval-1) turns in the future - so if interval is 1, the daemon will first be executed on the current turn, and if interval is 2, the daemon will be executed on the next turn.

`executeEvent ( )`OVERRIDDEN | `events.t[778]`

execute the daemon

TADS 3 Library Manual
Generated on 8/21/2012 from TADS version 3.1.2