org.jgap.distr.grid
Class JGAPClient
- java.lang.Object
-
- java.lang.Thread
-
- org.jgap.distr.grid.JGAPClient
-
- All Implemented Interfaces:
- java.lang.Runnable
public class JGAPClient extends java.lang.ThreadA client defines work for the grid and sends it to the JGAPServer. Use this class to get an idea for your grid client implementation or see the samples under package examples.grid to have templates for a) fitness computation and b) evolution on the worker side.- Since:
- 3.01
-
-
Constructor Summary
Constructors Constructor and Description JGAPClient(org.homedns.dade.jcgrid.client.GridNodeClientConfig a_gridconfig, java.lang.String a_clientClassName)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method and Description ConfigurationgetConfiguration()static voidmain(java.lang.String[] args)Starts a client (first parameter: name of specific setup class).voidrun()Threaded: Splits work, sends it to workers and receives computed solutions.voidsetWorkRequest(JGAPRequest a_request)voidstart()-
Methods inherited from class java.lang.Thread
activeCount, checkAccess, countStackFrames, currentThread, destroy, dumpStack, enumerate, getAllStackTraces, getContextClassLoader, getDefaultUncaughtExceptionHandler, getId, getName, getPriority, getStackTrace, getState, getThreadGroup, getUncaughtExceptionHandler, holdsLock, interrupt, interrupted, isAlive, isDaemon, isInterrupted, join, join, join, resume, setContextClassLoader, setDaemon, setDefaultUncaughtExceptionHandler, setName, setPriority, setUncaughtExceptionHandler, sleep, sleep, stop, stop, suspend, toString, yield
-
-
-
-
Constructor Detail
-
JGAPClient
public JGAPClient(org.homedns.dade.jcgrid.client.GridNodeClientConfig a_gridconfig, java.lang.String a_clientClassName) throws java.lang.Exception- Throws:
java.lang.Exception
-
-
Method Detail
-
setWorkRequest
public void setWorkRequest(JGAPRequest a_request)
-
run
public void run()
Threaded: Splits work, sends it to workers and receives computed solutions.- Specified by:
runin interfacejava.lang.Runnable- Overrides:
runin classjava.lang.Thread- Since:
- 3.01
-
start
public void start()
- Overrides:
startin classjava.lang.Thread
-
getConfiguration
public Configuration getConfiguration()
-
main
public static void main(java.lang.String[] args)
Starts a client (first parameter: name of specific setup class).- Parameters:
args- String[]- Since:
- 3.01
-
-
DMelt 3.0 © DataMelt by jWork.ORG