Class DDESink

    • Field Detail

      • numTokens

        public Parameter numTokens
        Indicate the integer valued number of real tokens that this actor should consume. If this value is negative, then there is no limit on the number of tokens that this actor will consume. The default value of this parameter is -1.
    • Constructor Detail

    • Method Detail

      • fire

        public void fire()
                  throws IllegalActionException
        Execute this actor by consuming a real token. If the numTokens parameter has been set to a non-negative value 'k', then stop iterating after 'k' real tokens have been consumed. If the value of numTokens is negative, then continue consuming real tokens as long as they are available.
        Specified by:
        fire in interface Executable
        Overrides:
        fire in class AtomicActor<TypedIOPort>
        Throws:
        IllegalActionException - If there is an exception while accessing the receivers of this actor.