ptolemy.caltrop.ddi
Interface DDI

All Superinterfaces:
Executable
All Known Implementing Classes:
AbstractDDI, CSP, Dataflow, 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,v 1.12 2004/04/13 18:37:35 cxh Exp $
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, initialize, iterate, postfire, prefire, preinitialize, stop, stopFire, terminate, wrapup
 

Method Detail

isLegalActor

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

Returns:
True, if the actor is legal.

setupActor

public 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

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

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