- java.lang.Object
-
- spice.basic.IDMap
-
- Direct Known Subclasses:
BodyCode
,BodyName
,InstrumentCode
,InstrumentName
,SurfaceIDMap
public abstract class IDMap extends java.lang.Object
Class IDMap is an abstract superclass for JNISpice classes implementing mappings between names and ID codes.Version 2.0.0 26-DEC-2016
Updated to include the deepCopy method.
-
-
Constructor Summary
Constructors Constructor Description IDMap()
-
-
-
Method Detail
-
getName
public abstract java.lang.String getName() throws SpiceException
Return the name belonging to a name-ID pair.- Returns:
- name
- Throws:
SpiceException
- exception
-
getIDCode
public abstract int getIDCode() throws SpiceException
Return the ID code belonging to a name-ID pair.- Returns:
- IDCode
- Throws:
SpiceException
- exception
-
deepCopy
public abstract IDMap deepCopy() throws SpiceException
Return a deep copy of an IDMap instance.- Returns:
- IDMap
- Throws:
SpiceException
- exception
-
-