|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectuk.ac.starlink.mirage.MirageDriver
public class MirageDriver
Main application class for the StarTable Mirage front-end.
The class named by MIRAGE_CLASS
must be on the JVM's classpath
in order for this to work. No Mirage components need to be available
during compilation or distribution of this code however.
This is desirable since Mirage is distributed under a more restrictive
licence than the GPL.
Field Summary | |
---|---|
static java.lang.String |
MIRAGE_CLASS
Name of the main Mirage application class. |
static java.lang.String |
MIRAGE_CLASSPATH_PROP
Name of the property used to locate the MIRAGE_CLASS class. |
Constructor Summary | |
---|---|
MirageDriver()
|
Method Summary | |
---|---|
static void |
invokeMirage(StarTable table,
java.util.List margs)
Invokes the Mirage application on a StarTable object. |
static boolean |
isMirageAvailable()
Indicates whether the Mirage application is available in this JVM. |
static void |
main(java.lang.String[] args)
Invoke the Mirage application on a list of named StarTables. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public static final java.lang.String MIRAGE_CLASS
public static final java.lang.String MIRAGE_CLASSPATH_PROP
MIRAGE_CLASS
class.
Constructor Detail |
---|
public MirageDriver()
Method Detail |
---|
public static void main(java.lang.String[] args) throws java.io.IOException, java.lang.Exception
args
- flags and names of the StarTables to pass to Mirage
java.io.IOException
java.lang.Exception
public static boolean isMirageAvailable()
invokeMirage(uk.ac.starlink.table.StarTable, java.util.List)
method will only work if this method
returns true.
public static void invokeMirage(StarTable table, java.util.List margs) throws java.lang.ClassNotFoundException, java.lang.Exception
table
- the StarTable to pass to Miragemargs
- a list of other arguments (Strings) to pass as arguments
to Mirage
java.lang.ClassNotFoundException
- if isMirageAvailable()
returns false
java.lang.Exception
|
Copyright © 2004 CLRC: Central Laboratory of the Research Councils. All rights reserved. | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |