Skip to content

Commit

Permalink
Handles incompatibility between actions in imported models
Browse files Browse the repository at this point in the history
And correctly reports in which models the actions are defined.
  • Loading branch information
AlexisDrogoul committed Dec 29, 2021
1 parent af3a507 commit dd9e554
Show file tree
Hide file tree
Showing 4 changed files with 351 additions and 30 deletions.
@@ -1,7 +1,7 @@
/*******************************************************************************************************
*
* SymbolDescription.java, in msi.gama.core, is part of the source code of the GAMA modeling and simulation platform
* (v.2.0.0).
* (v.1.8.2).
*
* (c) 2007-2021 UMI 209 UMMISCO IRD/SU & Partners (IRIT, MIAT, TLU, CTU)
*
Expand Down Expand Up @@ -98,7 +98,10 @@ public SymbolDescription(final String keyword, final IDescription superDesc, fin
this.keyword = keyword;
this.facets = facets;
element = source;
if (superDesc != null) { originName = superDesc.getName(); }
if (facets != null && facets.containsKey(ORIGIN)) {
originName = facets.getLabel(ORIGIN);
facets.remove(ORIGIN);
} else if (superDesc != null) { originName = superDesc.getName(); }
setEnclosingDescription(superDesc);
proto = DescriptionFactory.getProto(getKeyword(), getSpeciesContext());
}
Expand Down

0 comments on commit dd9e554

Please sign in to comment.