0-n Cardinality Constraint
Hi Everyone,
Is there any way to restrict the cardinality to some variable m where 1<m<n
If yes how to do it?
ex:
Constant: value
constant: value
...............
restrict its cardinality from 0...n to some user defined value
Is there any way to restrict the cardinality to some variable m where 1<m<n
If yes how to do it?
ex:
Constant: value
constant: value
...............
restrict its cardinality from 0...n to some user defined value
Please sign in to leave a comment.
E.g. the "can be parent" concept function:
concepts constraints Constants {
can be child <none>
can be root <none>
can be parent
(childConcept, node, childNode, operationContext, link)->boolean {
node.constants.size < 3;
}
can be ancestor <none>
<<property constraints>>
<<referent constraints>>
default scope
<no default scope>
}
It works