Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
E
EMAM2Middleware
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Locked Files
Issues
4
Issues
4
List
Boards
Labels
Service Desk
Milestones
Iterations
Merge Requests
0
Merge Requests
0
Requirements
Requirements
List
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Test Cases
Security & Compliance
Security & Compliance
Dependency List
License Compliance
Operations
Operations
Incidents
Environments
Packages & Registries
Packages & Registries
Container Registry
Analytics
Analytics
CI / CD
Code Review
Insights
Issue
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
monticore
EmbeddedMontiArc
generators
EMAM2Middleware
Commits
35e5b573
Commit
35e5b573
authored
May 07, 2018
by
Alexander David Hellwig
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Tests: Updated results
parent
c1f68254
Changes
24
Hide whitespace changes
Inline
Side-by-side
Showing
24 changed files
with
146 additions
and
61 deletions
+146
-61
src/test/resources/results/CMakeCppOnly/src/cpp/HelperA.h
src/test/resources/results/CMakeCppOnly/src/cpp/HelperA.h
+2
-6
src/test/resources/results/system/src/ba_system_collisionDetection/cpp/HelperA.h
...lts/system/src/ba_system_collisionDetection/cpp/HelperA.h
+3
-7
src/test/resources/results/system/src/ba_system_collisionDetection/cpp/ba_system_collisionDetection_rectIntersection_1__lineIntersection_1_.h
...lisionDetection_rectIntersection_1__lineIntersection_1_.h
+1
-2
src/test/resources/results/system/src/ba_system_intersectionController/cpp/HelperA.h
...system/src/ba_system_intersectionController/cpp/HelperA.h
+3
-7
src/test/resources/results/system/src/ba_system_intersectionController/cpp/ba_system_intersectionController_trajectoryCollision_1_.h
...ba_system_intersectionController_trajectoryCollision_1_.h
+2
-2
src/test/resources/results/system/src/ba_system_intersectionController/cpp/ba_system_intersectionController_trajectoryCollision_1__firstLineIntersection.h
...Controller_trajectoryCollision_1__firstLineIntersection.h
+4
-4
src/test/resources/results/system/src/ba_system_intersectionController/cpp/ba_system_intersectionController_trajectoryCollision_1__lineIntersection_1_.h
...onController_trajectoryCollision_1__lineIntersection_1_.h
+1
-1
src/test/resources/results/system/src/ba_system_intersectionController/cpp/ba_system_intersectionController_trajectoryCollision_1__timeCutoffFilter.h
...ctionController_trajectoryCollision_1__timeCutoffFilter.h
+1
-2
src/test/resources/results/system/src/ba_system_intersectionController/cpp/ba_system_intersectionController_trajectoryCollision_1__trajectoryToLinesA.h
...ionController_trajectoryCollision_1__trajectoryToLinesA.h
+1
-1
src/test/resources/results/system/src/ba_system_intersectionController/cpp/ba_system_intersectionController_trajectoryCollision_1__trajectoryToLinesB.h
...ionController_trajectoryCollision_1__trajectoryToLinesB.h
+1
-1
src/test/resources/results/system/src/ba_system_intersectionController/cpp/types/ba_struct_Point.h
...system_intersectionController/cpp/types/ba_struct_Point.h
+10
-0
src/test/resources/results/system/src/ba_system_intersectionController/cpp/types/ba_struct_Rectangle.h
...em_intersectionController/cpp/types/ba_struct_Rectangle.h
+13
-0
src/test/resources/results/system/src/ba_system_stopCommQuality_1_/cpp/HelperA.h
...lts/system/src/ba_system_stopCommQuality_1_/cpp/HelperA.h
+3
-7
src/test/resources/results/system/src/ba_system_stopCommQuality_1_/cpp/types/ba_struct_Point.h
.../ba_system_stopCommQuality_1_/cpp/types/ba_struct_Point.h
+10
-0
src/test/resources/results/system/src/ba_system_stopCommQuality_1_/cpp/types/ba_struct_Rectangle.h
...system_stopCommQuality_1_/cpp/types/ba_struct_Rectangle.h
+13
-0
src/test/resources/results/system/src/ba_system_stopCommQuality_2_/cpp/HelperA.h
...lts/system/src/ba_system_stopCommQuality_2_/cpp/HelperA.h
+3
-7
src/test/resources/results/system/src/ba_system_stopCommQuality_2_/cpp/types/ba_struct_Point.h
.../ba_system_stopCommQuality_2_/cpp/types/ba_struct_Point.h
+10
-0
src/test/resources/results/system/src/ba_system_stopCommQuality_2_/cpp/types/ba_struct_Rectangle.h
...system_stopCommQuality_2_/cpp/types/ba_struct_Rectangle.h
+13
-0
src/test/resources/results/system/src/ba_system_velocityController_1_/cpp/HelperA.h
.../system/src/ba_system_velocityController_1_/cpp/HelperA.h
+3
-7
src/test/resources/results/system/src/ba_system_velocityController_1_/cpp/types/ba_struct_Point.h
..._system_velocityController_1_/cpp/types/ba_struct_Point.h
+10
-0
src/test/resources/results/system/src/ba_system_velocityController_1_/cpp/types/ba_struct_Rectangle.h
...tem_velocityController_1_/cpp/types/ba_struct_Rectangle.h
+13
-0
src/test/resources/results/system/src/ba_system_velocityController_2_/cpp/HelperA.h
.../system/src/ba_system_velocityController_2_/cpp/HelperA.h
+3
-7
src/test/resources/results/system/src/ba_system_velocityController_2_/cpp/types/ba_struct_Point.h
..._system_velocityController_2_/cpp/types/ba_struct_Point.h
+10
-0
src/test/resources/results/system/src/ba_system_velocityController_2_/cpp/types/ba_struct_Rectangle.h
...tem_velocityController_2_/cpp/types/ba_struct_Rectangle.h
+13
-0
No files found.
src/test/resources/results/CMakeCppOnly/src/cpp/HelperA.h
View file @
35e5b573
...
...
@@ -76,12 +76,8 @@ static double getEuclideanDistance(mat A, int colIndexA, mat B, int colIndexB){
}
static
mat
getSqrtMat
(
mat
A
){
for
(
int
i
=
0
;
i
<
A
.
n_rows
;
++
i
){
double
curVal
=
A
(
i
,
i
);
A
(
i
,
i
)
=
sqrt
(
curVal
);
}
return
A
;
cx_mat
result
=
sqrtmat
(
A
);
return
real
(
result
);
}
static
mat
getSqrtMatDiag
(
mat
A
){
...
...
src/test/resources/results/system/src/ba_system_collisionDetection/cpp/HelperA.h
View file @
35e5b573
...
...
@@ -28,7 +28,7 @@ std::ofstream myfile;
myfile.open("data after cluster.txt");
myfile << A;
myfile.close();
std::ofstream myfile2;
myfile2.open("cluster centroids.txt");
myfile2 << clusters;
...
...
@@ -76,12 +76,8 @@ static double getEuclideanDistance(mat A, int colIndexA, mat B, int colIndexB){
}
static
mat
getSqrtMat
(
mat
A
){
for
(
int
i
=
0
;
i
<
A
.
n_rows
;
++
i
){
double
curVal
=
A
(
i
,
i
);
A
(
i
,
i
)
=
sqrt
(
curVal
);
}
return
A
;
cx_mat
result
=
sqrtmat
(
A
);
return
real
(
result
);
}
static
mat
getSqrtMatDiag
(
mat
A
){
...
...
src/test/resources/results/system/src/ba_system_collisionDetection/cpp/ba_system_collisionDetection_rectIntersection_1__lineIntersection_1_.h
View file @
35e5b573
...
...
@@ -4,7 +4,6 @@
#define M_PI 3.14159265358979323846
#endif
#include "armadillo.h"
#include <cmath>
using
namespace
arma
;
class
ba_system_collisionDetection_rectIntersection_1__lineIntersection_1_
{
public:
...
...
@@ -29,7 +28,7 @@ double Cy = lineA(2-1, 1-1)-lineB(2-1, 1-1);
double
n1
=
Ay
*
Bx
-
Ax
*
By
;
double
cutoff
=
1.0E-8
;
bool
res
=
false
;
if
(((
std
::
abs
(
n1
)
>
cutoff
))){
if
(((
(
abs
(
n1
)
)
>
cutoff
))){
double
alpha
=
(
By
*
Cx
-
Bx
*
Cy
)
/
n1
;
if
(((
alpha
>=
cutoff
))
&&
((
alpha
<=
1
))){
double
beta
=
(
Ax
*
Cy
-
Ay
*
Cx
)
/
n1
;
...
...
src/test/resources/results/system/src/ba_system_intersectionController/cpp/HelperA.h
View file @
35e5b573
...
...
@@ -28,7 +28,7 @@ std::ofstream myfile;
myfile.open("data after cluster.txt");
myfile << A;
myfile.close();
std::ofstream myfile2;
myfile2.open("cluster centroids.txt");
myfile2 << clusters;
...
...
@@ -76,12 +76,8 @@ static double getEuclideanDistance(mat A, int colIndexA, mat B, int colIndexB){
}
static
mat
getSqrtMat
(
mat
A
){
for
(
int
i
=
0
;
i
<
A
.
n_rows
;
++
i
){
double
curVal
=
A
(
i
,
i
);
A
(
i
,
i
)
=
sqrt
(
curVal
);
}
return
A
;
cx_mat
result
=
sqrtmat
(
A
);
return
real
(
result
);
}
static
mat
getSqrtMatDiag
(
mat
A
){
...
...
src/test/resources/results/system/src/ba_system_intersectionController/cpp/ba_system_intersectionController_trajectoryCollision_1_.h
View file @
35e5b573
...
...
@@ -85,8 +85,8 @@ timeCutoffFilter.init(2);
void
execute
()
{
timeCutoffFilter
.
collisionIn
=
firstLineIntersection
.
collisionOut
;
timeCutoffFilter
.
indexInA
=
firstLineIntersection
.
l
in
exA
;
timeCutoffFilter
.
indexInB
=
firstLineIntersection
.
l
in
exB
;
timeCutoffFilter
.
indexInA
=
firstLineIntersection
.
l
Ind
exA
;
timeCutoffFilter
.
indexInB
=
firstLineIntersection
.
l
Ind
exB
;
timeCutoffFilter
.
colPosIn
=
firstLineIntersection
.
pos
;
timeCutoffFilter
.
trajectoryInA
=
trajectoryA
;
timeCutoffFilter
.
trajectoryInB
=
trajectoryB
;
...
...
src/test/resources/results/system/src/ba_system_intersectionController/cpp/ba_system_intersectionController_trajectoryCollision_1__firstLineIntersection.h
View file @
35e5b573
...
...
@@ -12,8 +12,8 @@ public:
bool
collisionIn
[
45
];
mat
pointsIn
[
45
];
bool
collisionOut
;
int
l
in
exA
;
int
l
in
exB
;
int
l
Ind
exA
;
int
l
Ind
exB
;
mat
pos
;
void
init
()
{
...
...
@@ -72,8 +72,8 @@ for( auto i=1;i<=m1;++i){
for
(
auto
j
=
i
;
j
<=
m1
;
++
j
){
if
((
found
==
false
)){
if
(
collisionIn
[
k
-
1
]){
l
in
exA
=
i
;
l
in
exB
=
j
;
l
Ind
exA
=
i
;
l
Ind
exB
=
j
;
pos
=
pointsIn
[
k
-
1
];
found
=
true
;
}
...
...
src/test/resources/results/system/src/ba_system_intersectionController/cpp/ba_system_intersectionController_trajectoryCollision_1__lineIntersection_1_.h
View file @
35e5b573
...
...
@@ -28,7 +28,7 @@ double Cy = lineA(2-1, 1-1)-lineB(2-1, 1-1);
double
n1
=
Ay
*
Bx
-
Ax
*
By
;
double
cutoff
=
1.0E-8
;
bool
res
=
false
;
if
(((
std
::
abs
(
n1
)
>
cutoff
))){
if
(((
(
abs
(
n1
)
)
>
cutoff
))){
double
alpha
=
(
By
*
Cx
-
Bx
*
Cy
)
/
n1
;
if
(((
alpha
>=
cutoff
))
&&
((
alpha
<=
1
))){
double
beta
=
(
Ax
*
Cy
-
Ay
*
Cx
)
/
n1
;
...
...
src/test/resources/results/system/src/ba_system_intersectionController/cpp/ba_system_intersectionController_trajectoryCollision_1__timeCutoffFilter.h
View file @
35e5b573
...
...
@@ -5,7 +5,6 @@
#endif
#include "armadillo.h"
#include "HelperA.h"
#include <cmath>
using
namespace
arma
;
class
ba_system_intersectionController_trajectoryCollision_1__timeCutoffFilter
{
const
int
m
=
10
;
...
...
@@ -49,7 +48,7 @@ aIsFasterOut = true;
else
{
aIsFasterOut
=
false
;
}
collisionOut
=
(
std
::
abs
(
time1
-
time2
)
<
timeCutoff
);
collisionOut
=
(
(
abs
(
time1
-
time2
)
)
<
timeCutoff
);
}
else
{
collisionOut
=
false
;
...
...
src/test/resources/results/system/src/ba_system_intersectionController/cpp/ba_system_intersectionController_trajectoryCollision_1__trajectoryToLinesA.h
View file @
35e5b573
...
...
@@ -27,7 +27,7 @@ lineOut[8]=mat(4,1);
void
execute
()
{
for
(
auto
i
=
1
;
i
<=
m1
;
++
i
){
colvec
tmpLine
=
colvec
(
4
);
colvec
tmpLine
=
colvec
(
4
);
tmpLine
(
1
-
1
,
1
-
1
)
=
trajectoryIn
(
1
-
1
,
i
-
1
);
tmpLine
(
2
-
1
,
1
-
1
)
=
trajectoryIn
(
2
-
1
,
i
-
1
);
tmpLine
(
3
-
1
,
1
-
1
)
=
trajectoryIn
(
1
-
1
,
i
+
1
-
1
);
...
...
src/test/resources/results/system/src/ba_system_intersectionController/cpp/ba_system_intersectionController_trajectoryCollision_1__trajectoryToLinesB.h
View file @
35e5b573
...
...
@@ -27,7 +27,7 @@ lineOut[8]=mat(4,1);
void
execute
()
{
for
(
auto
i
=
1
;
i
<=
m1
;
++
i
){
colvec
tmpLine
=
colvec
(
4
);
colvec
tmpLine
=
colvec
(
4
);
tmpLine
(
1
-
1
,
1
-
1
)
=
trajectoryIn
(
1
-
1
,
i
-
1
);
tmpLine
(
2
-
1
,
1
-
1
)
=
trajectoryIn
(
2
-
1
,
i
-
1
);
tmpLine
(
3
-
1
,
1
-
1
)
=
trajectoryIn
(
1
-
1
,
i
+
1
-
1
);
...
...
src/test/resources/results/system/src/ba_system_intersectionController/cpp/types/ba_struct_Point.h
0 → 100644
View file @
35e5b573
#ifndef BA_STRUCT_POINT
#define BA_STRUCT_POINT
struct
ba_struct_Point
{
double
posX
=
0
.
0
;
double
posY
=
0
.
0
;
};
#endif
src/test/resources/results/system/src/ba_system_intersectionController/cpp/types/ba_struct_Rectangle.h
0 → 100644
View file @
35e5b573
#ifndef BA_STRUCT_RECTANGLE
#define BA_STRUCT_RECTANGLE
#include "ba_struct_Point.h"
struct
ba_struct_Rectangle
{
ba_struct_Point
pointA
;
ba_struct_Point
pointB
;
ba_struct_Point
pointC
;
ba_struct_Point
pointD
;
};
#endif
src/test/resources/results/system/src/ba_system_stopCommQuality_1_/cpp/HelperA.h
View file @
35e5b573
...
...
@@ -28,7 +28,7 @@ std::ofstream myfile;
myfile.open("data after cluster.txt");
myfile << A;
myfile.close();
std::ofstream myfile2;
myfile2.open("cluster centroids.txt");
myfile2 << clusters;
...
...
@@ -76,12 +76,8 @@ static double getEuclideanDistance(mat A, int colIndexA, mat B, int colIndexB){
}
static
mat
getSqrtMat
(
mat
A
){
for
(
int
i
=
0
;
i
<
A
.
n_rows
;
++
i
){
double
curVal
=
A
(
i
,
i
);
A
(
i
,
i
)
=
sqrt
(
curVal
);
}
return
A
;
cx_mat
result
=
sqrtmat
(
A
);
return
real
(
result
);
}
static
mat
getSqrtMatDiag
(
mat
A
){
...
...
src/test/resources/results/system/src/ba_system_stopCommQuality_1_/cpp/types/ba_struct_Point.h
0 → 100644
View file @
35e5b573
#ifndef BA_STRUCT_POINT
#define BA_STRUCT_POINT
struct
ba_struct_Point
{
double
posX
=
0
.
0
;
double
posY
=
0
.
0
;
};
#endif
src/test/resources/results/system/src/ba_system_stopCommQuality_1_/cpp/types/ba_struct_Rectangle.h
0 → 100644
View file @
35e5b573
#ifndef BA_STRUCT_RECTANGLE
#define BA_STRUCT_RECTANGLE
#include "ba_struct_Point.h"
struct
ba_struct_Rectangle
{
ba_struct_Point
pointA
;
ba_struct_Point
pointB
;
ba_struct_Point
pointC
;
ba_struct_Point
pointD
;
};
#endif
src/test/resources/results/system/src/ba_system_stopCommQuality_2_/cpp/HelperA.h
View file @
35e5b573
...
...
@@ -28,7 +28,7 @@ std::ofstream myfile;
myfile.open("data after cluster.txt");
myfile << A;
myfile.close();
std::ofstream myfile2;
myfile2.open("cluster centroids.txt");
myfile2 << clusters;
...
...
@@ -76,12 +76,8 @@ static double getEuclideanDistance(mat A, int colIndexA, mat B, int colIndexB){
}
static
mat
getSqrtMat
(
mat
A
){
for
(
int
i
=
0
;
i
<
A
.
n_rows
;
++
i
){
double
curVal
=
A
(
i
,
i
);
A
(
i
,
i
)
=
sqrt
(
curVal
);
}
return
A
;
cx_mat
result
=
sqrtmat
(
A
);
return
real
(
result
);
}
static
mat
getSqrtMatDiag
(
mat
A
){
...
...
src/test/resources/results/system/src/ba_system_stopCommQuality_2_/cpp/types/ba_struct_Point.h
0 → 100644
View file @
35e5b573
#ifndef BA_STRUCT_POINT
#define BA_STRUCT_POINT
struct
ba_struct_Point
{
double
posX
=
0
.
0
;
double
posY
=
0
.
0
;
};
#endif
src/test/resources/results/system/src/ba_system_stopCommQuality_2_/cpp/types/ba_struct_Rectangle.h
0 → 100644
View file @
35e5b573
#ifndef BA_STRUCT_RECTANGLE
#define BA_STRUCT_RECTANGLE
#include "ba_struct_Point.h"
struct
ba_struct_Rectangle
{
ba_struct_Point
pointA
;
ba_struct_Point
pointB
;
ba_struct_Point
pointC
;
ba_struct_Point
pointD
;
};
#endif
src/test/resources/results/system/src/ba_system_velocityController_1_/cpp/HelperA.h
View file @
35e5b573
...
...
@@ -28,7 +28,7 @@ std::ofstream myfile;
myfile.open("data after cluster.txt");
myfile << A;
myfile.close();
std::ofstream myfile2;
myfile2.open("cluster centroids.txt");
myfile2 << clusters;
...
...
@@ -76,12 +76,8 @@ static double getEuclideanDistance(mat A, int colIndexA, mat B, int colIndexB){
}
static
mat
getSqrtMat
(
mat
A
){
for
(
int
i
=
0
;
i
<
A
.
n_rows
;
++
i
){
double
curVal
=
A
(
i
,
i
);
A
(
i
,
i
)
=
sqrt
(
curVal
);
}
return
A
;
cx_mat
result
=
sqrtmat
(
A
);
return
real
(
result
);
}
static
mat
getSqrtMatDiag
(
mat
A
){
...
...
src/test/resources/results/system/src/ba_system_velocityController_1_/cpp/types/ba_struct_Point.h
0 → 100644
View file @
35e5b573
#ifndef BA_STRUCT_POINT
#define BA_STRUCT_POINT
struct
ba_struct_Point
{
double
posX
=
0
.
0
;
double
posY
=
0
.
0
;
};
#endif
src/test/resources/results/system/src/ba_system_velocityController_1_/cpp/types/ba_struct_Rectangle.h
0 → 100644
View file @
35e5b573
#ifndef BA_STRUCT_RECTANGLE
#define BA_STRUCT_RECTANGLE
#include "ba_struct_Point.h"
struct
ba_struct_Rectangle
{
ba_struct_Point
pointA
;
ba_struct_Point
pointB
;
ba_struct_Point
pointC
;
ba_struct_Point
pointD
;
};
#endif
src/test/resources/results/system/src/ba_system_velocityController_2_/cpp/HelperA.h
View file @
35e5b573
...
...
@@ -28,7 +28,7 @@ std::ofstream myfile;
myfile.open("data after cluster.txt");
myfile << A;
myfile.close();
std::ofstream myfile2;
myfile2.open("cluster centroids.txt");
myfile2 << clusters;
...
...
@@ -76,12 +76,8 @@ static double getEuclideanDistance(mat A, int colIndexA, mat B, int colIndexB){
}
static
mat
getSqrtMat
(
mat
A
){
for
(
int
i
=
0
;
i
<
A
.
n_rows
;
++
i
){
double
curVal
=
A
(
i
,
i
);
A
(
i
,
i
)
=
sqrt
(
curVal
);
}
return
A
;
cx_mat
result
=
sqrtmat
(
A
);
return
real
(
result
);
}
static
mat
getSqrtMatDiag
(
mat
A
){
...
...
src/test/resources/results/system/src/ba_system_velocityController_2_/cpp/types/ba_struct_Point.h
0 → 100644
View file @
35e5b573
#ifndef BA_STRUCT_POINT
#define BA_STRUCT_POINT
struct
ba_struct_Point
{
double
posX
=
0
.
0
;
double
posY
=
0
.
0
;
};
#endif
src/test/resources/results/system/src/ba_system_velocityController_2_/cpp/types/ba_struct_Rectangle.h
0 → 100644
View file @
35e5b573
#ifndef BA_STRUCT_RECTANGLE
#define BA_STRUCT_RECTANGLE
#include "ba_struct_Point.h"
struct
ba_struct_Rectangle
{
ba_struct_Point
pointA
;
ba_struct_Point
pointB
;
ba_struct_Point
pointC
;
ba_struct_Point
pointD
;
};
#endif
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment