|
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.DAS
spice.basic.DLA
spice.basic.DSK
public class DSK
Class DSK supports segment-level access to DSK files; this class also provides methods to obtain DSK coverage information and to access DSK subsystem tolerance parameters.
Many SPICE-based user applications won't need to make
direct use of the DSK class. A typical computation involving
DSK data can be performed by loading one or more DSK files
via KernelDatabase.load(java.lang.String)
and then calling high-level
computational methods, for example constructors of class
SurfaceIntercept
.
DSK segment list traversal methods are inherited from
class DLA
.
Methods specific to DSK data type 2 are provided in
class CSPICE
. Additional methods for computations
involving triangular plates are provided in classes
TriangularPlate
and TriangularPlateVertices
.
This class is now derived from the DLA class.
DSK descriptor parameters are now declared in class
DSKDescriptor
.
Data class parameter value SPHCLS was changed to SVFCLS. Data class parameter GENCLS was added.
DSK tolerance keyword parameters are now declared in class
DSKToleranceKey
.
The internal file name is no longer an instance field of this class.
Index parameters were changed from Fortran style (1-based) to Java style (0-based).
Field Summary |
---|
Fields inherited from class spice.basic.DAS |
---|
fileName, handle, readable, writable |
Constructor Summary | |
---|---|
|
DSK()
No-arguments constructor. |
|
DSK(DAS das)
Construct a DSK instance from a DAS instance. |
protected |
DSK(java.lang.String filename)
Construct a DSK instance representing a file. |
Method Summary | |
---|---|
Body[] |
getBodies()
Get the set of Bodies covered by a DSK file. |
DSKDescriptor |
getDSKDescriptor(DLADescriptor dladsc)
Get a DSKDescriptor for a specified DSK segment. |
Surface[] |
getSurfaces(Body b)
Get the set of Surfaces associated with a specified Body in a DSK file. |
static double |
getTolerance(DSKToleranceKey keyword)
Obtain the value of a DSK tolerance parameter. |
static DSK |
openForRead(java.lang.String filename)
Open a DSK file for read access. |
static DSK |
openForWrite(java.lang.String filename)
Open a DSK file for write access. |
static void |
setTolerance(DSKToleranceKey keyword,
double value)
Set the value of a DSK tolerance parameter. |
Methods inherited from class spice.basic.DLA |
---|
beginBackwardSearch, beginForwardSearch, getNext, getPrevious, getSegmentCount, hasNext, hasPrevious |
Methods inherited from class spice.basic.DAS |
---|
addComments, close, deleteComments, getCommentCharacterCount, getCommentRecordCount, getFileName, getHandle, getInternalFileName, isReadable, isWritable, readComments |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
protected DSK(java.lang.String filename) throws SpiceErrorException
User applications will not need to call this
constructor directly. See the methods openForRead(java.lang.String)
and openForWrite(java.lang.String)
.
SpiceErrorException
public DSK()
public DSK(DAS das) throws SpiceException
User applications usually will not need to call this
constructor directly. See the methods openForRead(java.lang.String)
and openForWrite(java.lang.String)
.
SpiceException
Method Detail |
---|
public static DSK openForRead(java.lang.String filename) throws SpiceException
SpiceException
public static DSK openForWrite(java.lang.String filename) throws SpiceException
SpiceException
public DSKDescriptor getDSKDescriptor(DLADescriptor dladsc) throws SpiceException
SpiceException
public Body[] getBodies() throws SpiceException
SpiceException
public Surface[] getSurfaces(Body b) throws SpiceException
SpiceException
public static double getTolerance(DSKToleranceKey keyword) throws SpiceErrorException
SpiceErrorException
public static void setTolerance(DSKToleranceKey keyword, double value) throws SpiceErrorException
SpiceErrorException
|
JNISpice version 2.0.0 |
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |