public class Kernel_Utilities
extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
static java.lang.String |
ID
Class identification name with source code version and date.
|
Modifier and Type | Method and Description |
---|---|
static boolean |
areKernelsLoaded()
Tests if any kernels are loaded.
|
static java.util.List<java.lang.String> |
getLoadedKernels()
Gets a list of kernels loaded.
|
static java.util.List<java.lang.String> |
getStateFileKernels(java.lang.String stateFilePathname,
boolean timeKernelsOnly)
Gets the list of kernel names from the named MTT state file.
|
static java.lang.String |
getToolkitVersion()
Gets the version of the SPICE toolkit used to build the JSPICE library.
|
static boolean |
isKernelLoaded(java.lang.String kernelPathname)
Tests if a particular kernel is loaded.
|
static java.util.ArrayList<java.lang.String> |
kernel_list()
Deprecated.
use
getLoadedKernels() instead. |
static boolean |
kernel_loaded(java.lang.String kernelPathname)
Deprecated.
use
isKernelLoaded(String) instead. |
static boolean |
kernels_loaded()
Deprecated.
use
areKernelsLoaded() instead. |
static void |
load_from_state_file(java.lang.String stateFilePathname)
Deprecated.
use loadKernelsFromStateFIle(String) instead.
|
static void |
load_from_state_file(java.lang.String stateFilePathname,
boolean timeKernelsOnly)
Deprecated.
use
loadKernelsFromStateFile(String, boolean) instead. |
static void |
load_kernel(java.lang.String kernelPathname)
Deprecated.
use
loadKernel(String) instead. |
static void |
loadKernel(java.lang.String kernelPathname)
Loads a named kernel into the SPICE system.
|
static void |
loadKernelsFromStateFile(java.lang.String stateFilePathname)
Loads the SPICE kernels named in an MTT state file.
|
static void |
loadKernelsFromStateFile(java.lang.String stateFilePathname,
boolean timeKernelsOnly)
Loads the SPICE kernels named in an MTT state file.
|
static java.util.ArrayList<java.lang.String> |
state_file_kernels(java.lang.String stateFilePathname,
boolean timeKernelsOnly)
Deprecated.
use
getStateFileKernels(String,boolean) instead. |
static java.lang.String |
toolkit_version()
Deprecated.
use
getToolkitVersion() instead. |
static void |
unload_all_kernels()
Deprecated.
use
unloadAllKernels() instead. |
static void |
unload_kernel(java.lang.String kernelPathname)
Deprecated.
use
unloadKernel(String) instead. |
static void |
unload_state_file(java.lang.String stateFilePathname)
Deprecated.
use
unloadKernelsFromStateFile(String) instead. |
static void |
unloadAllKernels()
Unloads all kernels from the SPICE system.
|
static void |
unloadKernel(java.lang.String kernelPathname)
Unloads a named kernel from the SPICE system.
|
static void |
unloadKernelsFromStateFile(java.lang.String stateFilePathname)
Unloads the SPICE kernels named in an MTT state file.
|
public static final java.lang.String ID
public static java.lang.String getToolkitVersion()
public static void loadKernel(java.lang.String kernelPathname) throws SPICE_Exception
kernel_loaded(java.lang.String)
) it will not be loaded again. Note
that a kernel is identified uniquely by its full pathname, not by its
filename.kernelPathname
- the pathname of the kernel to load.SPICE_Exception
- if there is a problem loading the kernel.public static void unloadKernel(java.lang.String kernelPathname)
kernelPathname
- the pathname of the kernel to unload.public static void unloadAllKernels()
public static void loadKernelsFromStateFile(java.lang.String stateFilePathname, boolean timeKernelsOnly) throws java.io.IOException, SPICE_Exception
If a kernel is already loaded, it will not be loaded again.
stateFilePathname
- the name of the MTT state file to load.timeKernelsOnly
- if true, only time-related kernels are
loaded; otherwise all kernels are loaded.java.io.IOException
- if there is a problem reading the state file.SPICE_Exception
- if there is a problem loading the kernels.public static void loadKernelsFromStateFile(java.lang.String stateFilePathname) throws java.io.IOException, SPICE_Exception
load_from_state_file(String,boolean)
with timeKernelsOnly set
to false.
If a kernel is already loaded, it will not be loaded again.
stateFilePathname
- the name of the MTT state file to load.java.io.IOException
- if there is a problem reading the state file.SPICE_Exception
- if there is a problem loading the kernels.public static void unloadKernelsFromStateFile(java.lang.String stateFilePathname) throws java.io.IOException
stateFilePathname
- the name of the MTT state file to unload.java.io.IOException
- if there is a problem reading the state file.public static java.util.List<java.lang.String> getStateFileKernels(java.lang.String stateFilePathname, boolean timeKernelsOnly) throws java.io.IOException
stateFilePathname
- the name of the MTT state file.timeKernelsOnly
- if true, only time-related kernels are
considered; otherwise all kernels are considered.java.io.IOException
- if there is a problem reading the state file.public static boolean areKernelsLoaded()
public static boolean isKernelLoaded(java.lang.String kernelPathname)
kernelPathname
- the pathname of the kernel in question.public static java.util.List<java.lang.String> getLoadedKernels()
@Deprecated public static java.lang.String toolkit_version()
getToolkitVersion()
instead.@Deprecated public static void load_kernel(java.lang.String kernelPathname) throws SPICE_Exception
loadKernel(String)
instead.SPICE_Exception
@Deprecated public static void unload_kernel(java.lang.String kernelPathname)
unloadKernel(String)
instead.@Deprecated public static void unload_all_kernels()
unloadAllKernels()
instead.@Deprecated public static void load_from_state_file(java.lang.String stateFilePathname, boolean timeKernelsOnly) throws java.io.IOException, SPICE_Exception
loadKernelsFromStateFile(String, boolean)
instead.java.io.IOException
SPICE_Exception
@Deprecated public static void load_from_state_file(java.lang.String stateFilePathname) throws java.io.IOException, SPICE_Exception
java.io.IOException
SPICE_Exception
@Deprecated public static void unload_state_file(java.lang.String stateFilePathname) throws java.io.IOException
unloadKernelsFromStateFile(String)
instead.java.io.IOException
@Deprecated public static java.util.ArrayList<java.lang.String> state_file_kernels(java.lang.String stateFilePathname, boolean timeKernelsOnly) throws java.io.IOException
getStateFileKernels(String,boolean)
instead.java.io.IOException
@Deprecated public static boolean kernels_loaded()
areKernelsLoaded()
instead.@Deprecated public static boolean kernel_loaded(java.lang.String kernelPathname)
isKernelLoaded(String)
instead.@Deprecated public static java.util.ArrayList<java.lang.String> kernel_list()
getLoadedKernels()
instead.Copyright \ (C) Arizona Board of Regents on behalf of the \ Planetary Image Research Laboratory, Lunar and \ Planetary Laboratory at the University of Arizona