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

Class JGAPRequestGP

  • All Implemented Interfaces:
    java.io.Serializable, java.lang.Cloneable, ICloneable


    public class JGAPRequestGP
    extends org.homedns.dade.jcgrid.WorkRequest
    implements ICloneable
    An instance that defines a request from which work packages are generated that are sent to workers in the grid.
    Since:
    3.2
    See Also:
    Serialized Form
    • Constructor Detail

      • JGAPRequestGP

        public JGAPRequestGP(java.lang.String a_name,
                             java.lang.String a_id,
                             int a_chunk,
                             IGridConfigurationGP a_config,
                             IWorkerEvolveStrategyGP a_strategy)
        Constructor.
        Parameters:
        a_name - textual description of request
        a_id - unique identification of request
        a_chunk - running index of request chunk, should be unique within an identification
        a_config - Configuration
        a_strategy - the strategy to choose for evolution
        Since:
        3.2
      • JGAPRequestGP

        public JGAPRequestGP(java.lang.String name,
                             java.lang.String a_id,
                             int a_chunk,
                             IGridConfigurationGP a_config)
        Constructor.
        Parameters:
        name - String
        a_id - unique identification of request
        a_chunk - running index of request chunk, should be unique within an identification
        a_config - Configuration
        Since:
        3.2
      • JGAPRequestGP

        public JGAPRequestGP(java.lang.String a_name,
                             java.lang.String a_id,
                             int a_chunk,
                             IGridConfigurationGP a_config,
                             GPPopulation a_pop,
                             IWorkerEvolveStrategyGP a_strategy)
        Constructor. Allows to specify a preset population with which the genotype will be initialized.
        Parameters:
        a_name - textual description of request
        a_id - unique identification of request
        a_chunk - running index of request chunk, should be unique within an identification
        a_config - Configuration
        a_pop - Population
        a_strategy - the strategy to choose for evolution
        Since:
        3.2
      • JGAPRequestGP

        public JGAPRequestGP(java.lang.String a_name,
                             java.lang.String a_id,
                             int a_chunk,
                             IGridConfigurationGP a_config,
                             GPPopulation a_pop)
        Constructor. Allows to specify a preset population with which the genotype will be initialized.
        Parameters:
        a_name - textual description of request
        a_id - unique identification of request
        a_chunk - running index of request chunk, should be unique within an identification
        a_config - Configuration
        a_pop - Population
        Since:
        3.2
    • Method Detail

      • setEvolveStrategy

        public void setEvolveStrategy(IWorkerEvolveStrategyGP a_evolveStrategy)
        Sets the strategy to use for executing the evolution with a worker for a single request.
        Parameters:
        a_evolveStrategy - the evolve strategy to use
        Since:
        3.2
      • getWorkerEvolveStrategy

        public IWorkerEvolveStrategyGP getWorkerEvolveStrategy()
        Returns:
        the evolve strategy set
        Since:
        3.2
      • getWorkerReturnStrategy

        public IWorkerReturnStrategyGP getWorkerReturnStrategy()
        Returns:
        the strategy which part of a result is returned by a worker
        Since:
        3.2
      • getWorkerFeedback

        public org.homedns.dade.jcgrid.worker.GridWorkerFeedback getWorkerFeedback()
      • setWorkerFeedback

        public void setWorkerFeedback(org.homedns.dade.jcgrid.worker.GridWorkerFeedback a_feedback)
      • setGenotypeInitializer

        public void setGenotypeInitializer(IGenotypeInitializerGP a_initializer)
        Parameters:
        a_initializer - the IGenotypeInitializer to use
        Since:
        3.2
      • getGenotypeInitializer

        public IGenotypeInitializerGP getGenotypeInitializer()
        Returns:
        the IGenotypeInitializer set
        Since:
        3.2
      • setPopulation

        public void setPopulation(GPPopulation a_pop)
        Sets the Population to store in this request so that it can be passed to workers.
        Parameters:
        a_pop - the Population to store
        Since:
        3.2
      • getConfiguration

        public GPConfiguration getConfiguration()
        Returns:
        the JGAP configuration set
        Since:
        3.2
      • getGridConfiguration

        public IGridConfigurationGP getGridConfiguration()
        Returns:
        the grid configuration set
        Since:
        3.2
      • setConfiguration

        public void setConfiguration(GPConfiguration a_conf)
        Set a modified JGAP configuration. Should only be used to re-set a configuration because some parts have not been serialized.
        Parameters:
        a_conf - the JGAP Configuration to set
        Since:
        3.2
      • getPopulation

        public GPPopulation getPopulation()
        Returns:
        the population used to initialize new requests. May be null or empty
        Since:
        3.2
      • clone

        public java.lang.Object clone()
        Specified by:
        clone in interface ICloneable
        Overrides:
        clone in class java.lang.Object
        Returns:
        deep clone of current instance
        Since:
        3.2
      • newInstance

        public JGAPRequestGP newInstance(java.lang.String a_name,
                                         java.lang.String a_id,
                                         int a_chunk)
        Creates a new instance using the given name and ID. Reason for this method: ID cannot be set other than with construction!
        Parameters:
        a_name - textual description of request
        a_id - unique identification of request
        a_chunk - running index of request chunk, should be unique within an identification
        Returns:
        newly created JGAPRequest object
        Since:
        3.2
      • getChunk

        public int getChunk()
      • getRequesterInfo

        public MasterInfo getRequesterInfo()
        Returns:
        information about the requester
        Since:
        3.3.3
      • setRequesterInfo

        public void setRequesterInfo(MasterInfo a_requesterInfo)
        Parameters:
        a_requesterInfo - set information about the requester
        Since:
        3.3.3
      • getID

        public java.lang.String getID()
      • setRequestDate

        public void setRequestDate(java.util.Date a_date)
        Parameters:
        a_date - date the request was initialized
        Since:
        3.3.3
      • getRequestDate

        public java.util.Date getRequestDate()
        Returns:
        the date the request was initialized
        Since:
        3.3.3
      • setDescription

        public void setDescription(java.lang.String a_descr)
        Parameters:
        a_descr - arbitrary description of the request
        Since:
        3.3.3
      • getDescription

        public java.lang.String getDescription()
        Returns:
        arbitrary description of the request
        Since:
        3.3.3
      • getMinFitness

        public double getMinFitness()
        Returns:
        the minimum fitness wanted for results to be returned as response to this request
        Since:
        3.3.3
      • setMinFitness

        public void setMinFitness(double a_minFitness)
        Parameters:
        a_minFitness - the minimum fitness wanted for results to be returned as response to this request
        Since:
        3.3.3
      • setTitle

        public void setTitle(java.lang.String a_title)
        Parameters:
        a_title - the title to set
        Since:
        3.3.4
      • getTitle

        public java.lang.String getTitle()
        Returns:
        the title set
        Since:
        3.3.4

DMelt 3.0 © DataMelt by jWork.ORG

You see the box below because you did not login.