Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
R
riseclipse-metamodel-scl2003
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Container Registry
Model registry
Operate
Environments
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD 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
This is an archived project. Repository and other project resources are read-only.
Show more breadcrumbs
RiseClipseGroup
riseclipse-metamodel-scl2003
Commits
9ac51b77
Commit
9ac51b77
authored
5 years ago
by
Dominique Marcadet
Browse files
Options
Downloads
Patches
Plain Diff
find link from DAI to ADA when ParentSDI refers to SDO
parent
5fd5377b
No related branches found
No related tags found
1 merge request
!56
Resolve "link from DAI to AbstractDataAttribute not built when parentSDI refers to SDO"
Pipeline
#1653
passed
5 years ago
Stage: build
Stage: deploy
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
fr.centralesupelec.edf.riseclipse.iec61850.scl/src/fr/centralesupelec/edf/riseclipse/iec61850/scl/impl/DAIImpl.java
+28
-1
28 additions, 1 deletion
...ralesupelec/edf/riseclipse/iec61850/scl/impl/DAIImpl.java
with
28 additions
and
1 deletion
fr.centralesupelec.edf.riseclipse.iec61850.scl/src/fr/centralesupelec/edf/riseclipse/iec61850/scl/impl/DAIImpl.java
+
28
−
1
View file @
9ac51b77
...
...
@@ -44,6 +44,7 @@ import fr.centralesupelec.edf.riseclipse.iec61850.scl.DO;
import
fr.centralesupelec.edf.riseclipse.iec61850.scl.DOI
;
import
fr.centralesupelec.edf.riseclipse.iec61850.scl.DOType
;
import
fr.centralesupelec.edf.riseclipse.iec61850.scl.SDI
;
import
fr.centralesupelec.edf.riseclipse.iec61850.scl.SDO
;
import
fr.centralesupelec.edf.riseclipse.iec61850.scl.SclPackage
;
import
fr.centralesupelec.edf.riseclipse.iec61850.scl.Val
;
import
fr.centralesupelec.edf.riseclipse.iec61850.scl.ValKindEnum
;
...
...
@@ -1062,7 +1063,33 @@ public class DAIImpl extends UnNamingImpl implements DAI {
private
void
doBuildExplicitLinkWithParentSDI
(
IRiseClipseConsole
console
,
String
messagePrefix
)
{
// No error or warning messages here: if this happens, error should have been detected before
AbstractDataAttribute
att
=
getParentSDI
().
getRefersToAbstractDataAttribute
();
if
(
att
==
null
)
return
;
if
(
att
==
null
)
{
// SDI may refers also to an SDO
SDO
sdo
=
getParentSDI
().
getRefersToSDO
();
if
(
sdo
==
null
)
return
;
sdo
.
buildExplicitLinks
(
console
,
false
);
console
.
verbose
(
messagePrefix
,
"found SDO on line "
,
sdo
.
getLineNumber
()
);
DOType
dot
=
sdo
.
getRefersToDOType
();
// No error or warning message here: if this happens, error should have been detected before
if
(
dot
==
null
)
return
;
console
.
verbose
(
messagePrefix
,
"found DOType on line "
,
dot
.
getLineNumber
()
);
List
<
DA
>
res
=
dot
.
getDA
()
.
stream
()
.
filter
(
d
->
getName
().
equals
(
d
.
getName
()
)
)
.
collect
(
Collectors
.
toList
()
);
String
mess
=
"DA( name = "
+
getName
()
+
" )"
;
if
(
res
.
size
()
!=
1
)
{
SclUtilities
.
displayNotFoundWarning
(
console
,
messagePrefix
,
mess
,
res
.
size
()
);
return
;
}
setRefersToAbstractDataAttribute
(
res
.
get
(
0
)
);
console
.
info
(
"[SCL links] DAI on line "
,
getLineNumber
(),
" refers to "
,
mess
,
" on line "
,
getRefersToAbstractDataAttribute
().
getLineNumber
()
);
return
;
}
att
.
buildExplicitLinks
(
console
,
false
);
console
.
verbose
(
messagePrefix
,
"found AbstractDataAttribute on line "
,
att
.
getLineNumber
()
);
...
...
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