Package org.robwork.sdurw_simulation
Class Simulator.UpdateInfo
- java.lang.Object
-
- org.robwork.sdurw_simulation.Simulator.UpdateInfo
-
- Enclosing class:
- Simulator
public static class Simulator.UpdateInfo extends java.lang.Objectstep info is used when updating controllers, devices and bodies.
-
-
Constructor Summary
Constructors Constructor Description UpdateInfo()constructorUpdateInfo(double dt_step)constructorUpdateInfo(long cPtr, boolean cMemoryOwn)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description voiddelete()static longgetCPtr(Simulator.UpdateInfo obj)doublegetDt()the timestep which is about to take placedoublegetDt_prev()the timestep taken in previous step.booleangetRollback()if true then the previous step was unsuccessfull and a new step with
new parameters is executed.doublegetTime()current simulation timevoidsetDt(double value)the timestep which is about to take placevoidsetDt_prev(double value)the timestep taken in previous step.voidsetRollback(boolean value)if true then the previous step was unsuccessfull and a new step with
new parameters is executed.voidsetTime(double value)current simulation time
-
-
-
Method Detail
-
getCPtr
public static long getCPtr(Simulator.UpdateInfo obj)
-
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.
-
-