Class Maximum

    • Field Detail

      • input

        public TypedIOPort input
        The input port. This is required to be a scalar type.
      • maximumValue

        public TypedIOPort maximumValue
        The output port for the maximum value.
      • channelNumber

        public TypedIOPort channelNumber
        The output port for the channel number. The type of this output is an integer.
    • Method Detail

      • fire

        public void fire()
                  throws IllegalActionException
        Read at most one token from each input channel and broadcast the one with the largest value to the maximumValueoutput. In addition, broadcast its channel number to the channelNumber output. If there is no input, then produce no output.
        Specified by:
        fire in interface Executable
        Overrides:
        fire in class AtomicActor<TypedIOPort>
        Throws:
        IllegalActionException - If there is no director.