Class MemoryAccess

    • Field Detail

      • ptr

        public TypedIOPort ptr
        The pointer to the data. Depending on the implementing subclass, this is either an input or an output.
    • Constructor Detail

      • MemoryAccess

        public MemoryAccess​(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 ptr port.
        Parameters:
        container - The container.
        name - The name of this actor.
        Throws:
        IllegalActionException - Thrown if the actor cannot be contained by the proposed container.
        NameDuplicationException - Thrown if the container already has an actor with this name.
    • Method Detail

      • getMemory

        protected Memory getMemory()
        Get the memory that this actor can access. This is the memory controlled by the first director in the hierarchy upwards that is of instance TaskPtDirector.
        Returns:
        The memory that is accessible for this actor.