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

Constraints should "produce" values. #5

Open
timtadh opened this issue Feb 24, 2012 · 1 comment
Open

Constraints should "produce" values. #5

timtadh opened this issue Feb 24, 2012 · 1 comment

Comments

@timtadh
Copy link
Owner

timtadh commented Feb 24, 2012

Allow constraints to be queried for specific values. Eg. if you have an AttrChain

NonTerm{2}.attribute 

and you want to know what set of values a constraint allows it have ask the constraint

obj = # the model of NonTerm{2}.attribute
values = constraint.produce(objs, obj)
# values is now the set of values the constraint requires the value of the obj to
# be in.
@timtadh
Copy link
Owner Author

timtadh commented Mar 1, 2012

Stubbed in, see commit ef706f1 . In-order to finish must implement issue #6.

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