EventModelingDiagram Class

An event model: a timeline of frames (screens, processors, commands, read models and events) placed in swimlanes, left to right in order, with the relations between them inferred or explicit (Mermaid eventmodeling).

public sealed class EventModelingDiagram : Diagram
Inheritance
Diagram EventModelingDiagram

Constructors

NameDescription
EventModelingDiagram()

EventModelingDiagram()

EventModelingDiagram.cs
public EventModelingDiagram()

No documentation is available.

Properties

NameDescription
DataBlocksGets the data blocks that frames reference.
EntitiesGets the names of the declared entities (Mermaid entity), which the scenarios name. They are not drawn.
FramesGets the frames of the timeline, drawn left to right in order.
NotesGets the notes attached to frames. They are not drawn.
ScenariosGets the given/when/then scenarios of frames (Mermaid gwt). They are not drawn.

Gets the data blocks that frames reference.

public IList<EventModelingDataBlock> DataBlocks { get; }

Gets the names of the declared entities (Mermaid entity), which the scenarios name. They are not drawn.

public IList<string> Entities { get; }

Property value

IList<string>

Gets the frames of the timeline, drawn left to right in order.

public IList<EventModelingFrame> Frames { get; }

Gets the notes attached to frames. They are not drawn.

public IList<EventModelingNote> Notes { get; }

Gets the given/when/then scenarios of frames (Mermaid gwt). They are not drawn.

public IList<EventModelingScenario> Scenarios { get; }

Methods

NameDescription
AddFrame(string, EventModelingEntityKind, string)Adds a frame at the end of the timeline.
Find(string)Finds a frame by identifier.

AddFrame(string, EventModelingEntityKind, string)

EventModelingDiagram.cs

Adds a frame at the end of the timeline.

public EventModelingFrame AddFrame(string id, EventModelingEntityKind kind, string entity)

Parameters

id string
The identifier: one to three digits, unique in the diagram.
kind EventModelingEntityKind
The kind of the entity of the frame.
entity string
The name of the entity, such as AddItem, or Cart.AddItem to put it in the swimlane of the namespace Cart.

Returns

EventModelingFrame The frame.

Finds a frame by identifier.

public EventModelingFrame? Find(string id)

Parameters

id string
The identifier.

Returns

EventModelingFrame? The frame, or null when there is none.