Package org.robwork.sdurwsim
Class ThreadSimulator
- java.lang.Object
-
- org.robwork.sdurwsim.ThreadSimulator
-
public class ThreadSimulator extends java.lang.Object
-
-
Constructor Summary
Constructors Constructor Description ThreadSimulator(long cPtr, boolean cMemoryOwn)
ThreadSimulator(DynamicSimulatorPtr simulator, State state)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description void
delete()
static long
getCPtr(ThreadSimulator obj)
DynamicSimulatorPtr
getSimulator()
State
getState()
double
getTime()
boolean
isInError()
boolean
isRunning()
void
postStop()
void
reset(State state)
void
setInError(boolean inError)
void
setRealTimeScale(double scale)
void
setState(State state)
void
setStepCallBack(ThreadSimulatorStepCallback cb)
void
setStepCallBack(ThreadSimulatorStepCallbackEnv cb)
void
setTimeStep(double dt)
void
start()
void
step()
void
stop()
-
-
-
Constructor Detail
-
ThreadSimulator
public ThreadSimulator(long cPtr, boolean cMemoryOwn)
-
ThreadSimulator
public ThreadSimulator(DynamicSimulatorPtr simulator, State state)
-
-
Method Detail
-
getCPtr
public static long getCPtr(ThreadSimulator obj)
-
delete
public void delete()
-
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()
-
getSimulator
public DynamicSimulatorPtr getSimulator()
-
setStepCallBack
public void setStepCallBack(ThreadSimulatorStepCallbackEnv cb)
-
setStepCallBack
public void setStepCallBack(ThreadSimulatorStepCallback cb)
-
isInError
public boolean isInError()
-
setInError
public void setInError(boolean inError)
-
-