Package org.eclipse.epsilon.eol.launch
Class EolRunConfiguration
- java.lang.Object
-
- org.eclipse.epsilon.common.launch.ProfilableRunConfiguration
-
- org.eclipse.epsilon.eol.launch.EolRunConfiguration
-
- All Implemented Interfaces:
Runnable
,Callable<Object>
,Supplier<Object>
,CheckedSupplier<Object,Exception>
- Direct Known Subclasses:
EglRunConfiguration
,ErlRunConfiguration
,EwlRunConfiguration
public class EolRunConfiguration extends ProfilableRunConfiguration
Convenience class for running EOL programs over models.- Since:
- 1.6
- Author:
- Sina Madani
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
EolRunConfiguration.Builder<C extends EolRunConfiguration,B extends EolRunConfiguration.Builder<C,B>>
-
Field Summary
Fields Modifier and Type Field Description protected boolean
loadModels
Map<IModel,StringProperties>
modelsAndProperties
Map<String,Object>
parameters
-
Fields inherited from class org.eclipse.epsilon.common.launch.ProfilableRunConfiguration
hasRun, id, outputFile, printMarker, profiledStages, profileExecution, result, script, showResults, targetRepeats
-
-
Constructor Summary
Constructors Constructor Description EolRunConfiguration(EolRunConfiguration other)
EolRunConfiguration(EolRunConfiguration.Builder<? extends EolRunConfiguration,?> builder)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description protected void
addModelsToRepo()
static EolRunConfiguration.Builder<? extends EolRunConfiguration,?>
Builder()
void
dispose()
boolean
equals(Object obj)
protected Object
execute()
IEolModule
getModule()
protected List<Object>
getProfilingOutput()
int
hashCode()
protected void
loadModels()
protected void
loadModelsImpl()
protected void
preExecute()
protected void
prepareFrameStack()
protected void
prepareModule()
void
reset()
String
toString()
-
Methods inherited from class org.eclipse.epsilon.common.launch.ProfilableRunConfiguration
afterRepeatLoop, beforeRepeatLoop, Builder, call, findBuilder, getCurrentRepeat, getExecutionTime, getId, getResult, getResultOutput, getThrows, handleException, isFirstRepeat, isLastRepeat, postExecute, run, writeOut, writeOut
-
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
-
Methods inherited from interface org.eclipse.epsilon.common.function.CheckedSupplier
get
-
-
-
-
Constructor Detail
-
EolRunConfiguration
public EolRunConfiguration(EolRunConfiguration.Builder<? extends EolRunConfiguration,?> builder)
-
EolRunConfiguration
public EolRunConfiguration(EolRunConfiguration other)
-
-
Method Detail
-
Builder
public static EolRunConfiguration.Builder<? extends EolRunConfiguration,?> Builder()
-
getModule
public IEolModule getModule()
- Returns:
- The concrete instance of IEolModule.
-
preExecute
protected void preExecute() throws Exception
- Overrides:
preExecute
in classProfilableRunConfiguration
- Throws:
Exception
-
prepareFrameStack
protected void prepareFrameStack()
-
loadModels
protected final void loadModels() throws EolModelLoadingException
- Throws:
EolModelLoadingException
-
loadModelsImpl
protected void loadModelsImpl() throws EolModelLoadingException
- Throws:
EolModelLoadingException
-
reset
public void reset() throws Exception
- Overrides:
reset
in classProfilableRunConfiguration
- Throws:
Exception
-
execute
protected Object execute() throws EolRuntimeException
- Specified by:
execute
in classProfilableRunConfiguration
- Throws:
EolRuntimeException
-
getProfilingOutput
protected List<Object> getProfilingOutput()
- Overrides:
getProfilingOutput
in classProfilableRunConfiguration
-
toString
public String toString()
- Overrides:
toString
in classProfilableRunConfiguration
-
hashCode
public int hashCode()
- Overrides:
hashCode
in classProfilableRunConfiguration
-
equals
public boolean equals(Object obj)
- Overrides:
equals
in classProfilableRunConfiguration
-
-