Left-to-Right Layout

Generated by GenServerVirtualTime โ€ข Mermaid Flowchart

๐Ÿ“ˆ Simulation Summary

Virtual Time
300ms
Real Time
3ms
Speedup
100.0x
Termination
โฑ Max Time

๐Ÿ“Š Actor Topology

flowchart LR left(["left
๐Ÿ“ค Sent: 3
๐Ÿ“ฅ Recv: 0"]) right["right
๐Ÿ“ค Sent: 0
๐Ÿ“ฅ Recv: 3"] left -->|:msg
every 100ms| right style left fill:#e3f2fd,stroke:#1976d2 style right fill:#e3f2fd,stroke:#1976d2

Node Shapes (Actor Type)

flowchart TD legend_source(["Source
(sends only)"]) legend_sink["Sink
(receives only)"] style legend_source fill:#ffffff,stroke:#666666,stroke-width:2px style legend_sink fill:#ffffff,stroke:#666666,stroke-width:2px

Node Colors (Activity Level)

flowchart LR activity_0["๐Ÿ”ต Low Activity (<10 msgs)"] style activity_0 fill:#e3f2fd,stroke:#1976d2

๐Ÿ“‰ Detailed Statistics

Actor Sent Received Send Rate Receive Rate Activity
left 3 0 10.0 msg/s 0.0 msg/s 3 total
right 0 3 0.0 msg/s 10.0 msg/s 3 total
Summary: Total messages: 6 โ€ข Duration: 300ms โ€ข Actors: 2

๐Ÿ’ป Model Source Code

This is the Elixir code that defines the actor simulation model:

simulation =
  ActorSimulation.new()
  |> ActorSimulation.add_actor(:left,
    send_pattern: {:periodic, 100, :msg},
    targets: [:right]
  )
  |> ActorSimulation.add_actor(:right)
  |> ActorSimulation.run(duration: 300)