Added some documentation, fixed test and missing schedule

This commit is contained in:
robbe 2025-06-30 18:03:24 +02:00
parent ebfd85a666
commit fd6c8b4277
26 changed files with 1284 additions and 72 deletions

View file

@ -11,9 +11,14 @@ digraph G {
{% endfor %}
}
{% macro Node(label, id, ports_exec=[], ports_data=[]) %}
{% macro Node(label, id, ports_exec=[], ports_data=[], debug = False) %}
subgraph cluster_{{ id }} {
label = "{{ id }}__{{ label }}";
label = "
{%- if debug %}
{{ id }}_
{%- endif -%}
{{ label }}"
style = rounded;
input_{{ id }} [
shape=rect;
@ -54,7 +59,7 @@ output_{{ from_id }}:{{ prefix }}_{{ from_gate }} -> input_{{ to_id }}:{{ prefix
</TD></TR>
{% endif %}
{% else %}
<TR><TD>X</TD></TR>
<TR><TD>&nbsp;</TD></TR>
{% endif %}
</TABLE>>
{%- endmacro %}

View file

@ -31,7 +31,7 @@
{%- endmacro %}
{% macro Schedule(name, file) %}
{{ name }} = SubSchedule(schedular, "{{ file }}")
{{ name }} = SubSchedule(scheduler, "{{ file }}")
{%- endmacro %}
{% macro Loop(name) %}

View file

@ -16,7 +16,7 @@ class Schedule:
{% endfor %}
]
def init_schedule(self, schedular, rule_executer, matchers):
def init_schedule(self, scheduler, rule_executer, matchers):
{% for block in blocks_start_end%}
{{ block }}
{% endfor %}