Interface CommandPostprocessor

    • Method Detail

      • process

        byte[] process​(PreparedCommand pc)
        processes the command and returns the binary buffer. Returns null if the command cannot be processed (e.g. its size does not correspond to what this processor expects). In this case the postprocessor is expected to fail the command in the command history (also filling in an appropiate reason)
        Parameters:
        pc -
        Returns:
      • setCommandHistoryPublisher

        default void setCommandHistoryPublisher​(CommandHistoryPublisher commandHistoryListener)
        sets the command history listener which can be used by the preprocessor to provide command history entries related to the command processed
        Parameters:
        commandHistoryListener -
      • getBinaryLength

        default int getBinaryLength​(PreparedCommand pc)
        Return the size of the binary packet for this command.

        This is required in the frame links which bundle multiple commands together to know if the command will fit into the frame before post-processing it.

        Parameters:
        pc -
        Returns:
        the size of the binary packet which the method process(PreparedCommand) will return.