add some comments

This commit is contained in:
Joeri Exelmans 2024-10-09 15:11:23 +02:00
parent 52ded8af77
commit d30844dddd

View file

@ -32,7 +32,7 @@ print(render_conformance_check_result(conf.check_nominal()))
woods_mm_cs = """
abstract class Animal
class Bear (Animal)
class Bear (Animal) # Bear inherits Animal
class Man [1..2] (Animal) {
Integer weight `get_value(get_target(this)) > 20`; # <- constraint in context of attribute-link
@ -58,7 +58,8 @@ woods_mm = parser_cd.parse_cd(
)
print("OK")
# As a double-check, you can serialize the parsed model:
# We can serialize the class diagram to our object diagram syntax
# (because the class diagram IS also an object diagram):
print("--------------")
print(indent(
renderer_od.render_od(state,