Package mil.nga.crs.common
Class CoordinateSystem
- java.lang.Object
-
- mil.nga.crs.common.CoordinateSystem
-
- All Implemented Interfaces:
Identifiable
public class CoordinateSystem extends Object implements Identifiable
Coordinate System- Author:
- osbornb
-
-
Constructor Summary
Constructors Constructor Description CoordinateSystem()ConstructorCoordinateSystem(CoordinateSystemType type, int dimension, List<Axis> axes)ConstructorCoordinateSystem(CoordinateSystemType type, int dimension, Axis axis)Constructor
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidaddAxes(List<Axis> axes)Add the axesvoidaddAxis(Axis axis)Add the axisvoidaddIdentifier(Identifier identifier)Add the identifiervoidaddIdentifiers(List<Identifier> identifiers)Add the identifiersbooleanequals(Object obj)List<Axis>getAxes()Get the axesAxisgetAxis(int index)Get the axis at the indexUnitgetAxisUnit()Get the axis unit, either the CS unit or first axis with unitintgetDimension()Get the dimensionIdentifiergetIdentifier(int index)Get the identifier at the indexList<Identifier>getIdentifiers()Get the identifiersCoordinateSystemTypegetType()Get the typeUnitgetUnit()Get the unitinthashCode()booleanhasIdentifiers()Has identifiersbooleanhasUnit()Has a unitintnumAxes()Number of axesintnumIdentifiers()Number of identifiersvoidsetAxes(List<Axis> axes)Set the axesvoidsetDimension(int dimension)Set the dimensionvoidsetIdentifiers(List<Identifier> identifiers)Set the identifiersvoidsetType(CoordinateSystemType type)Set the typevoidsetUnit(Unit unit)Set the unitStringtoString()
-
-
-
Constructor Detail
-
CoordinateSystem
public CoordinateSystem()
Constructor
-
CoordinateSystem
public CoordinateSystem(CoordinateSystemType type, int dimension, Axis axis)
Constructor- Parameters:
type- typedimension- dimensionaxis- axis
-
CoordinateSystem
public CoordinateSystem(CoordinateSystemType type, int dimension, List<Axis> axes)
Constructor- Parameters:
type- typedimension- dimensionaxes- axes
-
-
Method Detail
-
getType
public CoordinateSystemType getType()
Get the type- Returns:
- coordinate system type
-
setType
public void setType(CoordinateSystemType type)
Set the type- Parameters:
type- coordinate system type
-
getDimension
public int getDimension()
Get the dimension- Returns:
- dimension
-
setDimension
public void setDimension(int dimension)
Set the dimension- Parameters:
dimension- dimension
-
getIdentifiers
public List<Identifier> getIdentifiers()
Get the identifiers- Specified by:
getIdentifiersin interfaceIdentifiable- Returns:
- identifiers
-
hasIdentifiers
public boolean hasIdentifiers()
Has identifiers- Specified by:
hasIdentifiersin interfaceIdentifiable- Returns:
- true if has identifiers
-
numIdentifiers
public int numIdentifiers()
Number of identifiers- Specified by:
numIdentifiersin interfaceIdentifiable- Returns:
- identifiers count
-
getIdentifier
public Identifier getIdentifier(int index)
Get the identifier at the index- Specified by:
getIdentifierin interfaceIdentifiable- Parameters:
index- identifier index- Returns:
- identifier
-
setIdentifiers
public void setIdentifiers(List<Identifier> identifiers)
Set the identifiers- Specified by:
setIdentifiersin interfaceIdentifiable- Parameters:
identifiers- identifiers
-
addIdentifier
public void addIdentifier(Identifier identifier)
Add the identifier- Specified by:
addIdentifierin interfaceIdentifiable- Parameters:
identifier- identifier
-
addIdentifiers
public void addIdentifiers(List<Identifier> identifiers)
Add the identifiers- Specified by:
addIdentifiersin interfaceIdentifiable- Parameters:
identifiers- identifiers
-
numAxes
public int numAxes()
Number of axes- Returns:
- axes count
-
getAxis
public Axis getAxis(int index)
Get the axis at the index- Parameters:
index- axis index- Returns:
- axis
-
addAxis
public void addAxis(Axis axis)
Add the axis- Parameters:
axis- axis
-
getUnit
public Unit getUnit()
Get the unit- Returns:
- unit
-
hasUnit
public boolean hasUnit()
Has a unit- Returns:
- true if has unit
-
setUnit
public void setUnit(Unit unit)
Set the unit- Parameters:
unit- unit
-
getAxisUnit
public Unit getAxisUnit()
Get the axis unit, either the CS unit or first axis with unit- Returns:
- unit
-
-