Class ClearanceCalculator

  • Direct Known Subclasses:
    MinimumClearanceCalculator

    public class ClearanceCalculator
    extends java.lang.Object
    Interface for ClearanceCalculator

    A ClearanceCalculator provides a mean for calculating the clearance of for a state. While the
    concept of clearance usually refers to the distance between a device and obstacle, not such
    assumption should be made based on the interface, as other fitness criteria may be
    implemented.

    Only convention is that a high clearance value is better than a low.
    • Constructor Detail

      • ClearanceCalculator

        public ClearanceCalculator​(long cPtr,
                                   boolean cMemoryOwn)
    • Method Detail

      • delete

        public void delete()
      • clearance

        public double clearance​(State state)
        Calculates Clearance for the state

        Parameters:
        state - [in] State for which to calculate the clearance
        Returns:
        The clearance.