ptolemy.actor
Interface TimedDirector

All Known Implementing Classes:
ContinuousDirector, CSPDirector, CTDirector, CTEmbeddedDirector, CTMixedSignalDirector, CTMultiSolverDirector, DDEDirector, DEDirector, DTDirector, GiottoDirector, PteraDirector, TimedPNDirector, TMDirector, WirelessDirector

public interface TimedDirector

This is an interface for directors that direct the executions of timed actors. Actors that implement the TimedActor marker interface are allowed to be executed by directors that implement this interface.

Since:
Ptolemy II 4.1
Version:
$Id: TimedDirector.java 53042 2009-04-10 20:31:21Z cxh $
Author:
Haiyang Zheng
See Also:
TimedActor
Accepted Rating:
Red (hyzheng)
Proposed Rating:
Yellow (hyzheng)

Method Summary
 Dependency delayDependency(double delay)
          Return a dependency representing a model-time delay of the specified amount.
 Time getModelTime()
          Return a time object that contains the value of the current time.
 double getTimeResolution()
          Get the time resolution of the model.
 

Method Detail

getModelTime

Time getModelTime()
Return a time object that contains the value of the current time.

Returns:
A time object that contains the value of the current time.

getTimeResolution

double getTimeResolution()
Get the time resolution of the model.

Returns:
The time resolution of the model.

delayDependency

Dependency delayDependency(double delay)
Return a dependency representing a model-time delay of the specified amount.

Parameters:
delay - A non-negative delay.
Returns:
A dependency representing a delay.