Journey
The following classes can be useful when creating journey diagrams:
siren
journey
journeyConfig
Workday
- F#
- C#
- Python
- JavaScript
let Me, Cat = "Me", "Cat"
siren.journey [
journey.title "My working day"
journey.section "Go to work"
journey.task("Make tea", 5, [Me])
journey.task("Go upstairs", 3, [Me])
journey.task("Do work", 1, [Me; Cat])
journey.section "Go home"
journey.task("Go downstairs", 5, [Me])
journey.task("Sit down", 5, [Me])
]
|> siren.write
(string Me, string Cat) = ("Me", "Cat");
string actual = siren.journey([
journey.title("My working day"),
journey.section("Go to work"),
journey.task("Make tea", 5, [Me]),
journey.task("Go upstairs", 3, [Me]),
journey.task("Do work", 1, [Me, Cat]),
journey.section("Go home"),
journey.task("Go downstairs", 5, [Me]),
journey.task("Sit down", 5, [Me])
]).write();
Me, Cat = "Me", "Cat"
actual = (
siren.journey([
journey.title("My working day"),
journey.section("Go to work"),
journey.task("Make tea", 5, [Me]),
journey.task("Go upstairs", 3, [Me]),
journey.task("Do work", 1, [Me, Cat]),
journey.section("Go home"),
journey.task("Go downstairs", 5, [Me]),
journey.task("Sit down", 5, [Me])
]).write()
)
const [Me, Cat] = ["Me", "Cat"];
const actual =
siren.journey([
journey.title("My working day"),
journey.section("Go to work"),
journey.task("Make tea", 5, [Me]),
journey.task("Go upstairs", 3, [Me]),
journey.task("Do work", 1, [Me, Cat]),
journey.section("Go home"),
journey.task("Go downstairs", 5, [Me]),
journey.task("Sit down", 5, [Me])
]).write();
- Graph
- Output
journey
title My working day
section Go to work
Make tea: 5: Me
Go upstairs: 3: Me
Do work: 1: Me, Cat
section Go home
Go downstairs: 5: Me
Sit down: 5: Me