ptolemy.domains.ct.kernel
Interface CTEventGenerator

All Superinterfaces:
ptolemy.actor.Actor, ptolemy.actor.Executable
All Known Implementing Classes:
CTCompositeActor, CTPeriodicSampler, CTTriggeredSampler, EventSource, LevelCrossingDetector

public interface CTEventGenerator
extends ptolemy.actor.Actor

Interface for CT actors that convert continuous-time signals to discrete events. Typical implementations of event generator are samplers, event detectors, etc.

Since:
Ptolemy II 0.2
Version:
$Id: CTEventGenerator.java,v 1.27 2004/04/13 03:26:26 cxh Exp $
Author:
Jie Liu
Accepted Rating:
Green (yuhong)
Proposed Rating:
Green (liuj)

Field Summary
 
Fields inherited from interface ptolemy.actor.Executable
COMPLETED, NOT_READY, STOP_ITERATING
 
Method Summary
 boolean hasCurrentEvent()
          Return true if there is an event at the current time.
 
Methods inherited from interface ptolemy.actor.Actor
getDirector, getExecutiveDirector, getFunctionDependency, getManager, inputPortList, newReceiver, outputPortList
 
Methods inherited from interface ptolemy.actor.Executable
fire, initialize, iterate, postfire, prefire, preinitialize, stop, stopFire, terminate, wrapup
 

Method Detail

hasCurrentEvent

public boolean hasCurrentEvent()
Return true if there is an event at the current time.

Returns:
True if there is an event to emit now.