Class ClearanceOptimizerCPtr


  • public class ClearanceOptimizerCPtr
    extends java.lang.Object
    Ptr stores a pointer and optionally takes ownership of the value.
    • 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

      • delete

        public void delete()
      • 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.