org.encog
Class Encog
- java.lang.Object
-
- org.encog.Encog
-
public final class Encog extends java.lang.ObjectMain Encog class, does little more than provide version information. Also used to hold the ORM session that Encog uses to work with Hibernate.
-
-
Field Summary
Fields Modifier and Type Field and Description static java.lang.StringCOPYRIGHTThe current engog version, this should be read from the properties.static doubleDEFAULT_DOUBLE_EQUALDefault point at which two doubles are equal.static java.lang.StringDEFAULT_ENCODINGThe default encoding used by Encog.static intDEFAULT_PRECISIONThe default precision to use for compares.static java.lang.StringENCOG_FILE_VERSIONThe encog file version.static java.lang.StringENCOG_VERSIONThe version of the Encog JAR we are working with.static java.lang.StringLICENSEThe current engog version, this should be read from the properties.static java.lang.StringVERSIONThe current engog version, this should be read from the properties.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method and Description voidaddShutdownTask(EncogShutdownTask task)Add a shutdown task.static EncoggetInstance()Get the instance to the singleton.EncogPluginLogging1getLoggingPlugin()java.util.Collection<EncogPluginBase>getPlugins()Get a list of the registered plugins.java.util.Map<java.lang.String,java.lang.String>getProperties()RandomFactorygetRandomFactory()static booleanisOSX()voidregisterPlugin(EncogPluginBase plugin)Register a plugin.voidremoveShutdownTask(EncogShutdownTask task)Remove a shutdown task.voidsetRandomFactory(RandomFactory randomFactory)voidshutdown()Provides any shutdown that Encog may need.voidunregisterPlugin(EncogPluginBase plugin)Unregister a plugin.
-
-
-
Field Detail
-
DEFAULT_ENCODING
public static final java.lang.String DEFAULT_ENCODING
The default encoding used by Encog.- See Also:
- Constant Field Values
-
VERSION
public static final java.lang.String VERSION
The current engog version, this should be read from the properties.- See Also:
- Constant Field Values
-
COPYRIGHT
public static final java.lang.String COPYRIGHT
The current engog version, this should be read from the properties.- See Also:
- Constant Field Values
-
LICENSE
public static final java.lang.String LICENSE
The current engog version, this should be read from the properties.- See Also:
- Constant Field Values
-
DEFAULT_PRECISION
public static final int DEFAULT_PRECISION
The default precision to use for compares.- See Also:
- Constant Field Values
-
DEFAULT_DOUBLE_EQUAL
public static final double DEFAULT_DOUBLE_EQUAL
Default point at which two doubles are equal.- See Also:
- Constant Field Values
-
ENCOG_VERSION
public static final java.lang.String ENCOG_VERSION
The version of the Encog JAR we are working with. Given in the form x.x.x.- See Also:
- Constant Field Values
-
ENCOG_FILE_VERSION
public static final java.lang.String ENCOG_FILE_VERSION
The encog file version. This determines of an encog file can be read. This is simply an integer, that started with zero and is incremented each time the format of the encog data file changes.- See Also:
- Constant Field Values
-
-
Method Detail
-
getInstance
public static Encog getInstance()
Get the instance to the singleton.- Returns:
- The instance.
-
getProperties
public java.util.Map<java.lang.String,java.lang.String> getProperties()
- Returns:
- the properties
-
registerPlugin
public void registerPlugin(EncogPluginBase plugin)
Register a plugin. If this plugin provides a core service, such as calculation or logging, this will remove the old plugin.- Parameters:
plugin- The plugin to register.
-
unregisterPlugin
public void unregisterPlugin(EncogPluginBase plugin)
Unregister a plugin. If you unregister the current logging or calc plugin, a new system one will be created. Encog will crash without a logging or system plugin.- Parameters:
plugin- The plugin.
-
shutdown
public void shutdown()
Provides any shutdown that Encog may need. Currently this shuts down the thread pool.
-
getLoggingPlugin
public EncogPluginLogging1 getLoggingPlugin()
- Returns:
- the loggingPlugin
-
getPlugins
public java.util.Collection<EncogPluginBase> getPlugins()
Get a list of the registered plugins.- Returns:
- The registered plugins.
-
isOSX
public static boolean isOSX()
- Returns:
- True, if running on OSX.
-
getRandomFactory
public RandomFactory getRandomFactory()
- Returns:
- the randomFactory
-
setRandomFactory
public void setRandomFactory(RandomFactory randomFactory)
- Parameters:
randomFactory- the randomFactory to set
-
addShutdownTask
public void addShutdownTask(EncogShutdownTask task)
Add a shutdown task.- Parameters:
task- The shutdown task.
-
removeShutdownTask
public void removeShutdownTask(EncogShutdownTask task)
Remove a shutdown task.- Parameters:
task- The shutdown task.
-
-
DMelt 3.0 © DataMelt by jWork.ORG