org.jgap.distr.grid
Class SampleSplitStrategy
- java.lang.Object
-
- org.jgap.distr.grid.SampleSplitStrategy
-
- All Implemented Interfaces:
- java.io.Serializable, IRequestSplitStrategy
public class SampleSplitStrategy extends java.lang.Object implements IRequestSplitStrategy
Sample implementation of IRequestSplitStrategy. Here, a request is transformed into 20 single requests, each to be computed by a worker.- Since:
- 3.2
- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor and Description SampleSplitStrategy(Configuration a_config)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method and Description ConfigurationgetConfiguration()JGAPRequest[]split(JGAPRequest a_request)Creates 20 single requests out of one.
-
-
-
Constructor Detail
-
SampleSplitStrategy
public SampleSplitStrategy(Configuration a_config)
-
-
Method Detail
-
getConfiguration
public Configuration getConfiguration()
-
split
public JGAPRequest[] split(JGAPRequest a_request) throws java.lang.Exception
Creates 20 single requests out of one. The single requests are each processed by one worker at a time.- Specified by:
splitin interfaceIRequestSplitStrategy- Parameters:
a_request- the request to split- Returns:
- single requests to be computed by workers
- Throws:
java.lang.Exception- Since:
- 3.2
-
-
DMelt 3.0 © DataMelt by jWork.ORG