Interface TMActor

  • All Superinterfaces:
    Actor, Executable, Initializable, Nameable
    All Known Implementing Classes:
    TMCompositeFacade

    public interface TMActor
    extends Actor
    An interface that adds a method getExecutionTime() to the Actor interface. This allows actors to estimate its execution time on a per iteration basis, and maybe in an input-dependent manner.
    Since:
    Ptolemy II 2.0
    Version:
    $Id$
    Author:
    Jie Liu
    Pt.AcceptedRating:
    Yellow (janneck)
    Pt.ProposedRating:
    Yellow (liuj)
    • Method Detail

      • getExecutionTime

        double getExecutionTime()
        Return the execution time for this iteration. This method will be called by the TMDirector after the prefire() method is called. The reason for this method is to allow the actor to determine/estimate its execution time on a per iteration basis.
        Returns:
        The execution time for this iteration.