Package org.eclipse.epsilon.erl
Interface IErlModuleAtomBatches<D extends RuleAtom<?>>
- Type Parameters:
D
- The type of Rule-element pair.
- All Superinterfaces:
IEolModule
,IErlModule
,IModule
,ModuleElement
- All Known Implementing Classes:
EgxModuleParallelGenerationRuleAtoms
,EvlModuleParallelAtoms
,EvlModuleParallelConstraintAtoms
,EvlModuleParallelContextAtoms
Interface for rule-based languages with deterministically ordered jobs which can be
split into independent units of execution.
- Since:
- 1.6
- Author:
- Sina Madani
-
Method Summary
Modifier and TypeMethodDescriptionThe atomic units of work.getBatchJobs
(int batchSize) Splits the job list (as returned fromgetAllJobs()
into the specified number of batches.Methods inherited from interface org.eclipse.epsilon.eol.IEolModule
configure, createDebugger, execute, getConfigurationProperties, getDeclaredModelDeclarations, getDeclaredOperations, getImportManager, getImports, getMain, getModelDeclarations, getOperations, getParentModule, getParseProblems, getPostOperationStatements, parse, setContext, setImportManager, setParentModule
Methods inherited from interface org.eclipse.epsilon.erl.IErlModule
getContext, getDeclaredPost, getDeclaredPre, getPost, getPre
Methods inherited from interface org.eclipse.epsilon.common.module.IModule
createAst, getSourceUri, parse, parse, parse, parse, parse
Methods inherited from interface org.eclipse.epsilon.common.module.ModuleElement
build, getChildren, getComments, getData, getFile, getModule, getParent, getRegion, getUri, setModule, setParent, setRegion, setUri
-
Method Details
-
getAllJobs
The atomic units of work.- Returns:
- A deterministically ordered List of executable rule-element pairs.
- Throws:
EolRuntimeException
- If any problems are encountered when retrieving the jobs.
-
getBatchJobs
Splits the job list (as returned fromgetAllJobs()
into the specified number of batches.- Parameters:
batchSize
- This is interpreted as the size of batches, i.e. the distance between start and end indices.- Returns:
- The list of start and end indices in order.
- Throws:
EolRuntimeException
-