Class PtidesBasicReceiver

    • Constructor Detail

      • PtidesBasicReceiver

        public PtidesBasicReceiver​(PtidesReceiver receiver)
                            throws IllegalActionException
        Construct a ptides basic receiver.
        Parameters:
        receiver - The ptolemy.domains.ptides.kernel.PtidesBasicReceiver that corresponds with this adapter.
        Throws:
        IllegalActionException - If throw by the superclass.
    • Method Detail

      • generatePutCode

        public java.lang.String generatePutCode​(IOPort sourcePort,
                                                java.lang.String offset,
                                                java.lang.String token)
                                         throws IllegalActionException
        Description copied from class: PtidesBasicReceiver
        Generate code for putting tokens into the receiver.
        Overrides:
        generatePutCode in class PtidesBasicReceiver
        Parameters:
        sourcePort - The port for which to generate the send code.
        offset - The offset in the array representation of the port.
        token - The token to be sent.
        Returns:
        generate type conversion as well as put code.
        Throws:
        IllegalActionException - If the receiver adapter is not found or it encounters an error while generating the send code.