Class ChangePtr

    • Field Detail

      • addressOffset

        public PortParameter addressOffset
        The offset that is added to the current address of the incoming token.
      • sizeOffset

        public PortParameter sizeOffset
        The offset that is added to the current size of the incoming token.
      • input

        public TypedIOPort input
        The port that contains the PtrToken to be changed.
      • output

        public TypedIOPort output
        The port that outputs the new PtrToken.
    • Constructor Detail

    • Method Detail

      • fire

        public void fire()
                  throws NoTokenException,
                         IllegalActionException
        Read the PtrToken present on input and produce a new PtrToken on output with address = address of the token present input plus addressOffset and size = size of the token present at input plus sizeOffset.
        Specified by:
        fire in interface Executable
        Overrides:
        fire in class AtomicActor<TypedIOPort>
        Throws:
        NoTokenException - Thrown if there is no token.
        IllegalActionException - Thrown if there is no director, and hence no receivers have been created, if the port is not an input port, or if the channel index is out of range.