Class IStateLong

  • Direct Known Subclasses:
    StoredLong

    public abstract class IStateLong
    extends Object
    An abstract class for backtrackable long.
    Since:
    29/04/13
    Author:
    Charles Prud'homme
    • Field Detail

      • currentValue

        protected long currentValue
      • timeStamp

        protected int timeStamp
    • Constructor Detail

      • IStateLong

        public IStateLong​(IEnvironment env,
                          long i)
    • Method Detail

      • get

        public final long get()
        Returns the current value.
      • set

        public abstract void set​(long y)
        Modifies the value and stores if needed the former value on the trailing stack.
      • _set

        public void _set​(long y,
                         int wstamp)
        Modifies the value without storing the former value on the trailing stack.
        Parameters:
        y - the new value
        wstamp - the stamp of the world in which the update is performed
      • overrideTimeStamp

        public void overrideTimeStamp​(int aTimeStamp)