Skip to content

Commit

Permalink
added support to pass config parameters during check
Browse files Browse the repository at this point in the history
  • Loading branch information
rsfzi committed May 13, 2024
1 parent e5b8ecc commit 6fae5d7
Show file tree
Hide file tree
Showing 5 changed files with 172 additions and 179 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -96,7 +96,7 @@ private boolean analyzeReconfiguration(UnitApplication app, Module module) {

@Override
public boolean runCheck(List<? extends ModelTransformation<? extends Object>> checks, EObject monitoredElement,
IResourceTableManager resourceTableManager) {
IResourceTableManager resourceTableManager, Map<String, Object> configParams) {
// TODO Auto-generated method stub
return false;
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -60,8 +60,8 @@ private QVTOExecutor getQVTOExecutor() {

@Override
public boolean runCheck(List<? extends ModelTransformation<? extends Object>> checks, EObject monitoredElement,
IResourceTableManager resourceTableManager) {
return this.runExecute(checks, monitoredElement, resourceTableManager);
IResourceTableManager resourceTableManager, Map<String, Object> configParams) {
return this.runExecute(checks, monitoredElement, resourceTableManager, configParams);
}

@Override
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,8 @@ public SDReconfigurator() {

@Override
public boolean runCheck(List<? extends ModelTransformation<? extends Object>> checks,
final EObject monitoredElement, IResourceTableManager resourceTableManager) {
final EObject monitoredElement, IResourceTableManager resourceTableManager,
Map<String, Object> configParams) {

ArrayList<SDModelTransformation> transformations = new ArrayList<>();
for (ModelTransformation<? extends Object> check : checks) {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ public interface IReconfigurationEngine extends Extension {
* negative/did not match
*/
boolean runCheck(List<? extends ModelTransformation<? extends Object>> checks, EObject monitoredElement,
IResourceTableManager resourceTableManager);
IResourceTableManager resourceTableManager, Map<String, Object> configParams);

/**
* Trigger a reconfiguration of the model@runtime. This method should only be called if the
Expand Down
Loading

0 comments on commit 6fae5d7

Please sign in to comment.