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
04273ca9
Commit
04273ca9
authored
Apr 09, 2019
by
Alexander David Hellwig
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Rename value ports to val
parent
9e639bd1
Changes
10
Hide whitespace changes
Inline
Side-by-side
Showing
10 changed files
with
38 additions
and
38 deletions
+38
-38
src/test/resources/pacman/de/rwth/pacman/heithoff2/coneSearch/CombineValues.emam
...an/de/rwth/pacman/heithoff2/coneSearch/CombineValues.emam
+2
-2
src/test/resources/pacman/de/rwth/pacman/heithoff2/coneSearch/ConeSearches.emam
...man/de/rwth/pacman/heithoff2/coneSearch/ConeSearches.emam
+12
-12
src/test/resources/pacman/de/rwth/pacman/heithoff2/coneSearch/coinSearch/SearchCoinsBottom.emam
...an/heithoff2/coneSearch/coinSearch/SearchCoinsBottom.emam
+3
-3
src/test/resources/pacman/de/rwth/pacman/heithoff2/coneSearch/coinSearch/SearchCoinsLeft.emam
...cman/heithoff2/coneSearch/coinSearch/SearchCoinsLeft.emam
+3
-3
src/test/resources/pacman/de/rwth/pacman/heithoff2/coneSearch/coinSearch/SearchCoinsRight.emam
...man/heithoff2/coneSearch/coinSearch/SearchCoinsRight.emam
+3
-3
src/test/resources/pacman/de/rwth/pacman/heithoff2/coneSearch/coinSearch/SearchCoinsTop.emam
...acman/heithoff2/coneSearch/coinSearch/SearchCoinsTop.emam
+3
-3
src/test/resources/pacman/de/rwth/pacman/heithoff2/coneSearch/enemySearch/SearchEnemiesBottom.emam
...heithoff2/coneSearch/enemySearch/SearchEnemiesBottom.emam
+3
-3
src/test/resources/pacman/de/rwth/pacman/heithoff2/coneSearch/enemySearch/SearchEnemiesLeft.emam
...n/heithoff2/coneSearch/enemySearch/SearchEnemiesLeft.emam
+3
-3
src/test/resources/pacman/de/rwth/pacman/heithoff2/coneSearch/enemySearch/SearchEnemiesRight.emam
.../heithoff2/coneSearch/enemySearch/SearchEnemiesRight.emam
+3
-3
src/test/resources/pacman/de/rwth/pacman/heithoff2/coneSearch/enemySearch/SearchEnemiesTop.emam
...an/heithoff2/coneSearch/enemySearch/SearchEnemiesTop.emam
+3
-3
No files found.
src/test/resources/pacman/de/rwth/pacman/heithoff2/coneSearch/CombineValues.emam
View file @
04273ca9
...
...
@@ -7,11 +7,11 @@ component CombineValues {
in
Z
valueCoins
,
in
Z
valueEnemies
,
out
Z
val
ue
;
out
Z
val
;
implementation
Math
{
//
some
weightning
here
val
ue
=
valueCoins
+
valueEnemies
;
val
=
valueCoins
+
valueEnemies
;
}
}
\ No newline at end of file
src/test/resources/pacman/de/rwth/pacman/heithoff2/coneSearch/ConeSearches.emam
View file @
04273ca9
...
...
@@ -55,22 +55,22 @@ component ConeSearches {
connect
enemiesWeights
.
towardsPacMan
->
enemiesTop
.
ghostFacingPacManWight
,
enemiesBottom
.
ghostFacingPacManWight
,
enemiesLeft
.
ghostFacingPacManWight
,
enemiesRight
.
ghostFacingPacManWight
;
connect
enemiesWeights
.
eatable
->
enemiesTop
.
ghostEatableWeight
,
enemiesBottom
.
ghostEatableWeight
,
enemiesLeft
.
ghostEatableWeight
,
enemiesRight
.
ghostEatableWeight
;
connect
coinsTop
.
val
ue
->
enhancer
.
valueIn
[
1
];
connect
coinsBottom
.
val
ue
->
enhancer
.
valueIn
[
2
];
connect
coinsLeft
.
val
ue
->
enhancer
.
valueIn
[
3
];
connect
coinsRight
.
val
ue
->
enhancer
.
valueIn
[
4
];
connect
coinsTop
.
val
->
enhancer
.
valueIn
[
1
];
connect
coinsBottom
.
val
->
enhancer
.
valueIn
[
2
];
connect
coinsLeft
.
val
->
enhancer
.
valueIn
[
3
];
connect
coinsRight
.
val
->
enhancer
.
valueIn
[
4
];
connect
enhancer
.
valueOut
[
1
]
->
combine1
.
valueCoins
;
connect
enhancer
.
valueOut
[
2
]
->
combine2
.
valueCoins
;
connect
enhancer
.
valueOut
[
3
]
->
combine3
.
valueCoins
;
connect
enhancer
.
valueOut
[
4
]
->
combine4
.
valueCoins
;
connect
enemiesTop
.
val
ue
->
combine1
.
valueEnemies
;
connect
enemiesBottom
.
val
ue
->
combine2
.
valueEnemies
;
connect
enemiesLeft
.
val
ue
->
combine3
.
valueEnemies
;
connect
enemiesRight
.
val
ue
->
combine4
.
valueEnemies
;
connect
enemiesTop
.
val
->
combine1
.
valueEnemies
;
connect
enemiesBottom
.
val
->
combine2
.
valueEnemies
;
connect
enemiesLeft
.
val
->
combine3
.
valueEnemies
;
connect
enemiesRight
.
val
->
combine4
.
valueEnemies
;
connect
combine1
.
val
ue
->
topValue
;
connect
combine2
.
val
ue
->
bottomValue
;
connect
combine3
.
val
ue
->
leftValue
;
connect
combine4
.
val
ue
->
rightValue
;
connect
combine1
.
val
->
topValue
;
connect
combine2
.
val
->
bottomValue
;
connect
combine3
.
val
->
leftValue
;
connect
combine4
.
val
->
rightValue
;
}
\ No newline at end of file
src/test/resources/pacman/de/rwth/pacman/heithoff2/coneSearch/coinSearch/SearchCoinsBottom.emam
View file @
04273ca9
...
...
@@ -8,10 +8,10 @@ component SearchCoinsBottom {
in
Z
buiscuitWeight
,
in
Z
coinWeight
,
out
Z
val
ue
;
out
Z
val
;
implementation
Math
{
val
ue
=
0
;
val
=
0
;
for
i
=
1
:
21
Z
indexY
=
round
(
currentY
)
+
i
+
1
;
if
indexY
<
22
...
...
@@ -27,7 +27,7 @@ component SearchCoinsBottom {
multBy
=
coinWeight
;
end
Q
dist
=
sqrt
(
i
*
i
+
j
*
j
);
val
ue
=
value
+
(
multBy
/(
dist
*
dist
));
val
=
val
+
(
multBy
/(
dist
*
dist
));
end
end
end
...
...
src/test/resources/pacman/de/rwth/pacman/heithoff2/coneSearch/coinSearch/SearchCoinsLeft.emam
View file @
04273ca9
...
...
@@ -8,10 +8,10 @@ component SearchCoinsLeft {
in
Z
buiscuitWeight
,
in
Z
coinWeight
,
out
Z
val
ue
;
out
Z
val
;
implementation
Math
{
val
ue
=
0
;
val
=
0
;
for
i
=
1
:
18
Z
indexX
=
currentX
-
i
+
1
;
if
indexX
>
0
...
...
@@ -27,7 +27,7 @@ component SearchCoinsLeft {
multBy
=
coinWeight
;
end
Q
dist
=
sqrt
(
i
*
i
+
j
*
j
);
val
ue
=
value
+
(
multBy
/(
dist
*
dist
));
val
=
val
+
(
multBy
/(
dist
*
dist
));
end
end
end
...
...
src/test/resources/pacman/de/rwth/pacman/heithoff2/coneSearch/coinSearch/SearchCoinsRight.emam
View file @
04273ca9
...
...
@@ -8,10 +8,10 @@ component SearchCoinsRight {
in
Z
buiscuitWeight
,
in
Z
coinWeight
,
out
Z
val
ue
;
out
Z
val
;
implementation
Math
{
val
ue
=
0
;
val
=
0
;
for
i
=
1
:
18
Z
indexX
=
round
(
currentX
)
+
i
+
1
;
if
indexX
<
19
...
...
@@ -27,7 +27,7 @@ component SearchCoinsRight {
multBy
=
coinWeight
;
end
Q
dist
=
sqrt
(
i
*
i
+
j
*
j
);
val
ue
=
value
+
(
multBy
/(
dist
*
dist
));
val
=
val
+
(
multBy
/(
dist
*
dist
));
end
end
end
...
...
src/test/resources/pacman/de/rwth/pacman/heithoff2/coneSearch/coinSearch/SearchCoinsTop.emam
View file @
04273ca9
...
...
@@ -8,10 +8,10 @@ component SearchCoinsTop {
in
Z
buiscuitWeight
,
in
Z
coinWeight
,
out
Z
val
ue
;
out
Z
val
;
implementation
Math
{
val
ue
=
0
;
val
=
0
;
for
i
=
1
:
21
Z
indexY
=
currentY
-
i
+
1
;
if
indexY
>
0
...
...
@@ -27,7 +27,7 @@ component SearchCoinsTop {
multBy
=
coinWeight
;
end
Q
dist
=
sqrt
(
i
*
i
+
j
*
j
);
val
ue
=
value
+
(
multBy
/(
dist
*
dist
));
val
=
val
+
(
multBy
/(
dist
*
dist
));
end
end
end
...
...
src/test/resources/pacman/de/rwth/pacman/heithoff2/coneSearch/enemySearch/SearchEnemiesBottom.emam
View file @
04273ca9
...
...
@@ -12,10 +12,10 @@ component SearchEnemiesBottom {
in
Z
ghostFacingPacManWight
,
in
Z
ghostEatableWeight
,
out
Z
val
ue
;
out
Z
val
;
implementation
Math
{
val
ue
=
0
;
val
=
0
;
for
i
=
1
:
8
Z
indexY
=
round
(
currentY
)
+
i
;
if
indexY
<
22
...
...
@@ -34,7 +34,7 @@ component SearchEnemiesBottom {
multiplyer
=
ghostEatableWeight
;
end
Q
dist
=
sqrt
(
i
*
i
+
j
*
j
);
val
ue
=
value
+
(
multiplyer
/
dist
);
val
=
val
+
(
multiplyer
/
dist
);
end
end
end
...
...
src/test/resources/pacman/de/rwth/pacman/heithoff2/coneSearch/enemySearch/SearchEnemiesLeft.emam
View file @
04273ca9
...
...
@@ -12,10 +12,10 @@ component SearchEnemiesLeft {
in
Z
ghostFacingPacManWight
,
in
Z
ghostEatableWeight
,
out
Z
val
ue
;
out
Z
val
;
implementation
Math
{
val
ue
=
0
;
val
=
0
;
for
i
=
1
:
8
Z
indexX
=
round
(
currentX
)
-
i
;
if
indexX
>
0
...
...
@@ -34,7 +34,7 @@ component SearchEnemiesLeft {
multiplyer
=
ghostEatableWeight
;
end
Q
dist
=
sqrt
(
i
*
i
+
j
*
j
);
val
ue
=
value
+
(
multiplyer
/
dist
);
val
=
val
+
(
multiplyer
/
dist
);
end
end
end
...
...
src/test/resources/pacman/de/rwth/pacman/heithoff2/coneSearch/enemySearch/SearchEnemiesRight.emam
View file @
04273ca9
...
...
@@ -12,10 +12,10 @@ component SearchEnemiesRight {
in
Z
ghostFacingPacManWight
,
in
Z
ghostEatableWeight
,
out
Z
val
ue
;
out
Z
val
;
implementation
Math
{
val
ue
=
0
;
val
=
0
;
for
i
=
1
:
8
Z
indexX
=
round
(
currentX
)
+
i
;
if
indexX
<
19
...
...
@@ -34,7 +34,7 @@ component SearchEnemiesRight {
multiplyer
=
ghostEatableWeight
;
end
Q
dist
=
sqrt
(
i
*
i
+
j
*
j
);
val
ue
=
value
+
(
multiplyer
/
dist
);
val
=
val
+
(
multiplyer
/
dist
);
end
end
end
...
...
src/test/resources/pacman/de/rwth/pacman/heithoff2/coneSearch/enemySearch/SearchEnemiesTop.emam
View file @
04273ca9
...
...
@@ -12,10 +12,10 @@ component SearchEnemiesTop {
in
Z
ghostFacingPacManWight
,
in
Z
ghostEatableWeight
,
out
Z
val
ue
;
out
Z
val
;
implementation
Math
{
val
ue
=
0
;
val
=
0
;
for
i
=
1
:
8
Z
indexY
=
round
(
currentY
)
-
i
;
if
indexY
>
0
...
...
@@ -34,7 +34,7 @@ component SearchEnemiesTop {
multiplyer
=
ghostEatableWeight
;
end
Q
dist
=
sqrt
(
i
*
i
+
j
*
j
);
val
ue
=
value
+
(
multiplyer
/
dist
);
val
=
val
+
(
multiplyer
/
dist
);
end
end
end
...
...
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