previous chapter contents page top page next chapter


TimedEvent

February 21, 1996

Defined in DateTime.Def

Inherits from Object

Class Description

Class TimedEvent allows you to schedule events at arbitrary times. You'll use class TimedEvent whenever you need to trigger an event at some point in the future. Actually, since TimedEvent uses Time objects to store the time, you could schedule an action to happen in the past (not that that would necessarily do you any good).

Programming information

Instantiate: sometimes
Subclass: sometimes
Call its methods: sometimes

The default TimedAction method does nothing, so you'll override it to perform your customs tasks.

Methods defined by class TimedEvent

Class TimedEvent defines the following methods:

Method Description
TimedAction Called by TimedEventList when time comes up; for scripting
Finalize Fills in the eventTime field with a fresh Time
SetIndexedTime Sets the indexed time
IndexedTime Returns the time in milliseconds

Attributes defined by class TimedEvent

Class TimedEvent defines the following attributes:

Field Type Description
EventTime Time Date/time when TimedAction will be called on self
Data Object Holds arbitrary object for caller's use

Fields defined by class TimedEvent

Class TimedEvent defines the following fields:

Field Type Description
eventTime Time Time the event is supposed to happen
data Object Object holder

Method Descriptions

TimedAction

operation TimedAction(), scriptable;