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

Properly inherit constraints for nested abstracts #31

Closed
mantkiew opened this issue Sep 5, 2016 · 1 comment
Closed

Properly inherit constraints for nested abstracts #31

mantkiew opened this issue Sep 5, 2016 · 1 comment
Assignees
Milestone

Comments

@mantkiew
Copy link
Member

mantkiew commented Sep 5, 2016

The constraints seem not to be inherited properly:

abstract Component
    abstract Port
        throughput -> integer // [Mbit/s]
    abstract Port10Mbit : Port
        [ throughput = 10 ]

abstract Port100Mbit : Port
    [ throughput = 100 ]

C1 : Component
    R1 : Port10Mbit
    R2 : Port100Mbit

The expected instance (produced by AlloyIG) is:

C1
  R1
    throughput$1 -> 10
  R2
    throughput$2 -> 100

However, chocosolver produces:

C1
  R1
    throughput -> -1001
  R2
    throughput$1 -> -1001
@JLiangWaterloo
Copy link
Member

JLiangWaterloo commented Sep 7, 2016

Fixed.

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

No branches or pull requests

2 participants