Class PGMReader

    • Field Detail

      • fileOrURL

        public FileParameter fileOrURL
        The file name or URL from which to read. This is a string with any form accepted by File Attribute.
        See Also:
        FileParameter
      • levelMap

        public Parameter levelMap
        A mapping between image input and output values to generate a quantized output. Set this parameter to empty array for no quantization. Empty array means no quantization
    • Method Detail

      • attributeChanged

        public void attributeChanged​(Attribute attribute)
                              throws IllegalActionException
        Description copied from class: NamedObj
        React to a change in an attribute. This method is called by a contained attribute when its value changes. In this base class, the method does nothing. In derived classes, this method may throw an exception, indicating that the new attribute value is invalid. It is up to the caller to restore the attribute to a valid value if an exception is thrown.
        Overrides:
        attributeChanged in class NamedObj
        Parameters:
        attribute - The attribute that changed.
        Throws:
        IllegalActionException - If the change is not acceptable to this container (not thrown in this base class).
      • prefire

        public boolean prefire()
                        throws IllegalActionException
        Description copied from class: Source
        If the trigger input is connected and it has no input or an unknown state, then return false. Otherwise, return true.
        Specified by:
        prefire in interface Executable
        Overrides:
        prefire in class Source
        Returns:
        True, unless the trigger input is connected and has no input.
        Throws:
        IllegalActionException - If checking the trigger for a token throws it or if the super class throws it.