Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
TTool
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Deploy
Releases
Container registry
Model registry
Operate
Environments
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
mbe-tools
TTool
Commits
5f282c49
Commit
5f282c49
authored
9 years ago
by
Ludovic Apvrille
Browse files
Options
Downloads
Patches
Plain Diff
Update on avatar: bug when adding attributes to blocks in avatar data stucture
parent
fe179de9
No related branches found
No related tags found
No related merge requests found
Changes
2
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
modeling/MicroWaveOven_SafetySecurity_fullMethodo.xml
+2237
-2237
2237 additions, 2237 deletions
modeling/MicroWaveOven_SafetySecurity_fullMethodo.xml
src/avatartranslator/AvatarBlock.java
+9
-3
9 additions, 3 deletions
src/avatartranslator/AvatarBlock.java
with
2246 additions
and
2240 deletions
modeling/MicroWaveOven_SafetySecurity_fullMethodo.xml
+
2237
−
2237
View file @
5f282c49
This diff is collapsed.
Click to expand it.
src/avatartranslator/AvatarBlock.java
+
9
−
3
View file @
5f282c49
...
...
@@ -106,9 +106,9 @@ public class AvatarBlock extends AvatarElement {
return
asm
;
}
public
void
addAttribute
(
AvatarAttribute
_attribute
)
{
/*
public void addAttribute(AvatarAttribute _attribute) {
attributes.add(_attribute);
}
}*/
public
void
addMethod
(
AvatarMethod
_method
)
{
methods
.
add
(
_method
);
...
...
@@ -148,10 +148,16 @@ public class AvatarBlock extends AvatarElement {
this
.
avspec
.
addConstant
(
_constant
);
}
public
void
addAttribute
(
AvatarAttribute
_aa
)
{
if
(
getAvatarAttributeWithName
(
_aa
.
getName
())
==
null
)
{
attributes
.
add
(
_aa
);
}
}
public
void
addIntAttributeIfApplicable
(
String
_name
)
{
if
(
getAvatarAttributeWithName
(
_name
)
==
null
)
{
AvatarAttribute
aa
=
new
AvatarAttribute
(
_name
,
AvatarType
.
INTEGER
,
this
,
null
);
a
ddA
ttribute
(
aa
);
attribute
s
.
add
(
aa
);
}
}
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment