com.jstatcom.engine.grte
Class GRTEType
- java.lang.Object
-
- com.jstatcom.engine.EngineTypes
-
- com.jstatcom.engine.grte.GRTEType
-
public final class GRTEType extends EngineTypes
GRTETypeholds information about theGRTEngineand works as a factory to create an instance of a GRTE workspace. It is a Singleton.
-
-
Field Summary
Fields Modifier and Type Field and Description static GRTETypeINSTANCETo 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 theGRTEngine.java.util.Map<java.lang.String,ConfigKeys>getConfigKeys()Gets a map with all config keys for that specific engine.EnginegetEngine()Gets a concrete implementation of theEngineinterface.-
Methods inherited from class com.jstatcom.engine.EngineTypes
checkConfig, engineIterator, equals, getConfigFile, getConfigPanel, hashCode, toString, valueOf
-
-
-
-
Field Detail
-
INSTANCE
public static final GRTEType INSTANCE
To enforce the Singleton property of this class.
-
-
Method Detail
-
checkSettings
public java.lang.String checkSettings(ConfigHolder configHolder)
Checks the validity of the configuration for theGRTEngine.- 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
-
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