In this demo the Fox eats the Hare after the Hare eats the Grass.
eats(Food)
is a generic operation of Animal
which Fox and Hare inherit.
Grass has a Groovy script invoke
URI, and Grass - consumes -> Nutrients has a Java static method invoke
URI.
This page is mapped to Forest
with diagram elements mapped to livingBeings
reference as shown below:
type: Forest
features:
container:
self: livingBeings