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

Prevent cyclic imports provided by user #84

Open
ferhaterata opened this issue Mar 11, 2017 · 1 comment
Open

Prevent cyclic imports provided by user #84

ferhaterata opened this issue Mar 11, 2017 · 1 comment

Comments

@ferhaterata
Copy link
Member

This enhancement is caused by #81

@ferhaterata
Copy link
Member Author

ferhaterata commented Mar 11, 2017

Import relation should form a DAG (Directed Acyclic Graph) in Instances.
InstanceImport may form a cycle only once, but cannot form a cycle more than once. This exception occurs when a model imports an instance that conforms to itself. Thus, the instance also imports model in the ModelImport section. The reason why we need to import an instance into a metamodel is to provide an instance specification (partial instance) to specify an initial state or a possible state of the system. We have not added the required language constructs for that. However, in annotations user is able to reference an instance, that is may be the instance that conforms the model in which the annotation resides.

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

2 participants