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