Class Alloc

    • Field Detail

      • init

        public PortParameter init
        The initial value of the Tokens that are allocated.
      • size

        public PortParameter size
        The size to be allocated in the memory. One unit is one Token.
    • Constructor Detail

      • Alloc

        public Alloc​(CompositeEntity container,
                     java.lang.String name)
              throws IllegalActionException,
                     NameDuplicationException
        Construct an actor with the given container and name. In addition to invoking the base class constructors, construct the init and size port parameter and define the ptr port as output port. Initialize size to IntToken with value 1, and init to IntToken with value 0.
        Parameters:
        container - The container.
        name - The name of this actor.
        Throws:
        IllegalActionException - If the actor cannot be contained by the proposed container.
        NameDuplicationException - If the container already has an actor with this name.