com.jstatcom.engine.gauss
Class GaussEngineType
- java.lang.Object
-
- com.jstatcom.engine.EngineTypes
-
- com.jstatcom.engine.gauss.GaussEngineType
-
public final class GaussEngineType extends EngineTypes
GaussEngineTypeholds information about theGaussEngineand works as a factory to create an instance of GAUSS. It is a Singleton.
-
-
Field Summary
Fields Modifier and Type Field and Description static GaussEngineTypeINSTANCETo enforce the Singleton property of this class.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method and Description java.lang.StringcheckSettings(ConfigHolder configHolder)Checks the validity of the configuration for theGaussEngine.java.util.Map<java.lang.String,ConfigKeys>getConfigKeys()Gets a map with all config keys for that specific engine.AbstractConfigPanelgetConfigPanel()Gets the configuration panel for the respective engine.EnginegetEngine()Gets a concrete implementation of theEngineinterface.java.io.FilegetTempFile()Gets a unique temporary file.-
Methods inherited from class com.jstatcom.engine.EngineTypes
checkConfig, engineIterator, equals, getConfigFile, hashCode, toString, valueOf
-
-
-
-
Field Detail
-
INSTANCE
public static final GaussEngineType INSTANCE
To enforce the Singleton property of this class.
-
-
Method Detail
-
getTempFile
public java.io.File getTempFile()
Gets a unique temporary file. The file is created by this method in the temporary directory specified for the respective engine. The prefix is"jsc". It will automatically be deleted when the VM exits normally.- Returns:
- the name of a temporary file
- Throws:
java.lang.RuntimeException- if the file could not be created
-
checkSettings
public java.lang.String checkSettings(ConfigHolder configHolder)
Checks the validity of the configuration for theGaussEngine.- Specified by:
checkSettingsin classEngineTypes- Parameters:
configHolder- the config settings to check- Returns:
nullif ok, error string otherwise- Throws:
java.lang.IllegalArgumentException-if (configHolder == null)- See Also:
EngineTypes
-
getConfigKeys
public java.util.Map<java.lang.String,ConfigKeys> getConfigKeys()
Description copied from class:EngineTypesGets a map with all config keys for that specific engine.Example:
Implementations of aFooengine this class could use:return ConfigKeys.getAllKeys(FooConfigKeys.class);where
Foostands for the name of the engine andFooConfigKeysis the engine specific implementation ofConfigKeys.- Specified by:
getConfigKeysin classEngineTypes- Returns:
Mapcontaining theConfigKeyswith the respective names as keys- See Also:
EngineTypes
-
getConfigPanel
public AbstractConfigPanel getConfigPanel()
Description copied from class:EngineTypesGets the configuration panel for the respective engine. This default implementation creates an edit dialog for the XML file. It works for all settings. This can be overwritten to provide a costumized settings dialogs for a specific engine.- Overrides:
getConfigPanelin classEngineTypes- Returns:
- the user panel containing the user input mask for configuration
- See Also:
EngineTypes
-
getEngine
public Engine getEngine()
Description copied from class:EngineTypesGets a concrete implementation of theEngineinterface.- Specified by:
getEnginein classEngineTypes- Returns:
- engine that is initialized and ready to run
- See Also:
EngineTypes
-
-
DMelt 3.0 © DataMelt by jWork.ORG