|
JNISpice version 2.0.0 |
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectspice.basic.Instrument
public class Instrument
Class Instrument is used to represent identities of spacecraft structures or instruments.
This class takes the place of integer ID codes and instrument names used by subroutine interfaces in SPICELIB and CSPICE. However, instrument names and codes are still used to construct Instrument objects: either a name or NAIF integer code must be supplied in order to construct an Instrument.
The copy constructor now uses the stored IDMap instance's deepCopy method, rather than converting the stored instance to an integer ID and using that to create a new instance.
Constructor Summary | |
---|---|
Instrument(Instrument inst)
Construct an Instrument from another Instrument. |
|
Instrument(int code)
Construct an Instrument from an integer code. |
|
Instrument(java.lang.String name)
Construct an Instrument from a instrument name. |
Method Summary | |
---|---|
boolean |
equals(java.lang.Object obj)
Test two Instruments for equality. |
int |
getIDCode()
Return NAIF ID code associated with an Instrument. |
java.lang.String |
getName()
Return name associated with an Instrument. |
SCLK |
getSCLK()
Return SCLK ID associated with an Instrument. |
int |
hashCode()
Return a hash code for this Instrument. |
java.lang.String |
toString()
Return instrument name in String. |
Methods inherited from class java.lang.Object |
---|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public Instrument(java.lang.String name) throws SpiceException
SpiceException
public Instrument(int code) throws SpiceErrorException
SpiceErrorException
public Instrument(Instrument inst) throws SpiceException
SpiceException
Method Detail |
---|
public boolean equals(java.lang.Object obj)
The integer codes of the instruments are used for the comparison.
equals
in class java.lang.Object
public int hashCode()
Note that this method can't throw a SpiceException.
hashCode
in class java.lang.Object
public int getIDCode() throws SpiceException
SpiceException
public java.lang.String getName() throws SpiceException
SpiceException
public java.lang.String toString()
toString
in class java.lang.Object
public SCLK getSCLK() throws SpiceException
SpiceException
|
JNISpice version 2.0.0 |
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |