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.Longcommsprotected java.lang.Longdurationprotected static java.lang.Stringengineprotected EolModuleeolModulejava.lang.Integeriterationprotected static intmaxIterationsprotected static intmaxModelsSETUPprotected SimulinkModelmodeljava.lang.IntegermodelIdorg.junit.rules.TestNamenamebooleanoptimisationprotected static java.lang.Stringpathjava.lang.IntegerqueryIdprotected static java.io.FileresultsFileprotected static java.nio.file.Pathrootprotected static inttotalQueriesprotected static intwarmupIterations
-
Constructor Summary
Constructors Constructor Description PerformanceExperiment()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description voiddeleteNonExisting()protected voiddispose()voidexecution()protected static java.lang.String[]getHeaders()protected java.io.FilegetModel(java.lang.Integer id)protected java.lang.StringgetScript(java.lang.Integer id)protected voidloadModel()Helpersstatic java.lang.Iterable<java.lang.Object[]>parameters()protected voidparseAndPopulateScript()voidprepareForExecution()protected static voidprepareResultFile(java.io.File file, java.lang.String... headers)static voidsetup()protected voidwriteResults(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
-
comms
protected java.lang.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 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.ExceptionHelpers- 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
-
-