Class CSPSink

    • Field Detail

      • tokenLimit

        public Parameter tokenLimit
        The number of tokens produced by this actor. If this limit is set to -1, then produce output tokens indefinitely. The default value of this parameter is -1.
    • Constructor Detail

      • CSPSink

        public CSPSink​(CompositeActor container,
                       java.lang.String name,
                       int limit)
                throws IllegalActionException,
                       NameDuplicationException
        Construct a CSPSink with the specified container and the specified name. The name must be unique within the container or an exception is thrown. The container argument must not be null, or a NullPointerException will be thrown.
        Parameters:
        container - The container of this actor.
        name - The name of this actor.
        limit - The number of tokens that this actor will produce.
        Throws:
        IllegalActionException - If the superclass throws it or if there is an error with instantiation of the tokenLimit parameter.
        NameDuplicationException - If the name of the actor or the tokenLimit parameter is not unique within the container.