Neuron®
The Neuron® is the basis for the creation of open and secure federated networks for smart societies.
Loading...
Searching...
No Matches
CombinedCounterGraph.cs
1using System;
2
4{
9 {
16 : base(Parent, Model)
17 {
18 }
19
23 public override string LocalName => nameof(CombinedCounterGraph);
24
32 {
34 }
35
41 public override IGraph GetGraph(string Reference)
42 {
43 if (this.Model.TryGetCounterGraph(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
bool TryGetCounterGraph(string For, out IGraph Graph)
Tries to get a registered counter graph from the model.
Definition: Model.cs:482
void RegisterCustomCounterGraph(string Id, IGraph Graph)
Registers a custom counter graph
Definition: Model.cs:551
override ISimulationNode Create(ISimulationNode Parent, Model Model)
Creates a new instance of the node.
CombinedCounterGraph(ISimulationNode Parent, Model Model)
Combines counter graphs
override void Register(ISource Source)
Registers a source.
override IGraph GetGraph(string Reference)
Gets a graph from its reference.
override string LocalName
Local name of XML element defining contents of class.
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