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 void
addAxes(List<Axis> axes)
Add the axesvoid
addAxis(Axis axis)
Add the axisvoid
addIdentifier(Identifier identifier)
Add the identifiervoid
addIdentifiers(List<Identifier> identifiers)
Add the identifiersboolean
equals(Object obj)
List<Axis>
getAxes()
Get the axesAxis
getAxis(int index)
Get the axis at the indexUnit
getAxisUnit()
Get the axis unit, either the CS unit or first axis with unitint
getDimension()
Get the dimensionIdentifier
getIdentifier(int index)
Get the identifier at the indexList<Identifier>
getIdentifiers()
Get the identifiersCoordinateSystemType
getType()
Get the typeUnit
getUnit()
Get the unitint
hashCode()
boolean
hasIdentifiers()
Has identifiersboolean
hasUnit()
Has a unitint
numAxes()
Number of axesint
numIdentifiers()
Number of identifiersvoid
setAxes(List<Axis> axes)
Set the axesvoid
setDimension(int dimension)
Set the dimensionvoid
setIdentifiers(List<Identifier> identifiers)
Set the identifiersvoid
setType(CoordinateSystemType type)
Set the typevoid
setUnit(Unit unit)
Set the unitString
toString()
-
-
-
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:
getIdentifiers
in interfaceIdentifiable
- Returns:
- identifiers
-
hasIdentifiers
public boolean hasIdentifiers()
Has identifiers- Specified by:
hasIdentifiers
in interfaceIdentifiable
- Returns:
- true if has identifiers
-
numIdentifiers
public int numIdentifiers()
Number of identifiers- Specified by:
numIdentifiers
in interfaceIdentifiable
- Returns:
- identifiers count
-
getIdentifier
public Identifier getIdentifier(int index)
Get the identifier at the index- Specified by:
getIdentifier
in interfaceIdentifiable
- Parameters:
index
- identifier index- Returns:
- identifier
-
setIdentifiers
public void setIdentifiers(List<Identifier> identifiers)
Set the identifiers- Specified by:
setIdentifiers
in interfaceIdentifiable
- Parameters:
identifiers
- identifiers
-
addIdentifier
public void addIdentifier(Identifier identifier)
Add the identifier- Specified by:
addIdentifier
in interfaceIdentifiable
- Parameters:
identifier
- identifier
-
addIdentifiers
public void addIdentifiers(List<Identifier> identifiers)
Add the identifiers- Specified by:
addIdentifiers
in 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
-
-