weka4ws.service.impl
Class WUtil
java.lang.Object
weka4ws.service.impl.WUtil
- public class WUtil
- extends java.lang.Object
A collection of static methods and fields useful for Weka4WS Explorer and
Knowledge Flow component.
- Version:
- $Revision: 1.0 $
- Author:
- Oreste Verta, Marco Lackovic
Constructor Summary |
WUtil()
|
Method Summary |
static void |
copyFile(java.io.File in,
java.io.File out)
|
static java.lang.Object |
getObjFromStr(java.lang.String modelString)
|
static java.lang.String |
getStrFromObj(java.lang.Object model)
|
static java.lang.String |
saveWorkingInstancesToFile(java.lang.String originalFilePath,
weka.core.Instances instances)
Saves the instances in a file, located in the user's hidden subfolder
named ".Weka4WS", having the name of the original dataset plus (for
uniquity) the number of milliseconds since January 1, 1970. |
static void |
setLogging(boolean logging)
|
static void |
waitForAnyKeyToContinue()
|
Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
VERSION
public static java.lang.String VERSION
logging
public static boolean logging
WUtil
public WUtil()
copyFile
public static void copyFile(java.io.File in,
java.io.File out)
throws java.lang.Exception
- Throws:
java.lang.Exception
saveWorkingInstancesToFile
public static java.lang.String saveWorkingInstancesToFile(java.lang.String originalFilePath,
weka.core.Instances instances)
- Saves the instances in a file, located in the user's hidden subfolder
named ".Weka4WS", having the name of the original dataset plus (for
uniquity) the number of milliseconds since January 1, 1970.
getObjFromStr
public static java.lang.Object getObjFromStr(java.lang.String modelString)
getStrFromObj
public static java.lang.String getStrFromObj(java.lang.Object model)
waitForAnyKeyToContinue
public static void waitForAnyKeyToContinue()
throws java.io.IOException
- Throws:
java.io.IOException
setLogging
public static void setLogging(boolean logging)