|
|||||||||
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 String |
MIRAGE_CLASS
Name of the main Mirage application class. |
static 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,
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(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 String MIRAGE_CLASS
public static final String MIRAGE_CLASSPATH_PROP
MIRAGE_CLASS
class.
Constructor Detail |
---|
public MirageDriver()
Method Detail |
---|
public static void main(String[] args) throws IOException, Exception
args
- flags and names of the StarTables to pass to Mirage
IOException
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, List margs) throws ClassNotFoundException, Exception
table
- the StarTable to pass to Miragemargs
- a list of other arguments (Strings) to pass as arguments
to Mirage
ClassNotFoundException
- if isMirageAvailable()
returns false
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 |