Package org.robwork.sdurwsim
Class GraspTaskSimulatorPtr
- java.lang.Object
-
- org.robwork.sdurwsim.GraspTaskSimulatorPtr
-
public class GraspTaskSimulatorPtr extends java.lang.Object
Ptr stores a pointer and optionally takes ownership of the value.
-
-
Constructor Summary
Constructors Constructor Description GraspTaskSimulatorPtr()
Default constructor yielding a NULL-pointer.GraspTaskSimulatorPtr(long cPtr, boolean cMemoryOwn)
GraspTaskSimulatorPtr(GraspTaskSimulator ptr)
Do not take ownership of ptr.
ptr can be null.
The constructor is implicit on purpose.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description GraspTaskSimulator
__ref__()
Dereferencing operator.void
delete()
GraspTaskSimulator
deref()
The pointer stored in the object.boolean
equals(GraspTaskSimulator p)
static long
getCPtr(GraspTaskSimulatorPtr obj)
GraspTaskSimulator
getDeref()
Member access operator.long
getNrTargets()
int
getNrTargetsDone()
GraspTaskPtr
getResult()
ThreadSimulatorPtr
getSimulator()
ThreadSimulatorPtrVector
getSimulators()
vector_i
getStat()
int
getStat(GraspResult.TestStatus status)
java.lang.String
getStatDescription()
GraspTaskPtr
getTasks()
void
init(DynamicWorkCellPtr dwc, State initState)
boolean
isFinished()
boolean
isNull()
checks if the pointer is nullboolean
isRunning()
boolean
isShared()
check if this Ptr has shared ownership or none
ownershipvoid
load(java.lang.String filename)
void
load(GraspTaskPtr graspTasks)
void
pauseSimulation()
void
resumeSimulation()
void
setAlwaysResting(boolean alwaysResting)
void
setSimTimeLimit(double limit)
void
setStepDelay(int delay)
void
setWallTimeLimit(double limit)
void
startSimulation(State initState)
-
-
-
Constructor Detail
-
GraspTaskSimulatorPtr
public GraspTaskSimulatorPtr(long cPtr, boolean cMemoryOwn)
-
GraspTaskSimulatorPtr
public GraspTaskSimulatorPtr()
Default constructor yielding a NULL-pointer.
-
GraspTaskSimulatorPtr
public GraspTaskSimulatorPtr(GraspTaskSimulator ptr)
Do not take ownership of ptr.
ptr can be null.
The constructor is implicit on purpose.
-
-
Method Detail
-
getCPtr
public static long getCPtr(GraspTaskSimulatorPtr obj)
-
delete
public void delete()
-
deref
public GraspTaskSimulator deref()
The pointer stored in the object.
-
__ref__
public GraspTaskSimulator __ref__()
Dereferencing operator.
-
getDeref
public GraspTaskSimulator getDeref()
Member access operator.
-
equals
public boolean equals(GraspTaskSimulator p)
-
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
-
load
public void load(java.lang.String filename)
-
load
public void load(GraspTaskPtr graspTasks)
-
getTasks
public GraspTaskPtr getTasks()
-
getResult
public GraspTaskPtr getResult()
-
getNrTargets
public long getNrTargets()
-
getSimulator
public ThreadSimulatorPtr getSimulator()
-
getSimulators
public ThreadSimulatorPtrVector getSimulators()
-
init
public void init(DynamicWorkCellPtr dwc, State initState)
-
startSimulation
public void startSimulation(State initState)
-
pauseSimulation
public void pauseSimulation()
-
resumeSimulation
public void resumeSimulation()
-
isRunning
public boolean isRunning()
-
isFinished
public boolean isFinished()
-
getStat
public int getStat(GraspResult.TestStatus status)
-
getStat
public vector_i getStat()
-
getStatDescription
public java.lang.String getStatDescription()
-
getNrTargetsDone
public int getNrTargetsDone()
-
setAlwaysResting
public void setAlwaysResting(boolean alwaysResting)
-
setStepDelay
public void setStepDelay(int delay)
-
setWallTimeLimit
public void setWallTimeLimit(double limit)
-
setSimTimeLimit
public void setSimTimeLimit(double limit)
-
-