ptolemy.caltrop.ddi
Interface DDI

All Superinterfaces:
Executable, Initializable
All Known Implementing Classes:
AbstractDDI, CSP, Dataflow, DataflowWithRates, DDF, SDF

public interface DDI
extends Executable

An interface for domain dependent interpretation. Each instance of CalInterpreter is associated with its own DDI, which performs tasks needed to interpret the actor in a specific domain.

Note: this interface is likely to grow larger as more domains are implemented.

Since:
Ptolemy II 4.0
Version:
$Id: DDI.java 38798 2005-07-08 20:00:01Z cxh $
Author:
Christopher Chang
Accepted Rating:
Red (cxh)
Proposed Rating:
Red (cxh)

Field Summary
 
Fields inherited from interface ptolemy.actor.Executable
COMPLETED, NOT_READY, STOP_ITERATING
 
Method Summary
 java.lang.String getName()
          Get the name of the domain that this DDI implements.
 boolean isLegalActor()
          Perform static checking on the actor, ensuring its validity in a given domain.
 void setupActor()
          Perform any domain dependent setup.
 
Methods inherited from interface ptolemy.actor.Executable
fire, isFireFunctional, isStrict, iterate, postfire, prefire, stop, stopFire, terminate
 
Methods inherited from interface ptolemy.actor.Initializable
addInitializable, initialize, preinitialize, removeInitializable, wrapup
 

Method Detail

isLegalActor

boolean isLegalActor()
Perform static checking on the actor, ensuring its validity in a given domain.

Returns:
True, if the actor is legal.

setupActor

void setupActor()
Perform any domain dependent setup. This can include hanging various attributes off of the actor, for example, the rate of the input and output ports.


getName

java.lang.String getName()
Get the name of the domain that this DDI implements.

Returns:
The name of the domain that this DDI implements.