|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectde.cau.cs.kieler.kies.transformation.test.TimeMeasurement
public class TimeMeasurement
This JUnit tests serves as a kind of regression test for Esterel to SyncChart transformations. It executes several tests taking an esterel file and an expected synccharts sematic model (kixs). The esterel file is transformed and the resulting syncchart is compared to the expected one using EMFCompare. Keep in mind that this is a JUnit plugin test, hence it has its own workspace but the test files are kept in the original workspace. For this reason you currently have to define your workspace location relative to the junit workspace.
Constructor Summary | |
---|---|
TimeMeasurement()
|
Method Summary | |
---|---|
void |
calLevels()
|
void |
compareHierarchyLevels(File strlFile)
|
void |
measureTime()
|
static boolean |
performHeadlessTransformation(IFile kixsFile,
TransformationUtil.TransformationType type)
Performs a headless transformation on the passed kixsFile . |
static boolean |
performHeadlessTransformationStep(IFile kixsFile,
TransformationUtil.TransformationType type)
Performs a headless transformation on the passed kixsFile . |
static boolean |
performHeadlessTransformationWithSetup(IFile kixsFile,
TransformationUtil.TransformationType type)
Performs a headless transformation on the passed kixsFile . |
void |
setup()
get the workspace root and open a project to work with. |
void |
test()
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public TimeMeasurement()
Method Detail |
---|
public void setup() throws CoreException
CoreException
- if anything goes wrong creating the project.public void test() throws Exception
Exception
public void measureTime() throws Exception
Exception
public static boolean performHeadlessTransformation(IFile kixsFile, TransformationUtil.TransformationType type)
kixsFile
. The
transformation can either be a Esterel to SyncCharts transformation or a
SyncCharts optimization depending on the type
parameter.
kixsFile
- the file to transform.type
- TransformationUtil.TransformationType
determining the type of this
transformation.
true
if the transformation was successful, false
otherwise.public static boolean performHeadlessTransformationWithSetup(IFile kixsFile, TransformationUtil.TransformationType type)
kixsFile
. The
transformation can either be a Esterel to SyncCharts transformation or a
SyncCharts optimization depending on the type
parameter.
kixsFile
- the file to transform.type
- TransformationUtil.TransformationType
determining the type of this
transformation.
true
if the transformation was successful, false
otherwise.public static boolean performHeadlessTransformationStep(IFile kixsFile, TransformationUtil.TransformationType type)
kixsFile
. The
transformation can either be a Esterel to SyncCharts transformation or a
SyncCharts optimization depending on the type
parameter.
kixsFile
- the file to transform.type
- TransformationUtil.TransformationType
determining the type of this
transformation.
true
if the transformation was successful, false
otherwise.public void calLevels() throws Exception
Exception
public void compareHierarchyLevels(File strlFile)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |