123456789101112131415161718192021222324252627282930313233 |
- include "primitives.alh"
- include "modelling.alh"
- include "object_operations.alh"
- A B {
- Composite schedule {
- {Contains} Failure failure {}
- {Contains} Success success {}
- {Contains} Query match {
- LHS {
- Pre_Query/Place {
- label = "2"
- }
- Pre_ReachabilityGraph/Place pre_3 {
- label = "3"
- }
- constraint = $
- Boolean function constraint(host_model : Element, mapping : Element):
- Boolean names_match
- Boolean tokens_match
- names_match = value_eq(read_attribute(host_model, mapping["2"], "name"), read_attribute(host_model, mapping["3"], "name"))
- tokens_match = value_eq(read_attribute(host_model, mapping["2"], "tokens"), read_attribute(host_model, mapping["3"], "tokens"))
- return bool_and(names_match, tokens_match)!
- $
- }
- }
- }
- Initial (schedule, match) {}
- OnSuccess (match, success) {}
- OnFailure (match, failure) {}
- }
|