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