Class Configurator
- java.lang.Object
-
- org.opt4j.core.config.visualization.Configurator
-
- Direct Known Subclasses:
Opt4J
public class Configurator extends java.lang.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(java.lang.Class<? extends Task> taskClass)
Returns the module for theConfigurator
.void
main(java.lang.Class<? extends Task> taskClass, java.lang.String filename)
Starts theConfigurator
with the specified task class and the file to be loaded.static void
main(java.lang.String[] args)
Starts theConfigurator
.void
start(java.lang.String[] args)
Starts theConfigurator
.
-
-
-
Method Detail
-
main
public static void main(java.lang.String[] args) throws java.lang.Exception
Starts theConfigurator
.- Parameters:
args
- specify one or more input configuration files to be loaded- Throws:
java.lang.Exception
-
start
public void start(java.lang.String[] args) throws java.lang.ClassNotFoundException
Starts theConfigurator
.- Parameters:
args
- the input configuration files to be loaded- Throws:
java.lang.ClassNotFoundException
-
getModule
public com.google.inject.Module getModule(java.lang.Class<? extends Task> taskClass)
Returns the module for theConfigurator
.- Parameters:
taskClass
- the task class- Returns:
- the module
-
main
public void main(java.lang.Class<? extends Task> taskClass, java.lang.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
-
-