Class PtidesTopLevelDirector

  • All Implemented Interfaces:
    java.lang.Cloneable, Changeable, Debuggable, DebugListener, Derivable, ModelErrorHandler, MoMLExportable, Moveable, Nameable
    Direct Known Subclasses:
    PtidesTopLevelDirector

    public class PtidesTopLevelDirector
    extends Director
    Code generator adapter associated with the PTIDESDirector class. This class is also associated with a code generator. Top-level director for PTIDES models. Unlike in the ptolemy implementation, this level generates code for communication between different platforms. Such that events are transmitted to the correct platform, and the platforms can distinguish from which actor should fire these events
    Since:
    Ptolemy II 10.0
    Version:
    $Id$
    Author:
    Jia Zou, Jeff C. Jensen
    Pt.AcceptedRating:
    Pt.ProposedRating:
    red (jiazou)
    • Constructor Detail

      • PtidesTopLevelDirector

        public PtidesTopLevelDirector​(PtidesDirector ptidesTopLevelDirector)
        Construct the code generator adapter associated with the given PTIDESDirector.
        Parameters:
        ptidesTopLevelDirector - The associated ptolemy.domains.ptides.kernel.PtidesTopLevelDirector
    • Method Detail

      • generateFireFunctionCode

        public java.lang.String generateFireFunctionCode()
                                                  throws IllegalActionException
        Description copied from class: Director
        Generate The fire function code. This method is called when the firing code of each actor is not inlined. Each actor's firing code is in a function with the same name as that of the actor.
        Overrides:
        generateFireFunctionCode in class Director
        Returns:
        The fire function code.
        Throws:
        IllegalActionException - If thrown while generating fire code.