A fully working version of the scheduling language with added examples
This commit is contained in:
parent
ec42f74960
commit
ebfd85a666
126 changed files with 7235 additions and 981 deletions
34
examples/geraniums/geraniums_renderer.j2
Normal file
34
examples/geraniums/geraniums_renderer.j2
Normal file
|
|
@ -0,0 +1,34 @@
|
|||
digraph G {
|
||||
rankdir=LR;
|
||||
center=true;
|
||||
margin=1;
|
||||
nodesep=1;
|
||||
|
||||
node [fontname="Arial", fontsize=10, shape=box, style=filled, fillcolor=white];
|
||||
|
||||
// Geraniums
|
||||
{% for id, name, flowering in geraniums %}
|
||||
g{{ id }} [
|
||||
label="geranium: {{ name }}\n({{ 'flowering' if flowering else 'not flowering' }})",
|
||||
shape=ellipse,
|
||||
fillcolor="{{ 'lightpink' if flowering else 'lightgray' }}",
|
||||
fontcolor=black
|
||||
];
|
||||
{% endfor %}
|
||||
|
||||
// Pots
|
||||
{% for id, name, cracked in pots %}
|
||||
p{{ id }} [
|
||||
label="pot: {{ name }}\n({{ 'cracked' if cracked else 'pristine' }})",
|
||||
shape=box,
|
||||
fillcolor="{{ 'mistyrose' if cracked else 'lightgreen' }}",
|
||||
fontcolor=black,
|
||||
style="filled,bold"
|
||||
];
|
||||
{% endfor %}
|
||||
|
||||
// Connections: geranium -> pot
|
||||
{% for source, target in planted %}
|
||||
g{{ source }} -> p{{ target }};
|
||||
{% endfor %}
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue