EventSource
ptolemy.domains.ct.lib.EventSource

This actor outputs a set of events at a discrete set of time points. It can be used to generate impulses in CT models.

This actor only generates predictable events and that is why it does not implement the CTStepSizeControlActor interface. This actor requests a refiring at its initialize method, then only fires at discrete phase of execution to produce events. During its postfire method, it requests further firings to produce more events if necessary.

Author(s): Jie Liu, Haiyang Zheng
Version:$Id: EventSource.java,v 1.37 2005/10/28 20:17:54 cxh Exp $
Pt.Proposed Rating:Yellow (hyzheng)
Pt.Accepted Rating:Red (liuj)


output
The output port. The type of this port is determined by from the values parameter.



offsets
The offsets at which the specified values will be produced. This parameter must contain an array of doubles, and it defaults to {0.0, 1.0}.

period
The period of the output events. This parameter must contain a DoubleToken, and defaults to 2.0.

values
The values that will be produced at the specified offsets. This parameter must contain an ArrayToken, and defaults to {1, 0}.