Class PerformanceExperiment
- java.lang.Object
-
- org.eclipse.epsilon.emc.simulink.test.perform.PerformanceExperiment
-
public class PerformanceExperiment extends Object
-
-
Field Summary
Fields Modifier and Type Field Description protected Long
comms
protected Long
duration
protected static String
engine
protected EolModule
eolModule
Integer
iteration
protected static int
maxIterations
protected static int
maxModels
SETUPprotected SimulinkModel
model
Integer
modelId
org.junit.rules.TestName
name
boolean
optimisation
protected static String
path
Integer
queryId
protected static File
resultsFile
protected static Path
root
protected static int
totalQueries
protected static int
warmupIterations
-
Constructor Summary
Constructors Constructor Description PerformanceExperiment()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description void
deleteNonExisting()
protected void
dispose()
void
execution()
protected static String[]
getHeaders()
protected File
getModel(Integer id)
protected String
getScript(Integer id)
protected void
loadModel()
Helpersstatic Iterable<Object[]>
parameters()
protected void
parseAndPopulateScript()
void
prepareForExecution()
protected static void
prepareResultFile(File file, String... headers)
static void
setup()
protected void
writeResults(File file, Object... record)
-
-
-
Field Detail
-
path
protected static String path
-
engine
protected static String engine
-
resultsFile
protected static File resultsFile
-
root
protected static final Path root
-
model
protected SimulinkModel model
-
eolModule
protected EolModule eolModule
-
duration
protected Long duration
-
comms
protected Long comms
-
maxModels
protected static int maxModels
SETUP
-
totalQueries
protected static int totalQueries
-
maxIterations
protected static int maxIterations
-
warmupIterations
protected static int warmupIterations
-
queryId
public Integer queryId
-
modelId
public Integer modelId
-
optimisation
public boolean optimisation
-
iteration
public Integer iteration
-
name
public org.junit.rules.TestName name
-
-
Method Detail
-
prepareResultFile
protected static void prepareResultFile(File file, String... headers) throws IOException
- Throws:
IOException
-
getHeaders
protected static String[] getHeaders()
-
deleteNonExisting
public void deleteNonExisting() throws IOException
- Throws:
IOException
-
execution
public void execution()
-
dispose
protected void dispose()
-
getScript
protected String getScript(Integer id) throws IOException
- Throws:
IOException
-
writeResults
protected void writeResults(File file, Object... record) throws IOException
- Throws:
IOException
-
-