Neuron®
The Neuron® is the basis for the creation of open and secure federated networks for smart societies.
Loading...
Searching...
No Matches
CombinedExecutionTimeGraph.cs
1using System;
2
4{
9 {
16 : base(Parent, Model)
17 {
18 }
19
23 public override string LocalName => nameof(CombinedExecutionTimeGraph);
24
32 {
34 }
35
41 public override IGraph GetGraph(string Reference)
42 {
43 if (this.Model.TryGetExecutionTimesGraph(Reference, out IGraph Graph))
44 return Graph;
45 else
46 return null;
47 }
48
53 public override void Register(ISource Source)
54 {
55 base.Register(Source);
57 }
58 }
59}
Root node of a simulation model
Definition: Model.cs:49
void RegisterCustomExecutionTimesGraph(string Id, IGraph Graph)
Registers a custom execution times graph
Definition: Model.cs:571
bool TryGetExecutionTimesGraph(string For, out IGraph Graph)
Tries to get a registered executuion times graph from the model.
Definition: Model.cs:522
override IGraph GetGraph(string Reference)
Gets a graph from its reference.
CombinedExecutionTimeGraph(ISimulationNode Parent, Model Model)
Combines execution time graphs
override string LocalName
Local name of XML element defining contents of class.
override ISimulationNode Create(ISimulationNode Parent, Model Model)
Creates a new instance of the node.
override void Register(ISource Source)
Registers a source.
Abstract base class for combined graphs
Abstract base class for graph nodes
Definition: Graph.cs:13
Graph source reference.
Definition: Source.cs:11
Basic interface for simulator nodes. Implementing this interface allows classes with default contruct...
ISimulationNode Parent
Parent node in the simulation model.
Interface for graph nodes
Definition: IGraph.cs:10