|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--fdda.plugins.xmlreader.AlgorithmReader
Reads information about an algorithm from an XML file according to 'algorithm.dtd'. Loads the associated classes.
Field Summary | |
static String |
ALGORITHM_DEFAULT_PATH
the default default path to algorithms |
static String |
ALGORITHM_PATH_OPTION
preference option for the default path to algorithms |
Fields inherited from interface fdda.plugins.Plugin |
ALGORITHM_READER, SYSTEM_READER, SYSTEM_WRITER |
Constructor Summary | |
AlgorithmReader()
|
Method Summary | |
void |
configure()
This method is used to configure the plug-in by user interaction. |
String |
getName()
Returns the name of the plug-in. |
int |
getType()
Returns the type of the plug-in (one of the constants of this interface) |
boolean |
hasOptions()
Returns whether this plug-in can be configured by a call to configure() |
void |
searchForAlgorithms(ErrorHandler errorHandler)
Searches in its storage location for algorithms and loads them into the instance of fdda.algorithms.Algorithms. |
void |
useDialog(String component)
Tells the plug-in to use the specified dialog component for its interactions with the user. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
public static final String ALGORITHM_PATH_OPTION
public static final String ALGORITHM_DEFAULT_PATH
Constructor Detail |
public AlgorithmReader()
Method Detail |
public String getName()
Plugin
getName
in interface Plugin
public int getType()
Plugin
getType
in interface Plugin
public boolean hasOptions()
Plugin
hasOptions
in interface Plugin
public void useDialog(String component) throws ComponentNotSupportedException
Plugin
useDialog
in interface Plugin
component
- name of the dialog component (e.g. "swing")
ComponentNotSupportedException
- if the plug-in can't use this
componentpublic void configure()
Plugin
configure
in interface Plugin
public void searchForAlgorithms(ErrorHandler errorHandler)
AlgorithmLoader
searchForAlgorithms
in interface AlgorithmLoader
errorHandler
- object that handles errors
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |