com.kuka.nav.geometry
Class SplineCalculationAccess

java.lang.Object
  extended by com.kuka.nav.geometry.SplineCalculationAccess

public final class SplineCalculationAccess
extends Object

The access class to the spline calculation for motion properties.


Method Summary
 int getAmountOfVirtualLinesPerSegment()
          Returns the value from database for the amount of virtual lines to approximate a spline segment.
static SplineCalculationAccess getInstance()
          Access to this class if it was already initialized.
 SplineCalculation getSplineCalculation()
          Returns a implementation of spline calculation.
static void init(SplineCalculation splineCalculation, int virtualLinesPerSegment)
          Initialize the spline calculation.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

getInstance

public static SplineCalculationAccess getInstance()
Access to this class if it was already initialized. If this class not initialized, null is returned.

Returns:
an instance or null

init

public static void init(SplineCalculation splineCalculation,
                        int virtualLinesPerSegment)
Initialize the spline calculation.

Parameters:
splineCalculation - the implementation of spline calculation
virtualLinesPerSegment - how many virtual lines should be used to approximate a segment. That is a database parameter.

getSplineCalculation

public SplineCalculation getSplineCalculation()
Returns a implementation of spline calculation. Attention: If this class was not initialized, then it will be returns null.

Returns:
Returns a implementation of spline calculation or null in case of no initialization

getAmountOfVirtualLinesPerSegment

public int getAmountOfVirtualLinesPerSegment()
Returns the value from database for the amount of virtual lines to approximate a spline segment.

Returns:
the value from database or a default value


Copyright © 2019. All rights reserved.