Skip to content
This repository has been archived by the owner on Oct 3, 2024. It is now read-only.

Commit

Permalink
Fixes #126
Browse files Browse the repository at this point in the history
Do not check for missing propagation path when instance root component.
Also check only for appropriate direction.
  • Loading branch information
reteprelief committed Apr 11, 2017
1 parent cc43aa8 commit 5cf3789
Showing 1 changed file with 8 additions and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -303,9 +303,10 @@ protected void checkComponent(ComponentInstance componentInstance, AnalysisModel
}
}

if (model.getAllPropagationPaths(componentInstance, ep).size() == 0) {
error(componentInstance,
"Outgoing propagation " + EMV2Util.getPrintName(ep) + " not correctly handled");
if (!(componentInstance instanceof SystemInstance) && ep.getDirection() == DirectionType.OUT
&& model.getAllPropagationPaths(componentInstance, ep).size() == 0) {
error(componentInstance, "Outgoing propagation " + EMV2Util.getPrintName(ep)
+ " is missing outgoing propagation paths");

// OsateDebug.osateDebug("Component " + componentInstance + " does not handle OUT propagation " +
// ep.getName());
Expand Down Expand Up @@ -349,9 +350,10 @@ protected void checkComponent(ComponentInstance componentInstance, AnalysisModel
}
for (ErrorPropagation ep : EMV2Util
.getAllIncomingErrorPropagations(componentInstance.getComponentClassifier())) {
if (model.getAllPropagationSourceEnds(componentInstance, ep).size() == 0) {
error(componentInstance,
"Incoming propagation " + EMV2Util.getPrintName(ep) + " not correctly handled");
if (!(componentInstance instanceof SystemInstance) && ep.getDirection() == DirectionType.IN
&& model.getAllPropagationSourceEnds(componentInstance, ep).size() == 0) {
error(componentInstance, "Incoming propagation " + EMV2Util.getPrintName(ep)
+ " is missing incoming propagation paths");

// OsateDebug.osateDebug("Component " + componentInstance + " does not handle IN propagation " +
// ep.getName());
Expand Down

0 comments on commit 5cf3789

Please sign in to comment.