Package mil.nga.crs.common
Class DatumEnsemble
- java.lang.Object
-
- mil.nga.crs.common.DatumEnsemble
-
- All Implemented Interfaces:
Identifiable
- Direct Known Subclasses:
GeoDatumEnsemble
,VerticalDatumEnsemble
public abstract class DatumEnsemble extends Object implements Identifiable
Datum Ensemble- Author:
- osbornb
-
-
Constructor Summary
Constructors Constructor Description DatumEnsemble()
ConstructorDatumEnsemble(String name, List<DatumEnsembleMember> members, double accuracy)
ConstructorDatumEnsemble(String name, List<DatumEnsembleMember> members, String accuracy)
ConstructorDatumEnsemble(String name, DatumEnsembleMember member, double accuracy)
ConstructorDatumEnsemble(String name, DatumEnsembleMember member, String accuracy)
Constructor
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
addIdentifier(Identifier identifier)
Add the identifiervoid
addIdentifiers(List<Identifier> identifiers)
Add the identifiersvoid
addMember(DatumEnsembleMember member)
Add the membervoid
addMembers(List<DatumEnsembleMember> members)
Add the membersboolean
equals(Object obj)
double
getAccuracy()
Get the accuracyString
getAccuracyText()
Get the accuracy textIdentifier
getIdentifier(int index)
Get the identifier at the indexList<Identifier>
getIdentifiers()
Get the identifiersDatumEnsembleMember
getMember(int index)
Get the member at the indexList<DatumEnsembleMember>
getMembers()
Get the membersString
getName()
Get the nameint
hashCode()
boolean
hasIdentifiers()
Has identifiersint
numIdentifiers()
Number of identifiersint
numMembers()
Number of membersvoid
setAccuracy(double accuracy)
Set the accuracyvoid
setAccuracy(String accuracy)
Set the accuracyvoid
setIdentifiers(List<Identifier> identifiers)
Set the identifiersvoid
setMembers(List<DatumEnsembleMember> members)
Set the membersvoid
setName(String name)
Set the nameString
toString()
-
-
-
Constructor Detail
-
DatumEnsemble
public DatumEnsemble()
Constructor
-
DatumEnsemble
public DatumEnsemble(String name, DatumEnsembleMember member, double accuracy)
Constructor- Parameters:
name
- namemember
- memberaccuracy
- accuracy
-
DatumEnsemble
public DatumEnsemble(String name, DatumEnsembleMember member, String accuracy)
Constructor- Parameters:
name
- namemember
- memberaccuracy
- accuracy- Since:
- 1.1.0
-
DatumEnsemble
public DatumEnsemble(String name, List<DatumEnsembleMember> members, double accuracy)
Constructor- Parameters:
name
- namemembers
- membersaccuracy
- accuracy
-
DatumEnsemble
public DatumEnsemble(String name, List<DatumEnsembleMember> members, String accuracy)
Constructor- Parameters:
name
- namemembers
- membersaccuracy
- accuracy- Since:
- 1.1.0
-
-
Method Detail
-
getName
public String getName()
Get the name- Returns:
- name
-
setName
public void setName(String name)
Set the name- Parameters:
name
- name
-
getMembers
public List<DatumEnsembleMember> getMembers()
Get the members- Returns:
- members
-
numMembers
public int numMembers()
Number of members- Returns:
- members count
-
getMember
public DatumEnsembleMember getMember(int index)
Get the member at the index- Parameters:
index
- member index- Returns:
- member
-
setMembers
public void setMembers(List<DatumEnsembleMember> members)
Set the members- Parameters:
members
- members
-
addMember
public void addMember(DatumEnsembleMember member)
Add the member- Parameters:
member
- member
-
addMembers
public void addMembers(List<DatumEnsembleMember> members)
Add the members- Parameters:
members
- members
-
getAccuracy
public double getAccuracy()
Get the accuracy- Returns:
- accuracy
-
getAccuracyText
public String getAccuracyText()
Get the accuracy text- Returns:
- accuracy text
- Since:
- 1.1.0
-
setAccuracy
public void setAccuracy(double accuracy)
Set the accuracy- Parameters:
accuracy
- accuracy
-
setAccuracy
public void setAccuracy(String accuracy)
Set the accuracy- Parameters:
accuracy
- accuracy- Since:
- 1.1.0
-
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
-
-