Class ClearanceOptimizerCPtr
- java.lang.Object
-
- org.robwork.sdurw_pathoptimization.ClearanceOptimizerCPtr
-
public class ClearanceOptimizerCPtr extends java.lang.Object
Ptr 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.void
delete()
ClearanceOptimizer
deref()
The pointer stored in the object.boolean
equals(ClearanceOptimizer p)
ClearanceCalculatorCPtr
getClearanceCalculator()
Returns the ClearanceCalculator associated with the optimizer.
static long
getCPtr(ClearanceOptimizerCPtr obj)
ClearanceOptimizer
getDeref()
Member access operator.double
getMinimumClearance()
Returns the minimum clearance optimized for.java.lang.String
getPROP_LOOPCOUNT()
Property key for the maximal number of loops.java.lang.String
getPROP_MAXTIME()
Property key for max time.java.lang.String
getPROP_STEPSIZE()
Property key for step sizeboolean
isNull()
checks if the pointer is nullboolean
isShared()
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.
-
-