Skip to content

Constraints should "produce" values. #5

Description

@timtadh

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.

Metadata

Metadata

Assignees

No one assigned

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions