Class CaseDirector

    • Constructor Detail

      • CaseDirector

        public CaseDirector​(CaseDirector director)
        Construct the code generator adapterassociated with the given CaseDirector.
        Parameters:
        director - The associated ptolemy.actor.lib.hoc.CaseDirector
    • Method Detail

      • generateFireCode

        public java.lang.String generateFireCode()
                                          throws IllegalActionException
        Generate the code for the firing of actors controlled by this director.
        Overrides:
        generateFireCode in class Director
        Returns:
        The generated fire code.
        Throws:
        IllegalActionException - If the adapter associated with an actor throws it while generating fire code for the actor.
      • generateTransferInputsCode

        public final void generateTransferInputsCode​(IOPort inputPort,
                                                     java.lang.StringBuffer code)
                                              throws IllegalActionException
        Generate code for transferring enough tokens to complete an internal iteration.
        Overrides:
        generateTransferInputsCode in class Director
        Parameters:
        inputPort - The port to transfer tokens.
        code - The string buffer that the generated code is appended to.
        Throws:
        IllegalActionException - If thrown while transferring tokens.
      • generateTransferOutputsCode

        public void generateTransferOutputsCode​(IOPort outputPort,
                                                java.lang.StringBuffer code)
                                         throws IllegalActionException
        Generate code for transferring enough tokens to fulfill the output production rate.
        Overrides:
        generateTransferOutputsCode in class Director
        Parameters:
        outputPort - The port to transfer tokens.
        code - The string buffer that the generated code is appended to.
        Throws:
        IllegalActionException - If thrown while transferring tokens.