Class Simulator.UpdateInfo

  • Enclosing class:
    Simulator

    public static class Simulator.UpdateInfo
    extends java.lang.Object
    step info is used when updating controllers, devices and bodies.
    • Constructor Summary

      Constructors 
      Constructor Description
      UpdateInfo()
      constructor
      UpdateInfo​(double dt_step)
      constructor
      UpdateInfo​(long cPtr, boolean cMemoryOwn)  
    • Method Summary

      All Methods Static Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      void delete()  
      static long getCPtr​(Simulator.UpdateInfo obj)  
      double getDt()
      the timestep which is about to take place
      double getDt_prev()
      the timestep taken in previous step.
      boolean getRollback()
      if true then the previous step was unsuccessfull and a new step with
      new parameters is executed.
      double getTime()
      current simulation time
      void setDt​(double value)
      the timestep which is about to take place
      void setDt_prev​(double value)
      the timestep taken in previous step.
      void setRollback​(boolean value)
      if true then the previous step was unsuccessfull and a new step with
      new parameters is executed.
      void setTime​(double value)
      current simulation time
      • Methods inherited from class java.lang.Object

        equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • UpdateInfo

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

        public UpdateInfo()
        constructor
      • UpdateInfo

        public UpdateInfo​(double dt_step)
        constructor
    • Method Detail

      • delete

        public void delete()
      • setDt

        public void setDt​(double value)
        the timestep which is about to take place
      • getDt

        public double getDt()
        the timestep which is about to take place
      • setDt_prev

        public void setDt_prev​(double value)
        the timestep taken in previous step.
      • getDt_prev

        public double getDt_prev()
        the timestep taken in previous step.
      • setTime

        public void setTime​(double value)
        current simulation time
      • getTime

        public double getTime()
        current simulation time
      • setRollback

        public void setRollback​(boolean value)
        if true then the previous step was unsuccessfull and a new step with
        new parameters is executed. Typically the dt is reduces. The time should be the same
        as previous call.
      • getRollback

        public boolean getRollback()
        if true then the previous step was unsuccessfull and a new step with
        new parameters is executed. Typically the dt is reduces. The time should be the same
        as previous call.