org.opengis.geometry.coordinate
Class KnotType

Show UML class diagram
Object
  extended by CodeList<KnotType>
      extended by KnotType
All Implemented Interfaces:
Serializable, Comparable<KnotType>

@UML(identifier="GM_KnotType",
     specification=ISO_19107)
public class KnotType
extends CodeList<KnotType>

The type of a B-spline. A B-spline is uniform if and only if all knots are of multiplicity 1 and they differ by a positive constant from the preceding knot. A B-spline is quasi-uniform if and only if the knots are of multiplicity (degree+1) at the ends, of multiplicity 1 elsewhere, and they differ by a positive constant from the preceding knot. This code list is used to describe the distribution of knots in the parameter space of various splines.

Since:
GeoAPI 2.0
See Also:
Serialized Form

Nested Class Summary
 
Nested classes/interfaces inherited from class CodeList
CodeList.Filter
 
Field Summary
static KnotType PIECEWISE_BEZIER
          The form of knots is appropriate for a piecewise Bezier curve.
static KnotType QUASI_UNIFORM
          The form of knots is appropriate for a quasi-uniform B-spline.
static KnotType UNIFORM
          The form of knots is appropriate for a uniform B-spline.
 
Method Summary
 KnotType[] family()
          Returns the list of codes of the same kind than this code list element.
static KnotType valueOf(String code)
          Returns the KnotType that matches the given string, or returns a new one if none match it.
static KnotType[] values()
          Returns the list of KnotTypes.
 
Methods inherited from class CodeList
compareTo, equals, identifier, name, names, ordinal, readResolve, toString, valueOf, valueOf
 
Methods inherited from class Object
clone, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

UNIFORM

@UML(identifier="uniform",
     obligation=CONDITIONAL,
     specification=ISO_19107)
public static final KnotType UNIFORM
The form of knots is appropriate for a uniform B-spline.


QUASI_UNIFORM

@UML(identifier="quasiUniform",
     obligation=CONDITIONAL,
     specification=ISO_19107)
public static final KnotType QUASI_UNIFORM
The form of knots is appropriate for a quasi-uniform B-spline.


PIECEWISE_BEZIER

@UML(identifier="piecewiseBezier",
     obligation=CONDITIONAL,
     specification=ISO_19107)
public static final KnotType PIECEWISE_BEZIER
The form of knots is appropriate for a piecewise Bezier curve.

Method Detail

values

public static KnotType[] values()
Returns the list of KnotTypes.

Returns:
The list of codes declared in the current JVM.

family

public KnotType[] family()
Returns the list of codes of the same kind than this code list element. Invoking this method is equivalent to invoking values(), except that this method can be invoked on an instance of the parent CodeList class.

Specified by:
family in class CodeList<KnotType>
Returns:
The codes of the same kind than this code.

valueOf

public static KnotType valueOf(String code)
Returns the KnotType that matches the given string, or returns a new one if none match it. More specifically, this methods returns the first instance for which name().equals(code) returns true. If no existing instance is found, then a new one is created for the given name.

Parameters:
code - The name of the code to fetch or to create.
Returns:
A code matching the given name.


Copyright © 1994-2013 Open Geospatial Consortium. All Rights Reserved.