Class EvlModuleParallelAtoms<A extends EvlAtom<?>>
- java.lang.Object
-
- org.eclipse.epsilon.common.module.AbstractModuleElement
-
- org.eclipse.epsilon.eol.AbstractModule
-
- org.eclipse.epsilon.eol.EolModule
-
- org.eclipse.epsilon.erl.ErlModule
-
- org.eclipse.epsilon.evl.EvlModule
-
- org.eclipse.epsilon.evl.concurrent.EvlModuleParallel
-
- org.eclipse.epsilon.evl.concurrent.EvlModuleParallelAtoms<A>
-
- All Implemented Interfaces:
IModule,ModuleElement,IEolModule,IErlModule,IErlModuleAtomBatches<A>,IEvlModule
- Direct Known Subclasses:
EvlModuleParallelConstraintAtoms,EvlModuleParallelContextAtoms
public abstract class EvlModuleParallelAtoms<A extends EvlAtom<?>> extends EvlModuleParallel implements IErlModuleAtomBatches<A>
- Since:
- 1.6
- Author:
- Sina Madani
-
-
Field Summary
Fields Modifier and Type Field Description protected java.util.List<A>jobsCache-
Fields inherited from class org.eclipse.epsilon.evl.concurrent.EvlModuleParallel
CONFIG_PROPERTIES
-
Fields inherited from class org.eclipse.epsilon.evl.EvlModule
constraintContexts, constraints, declaredConstraintContexts, fixer, OPTIMIZE_CONSTRAINTS
-
Fields inherited from class org.eclipse.epsilon.erl.ErlModule
declaredPost, declaredPre, post, pre
-
Fields inherited from class org.eclipse.epsilon.eol.EolModule
compilationContext, context, declaredModelDeclarations, declaredOperations, imports, main, modelDeclarations, operations, postOperationStatements
-
Fields inherited from class org.eclipse.epsilon.eol.AbstractModule
parseProblems, parser, sourceFile, sourceUri
-
-
Constructor Summary
Constructors Modifier Constructor Description protectedEvlModuleParallelAtoms()protectedEvlModuleParallelAtoms(IEvlContextParallel context)
-
Method Summary
All Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description protected voidcheckConstraints()Invokes the execute() method on all Constraints in all ConstraintContexts.java.lang.ObjectexecuteAll(ErlContextParallel context)java.util.List<? extends A>getAllJobs()The atomic units of work.protected abstract java.util.List<A>getAllJobsImpl()Non-cached implementation as called bygetAllJobs().-
Methods inherited from class org.eclipse.epsilon.evl.concurrent.EvlModuleParallel
configure, getConfigurationProperties, getContext, getImportConfiguration
-
Methods inherited from class org.eclipse.epsilon.evl.EvlModule
adapt, build, createLexer, createParser, execute, getConstraintContexts, getConstraints, getDeclaredConstraintContexts, getMainRule, getOptimisedConstraintsFor, getUnsatisfiedConstraintFixer, isOptimizeConstraints, postExecution, prepareContext, preProcessConstraintContext, processRules, setOptimizeConstraints, setUnsatisfiedConstraintFixer
-
Methods inherited from class org.eclipse.epsilon.erl.ErlModule
calculateSuperRules, execute, execute, executeImpl, getDeclaredPost, getDeclaredPre, getPost, getPre, prepareExecution
-
Methods inherited from class org.eclipse.epsilon.eol.EolModule
checkImports, clearCache, compile, getCompilationContext, getDeclaredModelDeclarations, getDeclaredOperations, getImports, getImportsByExtension, getMain, getModelDelcarations, getOperations, getParentModule, getPostOperationStatements, setContext, setMain, setParentModule, toString
-
Methods inherited from class org.eclipse.epsilon.eol.AbstractModule
assignAnnotations, assignComment, assignComments, createAst, extractComments, getParseProblems, getSourceFile, getSourceUri, invokeMainRule, parse, parse
-
Methods inherited from class org.eclipse.epsilon.common.module.AbstractModuleElement
equals, getChildren, getComments, getData, getDebugInfo, getFile, getModule, getParent, getRegion, getUri, hashCode, setModule, setParent, setRegion, setUri
-
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
-
Methods inherited from interface org.eclipse.epsilon.eol.IEolModule
configure, getCompilationContext, getConfigurationProperties, getDeclaredModelDeclarations, getDeclaredOperations, getImports, getMain, getModelDelcarations, getOperations, getParentModule, getParseProblems, getPostOperationStatements, parse, setContext, setParentModule
-
Methods inherited from interface org.eclipse.epsilon.erl.IErlModule
getDeclaredPost, getDeclaredPre, getPost, getPre
-
Methods inherited from interface org.eclipse.epsilon.erl.IErlModuleAtomBatches
getBatchJobs
-
Methods inherited from interface org.eclipse.epsilon.evl.IEvlModule
getConstraint, getConstraintContext
-
Methods inherited from interface org.eclipse.epsilon.common.module.IModule
compile, 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
-
-
-
-
Constructor Detail
-
EvlModuleParallelAtoms
protected EvlModuleParallelAtoms()
-
EvlModuleParallelAtoms
protected EvlModuleParallelAtoms(IEvlContextParallel context)
-
-
Method Detail
-
getAllJobs
public final java.util.List<? extends A> getAllJobs() throws EolRuntimeException
Description copied from interface:IErlModuleAtomBatchesThe atomic units of work.- Specified by:
getAllJobsin interfaceIErlModuleAtomBatches<A extends EvlAtom<?>>- Returns:
- A deterministically ordered List of executable rule-element pairs.
- Throws:
EolRuntimeException- If any problems are encountered when retrieving the jobs.
-
getAllJobsImpl
protected abstract java.util.List<A> getAllJobsImpl() throws EolRuntimeException
Non-cached implementation as called bygetAllJobs().- Returns:
- The deterministically ordered jobs.
- Throws:
EolRuntimeException
-
executeAll
public java.lang.Object executeAll(ErlContextParallel context) throws EolRuntimeException
- Throws:
EolRuntimeException
-
checkConstraints
protected void checkConstraints() throws EolRuntimeExceptionDescription copied from class:EvlModuleInvokes the execute() method on all Constraints in all ConstraintContexts. If optimizeConstraints, the constraints to be checked are filtered.- Specified by:
checkConstraintsin classEvlModuleParallel- Throws:
EolRuntimeException
-
-