TopologyScenario
ChartForgeX.Topology
Describes an interactive path or story through a topology chart.
Inheritance
- object
- TopologyScenario
Usage
Explore 66 API references to this type
This type appears in these public API surfaces even when no hand-authored example is attached directly to the page.
Returned or exposed by 30
- Property TopologyChart.Scenarios
- Method TopologyChartExtensions.AddEdgeStep
- Method TopologyChartExtensions.AddMessageStep
- Method TopologyChartExtensions.AddNodeStep
- Method TopologyChartExtensions.Metadata
- Property TopologyResolvedScenario.Scenario
- Extension method TopologyScenario.AddEdgeStep
- Extension method TopologyScenario.AddMessageStep
- Extension method TopologyScenario.AddNodeStep
- Extension method TopologyScenario.AutoPlay
- Extension method TopologyScenario.Color
- Extension method TopologyScenario.Description
- Extension method TopologyScenario.Id
- Extension method TopologyScenario.Label
- Extension method TopologyScenario.LoopPlayback
- Extension method TopologyScenario.Metadata
- Extension method TopologyScenario.PlaybackDelayMilliseconds
- Extension method TopologyScenario.Spotlight
- Extension method TopologyScenario.Step
- Extension method TopologyScenario.Steps
- Method TopologyScenarioFluent.AutoPlay
- Method TopologyScenarioFluent.Color
- Method TopologyScenarioFluent.Description
- Method TopologyScenarioFluent.Id
- Method TopologyScenarioFluent.Label
- Method TopologyScenarioFluent.LoopPlayback
- Method TopologyScenarioFluent.PlaybackDelayMilliseconds
- Method TopologyScenarioFluent.Spotlight
- Method TopologyScenarioFluent.Step
- Method TopologyScenarioFluent.Steps
Accepted by parameters 36
- Extension method TopologyChart.AddScenario
- Extension method TopologyChart.Scenario
- Extension method TopologyChart.Scenario
- Extension method TopologyChart.Scenarios
- Method TopologyChartExtensions.AddEdgeStep
- Method TopologyChartExtensions.AddMessageStep
- Method TopologyChartExtensions.AddNodeStep
- Method TopologyChartExtensions.AddScenario
- Method TopologyChartExtensions.Metadata
- Method TopologyChartFluent.Scenario
- Method TopologyChartFluent.Scenario
- Method TopologyChartFluent.Scenarios
- Extension method TopologyScenario.AddEdgeStep
- Extension method TopologyScenario.AddMessageStep
- Extension method TopologyScenario.AddNodeStep
- Extension method TopologyScenario.AutoPlay
- Extension method TopologyScenario.Color
- Extension method TopologyScenario.Description
- Extension method TopologyScenario.Id
- Extension method TopologyScenario.Label
- Extension method TopologyScenario.LoopPlayback
- Extension method TopologyScenario.Metadata
- Extension method TopologyScenario.PlaybackDelayMilliseconds
- Extension method TopologyScenario.Spotlight
- Extension method TopologyScenario.Step
- Extension method TopologyScenario.Steps
- Method TopologyScenarioFluent.AutoPlay
- Method TopologyScenarioFluent.Color
- Method TopologyScenarioFluent.Description
- Method TopologyScenarioFluent.Id
- Method TopologyScenarioFluent.Label
- Method TopologyScenarioFluent.LoopPlayback
- Method TopologyScenarioFluent.PlaybackDelayMilliseconds
- Method TopologyScenarioFluent.Spotlight
- Method TopologyScenarioFluent.Step
- Method TopologyScenarioFluent.Steps
Constructors
public TopologyScenario() #Inherited Methods
Properties
public string Label { get; set; } #Gets or sets the scenario label used by host controls.
public string? Description { get; set; } #Gets or sets an optional scenario description.
public string? Color { get; set; } #Gets or sets an optional scenario accent color: a CSS color such as #2563eb, rgb(37 99 235) or a named color.
Exceptions
ArgumentException– The value contains characters outside a CSS color.
public int PlaybackDelayMilliseconds { get; set; } #Gets or sets the default time each route step remains visible during playback.
public bool LoopPlayback { get; set; } #Gets or sets whether playback returns to the first route step after the last.
public bool AutoPlay { get; set; } #Gets or sets whether an HTML adapter may start playback automatically when motion is allowed.
public bool Spotlight { get; set; } #Gets or sets whether non-route members are dimmed for a focused review.
public List<TopologyScenarioStep> Steps { get; } #Gets ordered node and edge references that participate in the scenario.
public Dictionary<string, string> Metadata { get; } #Gets arbitrary scenario metadata for host adapters.
Extension Methods
public static TopologyScenario AddEdgeStep(TopologyScenario scenario, string edgeId, string? label = null, string? description = null, Action<TopologyScenarioStep>? configure = null) #Adds a scenario segment that references an existing topology edge.
Parameters
- scenario ChartForgeX.Topology.TopologyScenario
- The topology scenario.
- edgeId string
- The edge id.
- label string? = null
- The optional segment label.
- description string? = null
- The optional segment description.
- configure System.Action<ChartForgeX.Topology.TopologyScenarioStep>? = null
- Optional step configuration.
public static TopologyScenario AddMessageStep(TopologyScenario scenario, string edgeId, TopologyScenarioInteraction interaction, string? label = null, bool reverse = false, Action<TopologyScenarioStep>? configure = null) #Adds a request, message, response, or failure that travels over an existing topology edge.
Parameters
- scenario ChartForgeX.Topology.TopologyScenario
- The topology scenario.
- edgeId string
- The edge the step travels over.
- interaction ChartForgeX.Topology.TopologyScenarioInteraction
- What happens on the edge.
- label string? = null
- The optional step label, such as POST /notes or 201 Created.
- reverse bool = false
- Whether the step travels from the edge target to the edge source.
- configure System.Action<ChartForgeX.Topology.TopologyScenarioStep>? = null
- Optional step configuration.
public static TopologyScenario AddNodeStep(TopologyScenario scenario, string nodeId, string? label = null, string? description = null, Action<TopologyScenarioStep>? configure = null) #Adds a scenario hop that references an existing topology node.
Parameters
- scenario ChartForgeX.Topology.TopologyScenario
- The topology scenario.
- nodeId string
- The node id.
- label string? = null
- The optional hop label.
- description string? = null
- The optional hop description.
- configure System.Action<ChartForgeX.Topology.TopologyScenarioStep>? = null
- Optional step configuration.
public static TopologyScenario AutoPlay(TopologyScenario topologyScenario, bool value = true) #Sets TopologyScenario.AutoPlay: Gets or sets whether an HTML adapter may start playback automatically when motion is allowed.
Parameters
- topologyScenario ChartForgeX.Topology.TopologyScenario
- The instance.
- value bool = true
- The value; true when omitted.
Examples
// C# initializer or property // C# fluent
new global::ChartForgeX.Topology.TopologyScenario { AutoPlay = value }; topologyScenario.AutoPlay(value);public static TopologyScenario Color(TopologyScenario topologyScenario, string? value) #Sets TopologyScenario.Color: Gets or sets an optional scenario accent color: a CSS color such as #2563eb, rgb(37 99 235) or a named color.
Parameters
- topologyScenario ChartForgeX.Topology.TopologyScenario
- The instance.
- value string?
- The value.
Examples
// C# initializer or property // C# fluent
new global::ChartForgeX.Topology.TopologyScenario { Color = value }; topologyScenario.Color(value);public static TopologyScenario Description(TopologyScenario topologyScenario, string? value) #Sets TopologyScenario.Description: Gets or sets an optional scenario description.
Parameters
- topologyScenario ChartForgeX.Topology.TopologyScenario
- The instance.
- value string?
- The value.
Examples
// C# initializer or property // C# fluent
new global::ChartForgeX.Topology.TopologyScenario { Description = value }; topologyScenario.Description(value);public static TopologyScenario Id(TopologyScenario topologyScenario, string value) #Sets TopologyScenario.Id: Gets or sets the stable scenario identifier.
Parameters
- topologyScenario ChartForgeX.Topology.TopologyScenario
- The instance.
- value string
- The value.
Examples
// C# initializer or property // C# fluent
new global::ChartForgeX.Topology.TopologyScenario { Id = value }; topologyScenario.Id(value);public static TopologyScenario Label(TopologyScenario topologyScenario, string value) #Sets TopologyScenario.Label: Gets or sets the scenario label used by host controls.
Parameters
- topologyScenario ChartForgeX.Topology.TopologyScenario
- The instance.
- value string
- The value.
Examples
// C# initializer or property // C# fluent
new global::ChartForgeX.Topology.TopologyScenario { Label = value }; topologyScenario.Label(value);public static TopologyScenario LoopPlayback(TopologyScenario topologyScenario, bool value = true) #Sets TopologyScenario.LoopPlayback: Gets or sets whether playback returns to the first route step after the last.
Parameters
- topologyScenario ChartForgeX.Topology.TopologyScenario
- The instance.
- value bool = true
- The value; true when omitted.
Examples
// C# initializer or property // C# fluent
new global::ChartForgeX.Topology.TopologyScenario { LoopPlayback = value }; topologyScenario.LoopPlayback(value);public static TopologyScenario Metadata(TopologyScenario scenario, string key, string? value) #Adds host-readable metadata to a topology scenario.
Parameters
- scenario ChartForgeX.Topology.TopologyScenario
- The topology scenario.
- key string
- The metadata key.
- value string?
- The metadata value.
public static TopologyScenario PlaybackDelayMilliseconds(TopologyScenario topologyScenario, int value) #Sets TopologyScenario.PlaybackDelayMilliseconds: Gets or sets the default time each route step remains visible during playback.
Parameters
- topologyScenario ChartForgeX.Topology.TopologyScenario
- The instance.
- value int
- The value.
Examples
// C# initializer or property // C# fluent
new global::ChartForgeX.Topology.TopologyScenario { PlaybackDelayMilliseconds = value }; topologyScenario.PlaybackDelayMilliseconds(value);public static TopologyScenario Spotlight(TopologyScenario topologyScenario, bool value = true) #Sets TopologyScenario.Spotlight: Gets or sets whether non-route members are dimmed for a focused review.
Parameters
- topologyScenario ChartForgeX.Topology.TopologyScenario
- The instance.
- value bool = true
- The value; true when omitted.
Examples
// C# initializer or property // C# fluent
new global::ChartForgeX.Topology.TopologyScenario { Spotlight = value }; topologyScenario.Spotlight(value);public static TopologyScenario Step(TopologyScenario topologyScenario, TopologyScenarioStep item) #Adds an item to TopologyScenario.Steps: Gets ordered node and edge references that participate in the scenario.
Parameters
- topologyScenario ChartForgeX.Topology.TopologyScenario
- The instance.
- item ChartForgeX.Topology.TopologyScenarioStep
- The item.
public static TopologyScenario Step(TopologyScenario topologyScenario, Action<TopologyScenarioStep> configure) #Creates an item, configures it and adds it to TopologyScenario.Steps: Gets ordered node and edge references that participate in the scenario.
Parameters
- topologyScenario ChartForgeX.Topology.TopologyScenario
- The instance.
- configure System.Action<ChartForgeX.Topology.TopologyScenarioStep>
- Configures the new item before it is added.
public static TopologyScenario Steps(TopologyScenario topologyScenario, IEnumerable<TopologyScenarioStep> items) #Adds items to TopologyScenario.Steps: Gets ordered node and edge references that participate in the scenario.
Parameters
- topologyScenario ChartForgeX.Topology.TopologyScenario
- The instance.
- items System.Collections.Generic.IEnumerable<ChartForgeX.Topology.TopologyScenarioStep>
- The items, in order.