Documentation of 'org.jgap.distr.grid.gp.JGAPClientGP' Java class
JGAPClientGP
org.jgap.distr.grid.gp

Class JGAPClientGP

  • All Implemented Interfaces:
    java.lang.Runnable


    public class JGAPClientGP
    extends java.lang.Thread
    A client defines work for the grid and sends it to the JGAPServer. Use this class as base class for your grid client implementations.
    Since:
    3.2
    • Nested Class Summary

      • Nested classes/interfaces inherited from class java.lang.Thread

        java.lang.Thread.State, java.lang.Thread.UncaughtExceptionHandler
    • Constructor Summary

      Constructors 
      Constructor and Description
      JGAPClientGP(org.homedns.dade.jcgrid.client.GridNodeClientConfig a_gridconfig, java.lang.String a_clientClassName, boolean a_WANMode, boolean a_receiveOnly, boolean a_list, boolean a_no_comm, boolean a_no_evolution, boolean a_endless, int a_max_fetch_results) 
      JGAPClientGP(IGridClientMediator a_gcmed, org.homedns.dade.jcgrid.client.GridNodeClientConfig a_gridconfig, java.lang.String a_clientClassName, boolean a_WANMode, boolean a_receiveOnly, boolean a_list, boolean a_no_comm, boolean a_no_evolution, boolean a_endless, int a_max_fetch_results) 
    • Method Summary

      All Methods Static Methods Instance Methods Concrete Methods 
      Modifier and Type Method and Description
      GPConfiguration getConfiguration() 
      java.lang.String[] getFilenames(java.lang.String a_dir) 
      IGridClientMediator getGridClientMediator() 
      int getMaxFetchResults() 
      java.lang.String getWorkDirectory() 
      boolean isNoCommunication() 
      static void main(java.lang.String[] args)
      Starts a client (first parameter: name of specific setup class).
      void run()
      Threaded: Splits work, sends it to workers and receives computed solutions.
      void setWorkDirectory(java.lang.String a_workDir) 
      void setWorkRequest(JGAPRequestGP a_request) 
      void start() 
      void writeToFile(java.lang.Object a_obj, java.lang.String a_dir, java.lang.String a_filename)
      Writes an object to a local file.
      • 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
      • Methods inherited from class java.lang.Object

        equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
    • Constructor Detail

      • JGAPClientGP

        public JGAPClientGP(org.homedns.dade.jcgrid.client.GridNodeClientConfig a_gridconfig,
                            java.lang.String a_clientClassName,
                            boolean a_WANMode,
                            boolean a_receiveOnly,
                            boolean a_list,
                            boolean a_no_comm,
                            boolean a_no_evolution,
                            boolean a_endless,
                            int a_max_fetch_results)
                     throws java.lang.Exception
        Throws:
        java.lang.Exception
      • JGAPClientGP

        public JGAPClientGP(IGridClientMediator a_gcmed,
                            org.homedns.dade.jcgrid.client.GridNodeClientConfig a_gridconfig,
                            java.lang.String a_clientClassName,
                            boolean a_WANMode,
                            boolean a_receiveOnly,
                            boolean a_list,
                            boolean a_no_comm,
                            boolean a_no_evolution,
                            boolean a_endless,
                            int a_max_fetch_results)
                     throws java.lang.Exception
        Throws:
        java.lang.Exception
    • Method Detail

      • setWorkRequest

        public void setWorkRequest(JGAPRequestGP a_request)
      • run

        public void run()
        Threaded: Splits work, sends it to workers and receives computed solutions.
        Specified by:
        run in interface java.lang.Runnable
        Overrides:
        run in class java.lang.Thread
        Since:
        3.01
      • start

        public void start()
        Overrides:
        start in class java.lang.Thread
      • writeToFile

        public void writeToFile(java.lang.Object a_obj,
                                java.lang.String a_dir,
                                java.lang.String a_filename)
                         throws java.lang.Exception
        Writes an object to a local file.
        Parameters:
        a_obj - the object to persist
        a_dir - directory to write the file to
        a_filename - name of the file to create
        Throws:
        java.lang.Exception
        Since:
        3.3.3
      • setWorkDirectory

        public void setWorkDirectory(java.lang.String a_workDir)
                              throws java.io.IOException
        Throws:
        java.io.IOException
      • getWorkDirectory

        public java.lang.String getWorkDirectory()
      • isNoCommunication

        public boolean isNoCommunication()
        Returns:
        false: normal mode, true: do not communicate with the server
        Since:
        3.3.3
      • 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
      • getFilenames

        public java.lang.String[] getFilenames(java.lang.String a_dir)
                                        throws java.lang.Exception
        Throws:
        java.lang.Exception
      • getMaxFetchResults

        public int getMaxFetchResults()

DMelt 3.0 © DataMelt by jWork.ORG

You see the box below because you did not login.