Class ClearanceOptimizerCPtr
- java.lang.Object
-
- org.robwork.sdurw_pathoptimization.ClearanceOptimizerCPtr
-
public class ClearanceOptimizerCPtr extends java.lang.ObjectPtr stores a pointer and optionally takes ownership of the value.
-
-
Constructor Summary
Constructors Constructor Description ClearanceOptimizerCPtr()Default constructor yielding a NULL-pointer.ClearanceOptimizerCPtr(long cPtr, boolean cMemoryOwn)ClearanceOptimizerCPtr(ClearanceOptimizer 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 ClearanceOptimizer__ref__()Dereferencing operator.voiddelete()ClearanceOptimizerderef()The pointer stored in the object.booleanequals(ClearanceOptimizer p)ClearanceCalculatorCPtrgetClearanceCalculator()Returns the ClearanceCalculator associated with the optimizer.
static longgetCPtr(ClearanceOptimizerCPtr obj)ClearanceOptimizergetDeref()Member access operator.doublegetMinimumClearance()Returns the minimum clearance optimized for.java.lang.StringgetPROP_LOOPCOUNT()Property key for the maximal number of loops.java.lang.StringgetPROP_MAXTIME()Property key for max time.java.lang.StringgetPROP_STEPSIZE()Property key for step sizebooleanisNull()checks if the pointer is nullbooleanisShared()check if this Ptr has shared ownership or none
ownership
-
-
-
Constructor Detail
-
ClearanceOptimizerCPtr
public ClearanceOptimizerCPtr(long cPtr, boolean cMemoryOwn)
-
ClearanceOptimizerCPtr
public ClearanceOptimizerCPtr()
Default constructor yielding a NULL-pointer.
-
ClearanceOptimizerCPtr
public ClearanceOptimizerCPtr(ClearanceOptimizer ptr)
Do not take ownership of ptr.
ptr can be null.
The constructor is implicit on purpose.
-
-
Method Detail
-
getCPtr
public static long getCPtr(ClearanceOptimizerCPtr obj)
-
delete
public void delete()
-
deref
public ClearanceOptimizer deref()
The pointer stored in the object.
-
__ref__
public ClearanceOptimizer __ref__()
Dereferencing operator.
-
getDeref
public ClearanceOptimizer getDeref()
Member access operator.
-
equals
public boolean equals(ClearanceOptimizer 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
-
getPROP_LOOPCOUNT
public java.lang.String getPROP_LOOPCOUNT()
Property key for the maximal number of loops. Set LOOPCOUNT=0 to deactivate it
-
getPROP_MAXTIME
public java.lang.String getPROP_MAXTIME()
Property key for max time. Set MAXTIME=0 to deactivate it
-
getPROP_STEPSIZE
public java.lang.String getPROP_STEPSIZE()
Property key for step size
-
getClearanceCalculator
public ClearanceCalculatorCPtr getClearanceCalculator()
Returns the ClearanceCalculator associated with the optimizer.
- Returns:
- Const reference to the ClearanceCalculator.
-
getMinimumClearance
public double getMinimumClearance()
Returns the minimum clearance optimized for.- Returns:
- The minimum clearance.
-
-