Package org.opt4j.config.visualization
Class Configurator
- java.lang.Object
-
- org.opt4j.config.visualization.Configurator
-
- Direct Known Subclasses:
Opt4J
public class Configurator extends Object
TheConfigurator
configures the modules and starts the specificApplicationFrame
.- See Also:
ApplicationFrame
-
-
Constructor Summary
Constructors Constructor Description Configurator()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description com.google.inject.Module
getModule(Class<? extends Task> taskClass)
Returns the module for theConfigurator
.void
main(Class<? extends Task> taskClass, String filename)
Starts theConfigurator
with the specified task class and the file to be loaded.static void
main(String[] args)
Starts theConfigurator
.void
start(String[] args)
Starts theConfigurator
.
-
-
-
Method Detail
-
main
public static void main(String[] args) throws Exception
Starts theConfigurator
.- Parameters:
args
- specify one or more input configuration files to be loaded- Throws:
Exception
-
start
public void start(String[] args) throws ClassNotFoundException
Starts theConfigurator
.- Parameters:
args
- the input configuration files to be loaded- Throws:
ClassNotFoundException
-
getModule
public com.google.inject.Module getModule(Class<? extends Task> taskClass)
Returns the module for theConfigurator
.- Parameters:
taskClass
- the task class- Returns:
- the module
-
main
public void main(Class<? extends Task> taskClass, String filename)
Starts theConfigurator
with the specified task class and the file to be loaded.- Parameters:
taskClass
- the task classfilename
- the filename of the configuration file to be loaded
-
-