Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Types of Propagations/Lookups #74

Open
MartinLoeper opened this issue Aug 29, 2017 · 5 comments
Open

Types of Propagations/Lookups #74

MartinLoeper opened this issue Aug 29, 2017 · 5 comments

Comments

@MartinLoeper
Copy link
Owner

What are the types of Lookups we should support?
Is there something the Kamp Rule Language (KARL) is missing?

@MartinLoeper
Copy link
Owner Author

MartinLoeper commented Aug 31, 2017

The following method looks interesting. I do not know if it could be expressed as a BackwardRule.

lookUpAllUserActions in class BPArchitectureModelLookup

Edit: Yes, I could express the same functionality using a BackwardLookup.

@MartinLoeper
Copy link
Owner Author

What about BPArchitectureModelLookup#lookUpUserActionsUpToReleaseDeviceResource?

@MartinLoeper
Copy link
Owner Author

Example for RuleReference:

rule test: pcm::OperationSignature => RULE[lookUpEntryLevelSystemCallsWithSignatures];
	insert edu.kit.ipd.sdq.kamp4bp.model.modificationmarks.BPModificationmarksFactory#createBPModifyEntryLevelSystemCall
	into edu.kit.ipd.sdq.kamp4bp.model.modificationmarks.BPInterBusinessProcessPropagation#getAbstractUserActionModifications;

@MartinLoeper
Copy link
Owner Author

The method BPChangePropagationAnalysis#createAndAddInterfaceModifications creates the items ISModifySignature which have a special method getSignatureModifications(). We do not have any language feature to address this.

@MartinLoeper
Copy link
Owner Author

Adding sub modification marks imposes much complexity.
I would suggest to implement an API rather than a language feature. Some sort of observer pattern...
In order to accomplish that we could subclass a predefined Rule implementation (e.g. SubModificationMarkRule) using a langage feature such as:

rule[SubModificationMarkRule] RULE_NAME:

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant