Module JNISpice
Package spice.basic

Class 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 Summary

      Modifier and Type Method Description
      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.
        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