Class CountTrues

    • Field Detail

      • blockSize

        public Parameter blockSize
        The number of input tokens to read before outputting a count. The input is of type integer and has a default value of 1.
    • 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.