Class ThreadSimulatorPtr


  • public class ThreadSimulatorPtr
    extends java.lang.Object
    Ptr stores a pointer and optionally takes ownership of the value.
    • Constructor Detail

      • ThreadSimulatorPtr

        public ThreadSimulatorPtr​(long cPtr,
                                  boolean cMemoryOwn)
      • ThreadSimulatorPtr

        public ThreadSimulatorPtr()
        Default constructor yielding a NULL-pointer.
      • ThreadSimulatorPtr

        public ThreadSimulatorPtr​(ThreadSimulator ptr)
        Do not take ownership of ptr.

        ptr can be null.

        The constructor is implicit on purpose.
    • Method Detail

      • delete

        public void delete()
      • isShared

        public boolean isShared()
        check if this Ptr has shared ownership or none
        ownership
        Returns:
        true if Ptr has shared ownership, false if it has no ownership.
      • isNull

        public boolean isNull()
        checks if the pointer is null
        Returns:
        Returns true if the pointer is null
      • setRealTimeScale

        public void setRealTimeScale​(double scale)
      • setTimeStep

        public void setTimeStep​(double dt)
      • start

        public void start()
      • stop

        public void stop()
      • postStop

        public void postStop()
      • step

        public void step()
      • getState

        public State getState()
      • setState

        public void setState​(State state)
      • reset

        public void reset​(State state)
      • isRunning

        public boolean isRunning()
      • getTime

        public double getTime()
      • isInError

        public boolean isInError()
      • setInError

        public void setInError​(boolean inError)