Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
monticore
EmbeddedMontiArc
generators
EMAM2RosMsg
Commits
55b65b9c
Commit
55b65b9c
authored
Apr 13, 2019
by
Alexander David Hellwig
Browse files
Added ports of subcomponents to msg gen
parent
1cdac34a
Pipeline
#118295
passed with stages
in 2 minutes and 14 seconds
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
src/main/java/de/monticore/lang/monticar/generator/rosmsg/GeneratorRosMsg.java
View file @
55b65b9c
...
...
@@ -20,6 +20,7 @@ import java.io.File;
import
java.io.IOException
;
import
java.util.*
;
import
java.util.stream.Collectors
;
import
java.util.stream.Stream
;
public
class
GeneratorRosMsg
{
private
String
path
;
...
...
@@ -293,7 +294,9 @@ public class GeneratorRosMsg {
}
public
List
<
File
>
generateProject
(
EMAComponentInstanceSymbol
component
)
throws
IOException
{
List
<
MCTypeReference
<?
extends
MCTypeSymbol
>>
typeReferences
=
component
.
getPortInstanceList
().
stream
()
Stream
<
EMAPortInstanceSymbol
>
p
=
component
.
getPortInstanceList
().
stream
();
Stream
<
EMAPortInstanceSymbol
>
subp
=
component
.
getSubComponents
().
stream
().
flatMap
(
sc
->
sc
.
getPortInstanceList
().
stream
());
List
<
MCTypeReference
<?
extends
MCTypeSymbol
>>
typeReferences
=
Stream
.
concat
(
p
,
subp
)
.
map
(
EMAPortInstanceSymbol:
:
getTypeReference
)
.
filter
(
SymbolReference:
:
existsReferencedSymbol
)
.
filter
(
mcTypeReference
->
mcTypeReference
.
getReferencedSymbol
()
instanceof
StructSymbol
)
...
...
Write
Preview
Supports
Markdown
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