adams.flow.webservice
Class WekaServiceWS

java.lang.Object
  extended by adams.core.ConsoleObject
      extended by adams.core.option.AbstractOptionHandler
          extended by adams.flow.webservice.AbstractWebServiceProvider
              extended by adams.flow.webservice.WekaServiceWS
All Implemented Interfaces:
Debuggable, Destroyable, OptionHandler, SizeOfHandler, WebServiceProvider, Serializable

public class WekaServiceWS
extends AbstractWebServiceProvider

Webservice for WEKA.

Version:
$Revision$
Author:
msf8, Fracpete (fracpete at waikato dot ac dot nz)
See Also:
Serialized Form

Field Summary
protected  int m_ClassifierCacheSize
          the number of classifiers to store in cache.
protected  int m_ClustererCacheSize
          the number of clusterers to store in cache.
protected  org.apache.cxf.jaxws.EndpointImpl m_Endpoint
          end point for the web service
protected  WekaService m_Implementation
          the webservice implementation to use.
 
Fields inherited from class adams.flow.webservice.AbstractWebServiceProvider
m_Owner, m_URL
 
Fields inherited from class adams.core.option.AbstractOptionHandler
m_DebugLevel, m_OptionManager
 
Constructor Summary
WekaServiceWS()
           
 
Method Summary
 String classifierCacheSizeTipText()
          Description of this option
 String clustererCacheSizeTipText()
          Description of this option
 void defineOptions()
          Adds options to the internal list of options.
protected  void doStart()
          Performs the actual start of the service.
protected  void doStop()
          Performs the actual stop of the service.
 int getClassifierCacheSize()
          Get the number of folds used for the cross validation
 int getClustererCacheSize()
          Get the number of folds used for the cross validation
 String getDefaultURL()
          Returns the default URL for the service.
 WekaService getImplementation()
          Returns the webservice implementation to use.
 String globalInfo()
          Returns a string describing the object.
 String implementationTipText()
          Description of this option.
 void setClassifierCacheSize(int value)
          Sets the number of classifiers to keep in memory.
 void setClustererCacheSize(int value)
          Sets the number of clusterers to keep in memory.
 void setImplementation(WekaService value)
          Sets the webservice implementation to use.
 
Methods inherited from class adams.flow.webservice.AbstractWebServiceProvider
check, getOwner, getURL, log, setOwner, setURL, start, stop, URLTipText
 
Methods inherited from class adams.core.option.AbstractOptionHandler
cleanUpOptions, debug, debug, debugLevelTipText, destroy, finishInit, getDebugLevel, getOptionManager, initialize, isDebugOn, newOptionManager, reset, setDebugLevel, toCommandLine, toString
 
Methods inherited from class adams.core.ConsoleObject
getDebugging, getSystemErr, getSystemOut, sizeOf
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

m_Endpoint

protected org.apache.cxf.jaxws.EndpointImpl m_Endpoint
end point for the web service


m_Implementation

protected WekaService m_Implementation
the webservice implementation to use.


m_ClassifierCacheSize

protected int m_ClassifierCacheSize
the number of classifiers to store in cache.


m_ClustererCacheSize

protected int m_ClustererCacheSize
the number of clusterers to store in cache.

Constructor Detail

WekaServiceWS

public WekaServiceWS()
Method Detail

globalInfo

public String globalInfo()
Returns a string describing the object.

Specified by:
globalInfo in class AbstractOptionHandler
Returns:
a description suitable for displaying in the gui

defineOptions

public void defineOptions()
Adds options to the internal list of options.

Specified by:
defineOptions in interface OptionHandler
Overrides:
defineOptions in class AbstractWebServiceProvider

getDefaultURL

public String getDefaultURL()
Returns the default URL for the service.

Specified by:
getDefaultURL in class AbstractWebServiceProvider
Returns:
the URL

setImplementation

public void setImplementation(WekaService value)
Sets the webservice implementation to use.

Parameters:
value - the implementation

getImplementation

public WekaService getImplementation()
Returns the webservice implementation to use.

Returns:
the implementation

implementationTipText

public String implementationTipText()
Description of this option.

Returns:
the description for the GUI

setClassifierCacheSize

public void setClassifierCacheSize(int value)
Sets the number of classifiers to keep in memory.

Parameters:
value - the number of classifiers to keep

getClassifierCacheSize

public int getClassifierCacheSize()
Get the number of folds used for the cross validation

Returns:
NUmber of folds in the cross validation

classifierCacheSizeTipText

public String classifierCacheSizeTipText()
Description of this option

Returns:
Description of the folds option

setClustererCacheSize

public void setClustererCacheSize(int value)
Sets the number of clusterers to keep in memory.

Parameters:
value - the number of clusterers to keep

getClustererCacheSize

public int getClustererCacheSize()
Get the number of folds used for the cross validation

Returns:
NUmber of folds in the cross validation

clustererCacheSizeTipText

public String clustererCacheSizeTipText()
Description of this option

Returns:
Description of the folds option

doStart

protected void doStart()
                throws Exception
Performs the actual start of the service.

Specified by:
doStart in class AbstractWebServiceProvider
Throws:
Exception - if start fails

doStop

protected void doStop()
               throws Exception
Performs the actual stop of the service.

Specified by:
doStop in class AbstractWebServiceProvider
Throws:
Exception - if stopping fails


Copyright © 2013 University of Waikato, Hamilton, NZ. All Rights Reserved.