JNISpice
version 2.0.0

spice.basic
Class IDMap

java.lang.Object
  extended by 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
IDMap()
           
 
Method Summary
abstract  IDMap deepCopy()
          Return a deep copy of an IDMap instance.
abstract  int getIDCode()
          Return the ID code belonging to a name-ID pair.
abstract  java.lang.String getName()
          Return the name belonging to a name-ID pair.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

IDMap

public IDMap()
Method Detail

getName

public abstract java.lang.String getName()
                                  throws SpiceException
Return the name belonging to a name-ID pair.

Throws:
SpiceException

getIDCode

public abstract int getIDCode()
                       throws SpiceException
Return the ID code belonging to a name-ID pair.

Throws:
SpiceException

deepCopy

public abstract IDMap deepCopy()
                        throws SpiceException
Return a deep copy of an IDMap instance.

Throws:
SpiceException

JNISpice
version 2.0.0

JNISpice Alpha Test Version 2.0.0 28-JAN-2017 (NJB)