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
languages
EmbeddedMontiArc
Commits
6fb7774b
Commit
6fb7774b
authored
Jul 04, 2019
by
Markus Georg Bendel
Browse files
Update SomeIPConnectionSymbol
parent
dd8a58ca
Pipeline
#156911
failed with stage
in 1 minute and 47 seconds
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
src/main/java/de/monticore/lang/embeddedmontiarc/tagging/middleware/someip/SomeIPConnectionSymbol.java
View file @
6fb7774b
...
...
@@ -13,53 +13,45 @@ public class SomeIPConnectionSymbol extends MiddlewareSymbol {
super
(
KIND
,
Optional
.
empty
(),
Optional
.
empty
(),
Optional
.
empty
());
}
public
SomeIPConnectionSymbol
(
String
id
)
{
this
(
KIND
,
id
);
}
public
SomeIPConnectionSymbol
(
SomeIPConnectionKind
kind
,
String
id
)
{
super
(
kind
,
Optional
.
ofNullable
(
id
));
}
public
SomeIPConnectionSymbol
(
String
serviceID
,
String
instanceID
){
public
SomeIPConnectionSymbol
(
int
serviceID
,
int
instanceID
){
this
(
KIND
,
serviceID
,
instanceID
);
}
public
SomeIPConnectionSymbol
(
Str
in
g
serviceID
,
Str
in
g
instanceID
,
Str
in
g
eventgroupID
)
{
public
SomeIPConnectionSymbol
(
in
t
serviceID
,
in
t
instanceID
,
in
t
eventgroupID
)
{
this
(
KIND
,
serviceID
,
instanceID
,
eventgroupID
);
}
protected
SomeIPConnectionSymbol
(
SomeIPConnectionKind
kind
,
Str
in
g
serviceID
,
Str
in
g
instanceID
,
Str
in
g
eventgroupID
)
{
protected
SomeIPConnectionSymbol
(
SomeIPConnectionKind
kind
,
in
t
serviceID
,
in
t
instanceID
,
in
t
eventgroupID
)
{
super
(
kind
,
Optional
.
ofNullable
(
serviceID
),
Optional
.
ofNullable
(
instanceID
),
Optional
.
ofNullable
(
eventgroupID
));
}
@Override
public
String
toString
()
{
return
String
.
format
(
"SomeIPConnection = %
s
, %
s
, %
s
"
,
return
String
.
format
(
"SomeIPConnection = %
d
, %
d
, %
d
"
,
getserviceID
(),
getinstanceID
(),
geteventgroupID
());
}
public
Optional
<
String
>
getserviceID
()
{
public
Optional
<
Integer
>
getserviceID
()
{
return
getValue
(
0
);
}
public
Optional
<
String
>
getinstanceID
()
{
public
Optional
<
Integer
>
getinstanceID
()
{
return
getValue
(
1
);
}
public
Optional
<
String
>
geteventgroupID
()
{
public
Optional
<
Integer
>
geteventgroupID
()
{
return
getValue
(
2
);
}
public
void
setserviceID
(
Str
in
g
serviceID
)
{
public
void
setserviceID
(
in
t
serviceID
)
{
this
.
values
.
set
(
0
,
Optional
.
ofNullable
(
serviceID
));
}
public
void
setinstanceID
(
Str
in
g
instanceID
)
{
public
void
setinstanceID
(
in
t
instanceID
)
{
this
.
values
.
set
(
1
,
Optional
.
ofNullable
(
instanceID
));
}
public
void
seteventgroupID
(
Str
in
g
eventgroupID
)
{
public
void
seteventgroupID
(
in
t
eventgroupID
)
{
this
.
values
.
set
(
2
,
Optional
.
ofNullable
(
eventgroupID
));
}
...
...
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