Neuron®
The Neuron® is the basis for the creation of open and secure federated networks for smart societies.
Loading...
Searching...
No Matches
SeriesReference.cs
1using System.Threading.Tasks;
2using System.Xml;
5
7{
11 public abstract class SeriesReference : SimulationNode
12 {
13 private string @for;
14 private IBucket bucket;
15
22 : base(Parent, Model)
23 {
24 }
25
29 public string For => this.@for;
30
34 public IBucket Bucket => this.bucket;
35
40 public override Task FromXml(XmlElement Definition)
41 {
42 this.@for = XML.Attribute(Definition, "for");
43
44 return Task.CompletedTask;
45 }
46
50 public override Task Start()
51 {
52 this.bucket = this.Model.GetSampleBucket(this.@for);
53 return base.Start();
54 }
55 }
56}
Root node of a simulation model
Definition: Model.cs:49
IBucket GetSampleBucket(string Id)
Gets a sample bucket, given its ID.
Definition: Model.cs:592
Abstract base class for series references nodes.
override Task FromXml(XmlElement Definition)
Sets properties and attributes of class in accordance with XML definition.
SeriesReference(ISimulationNode Parent, Model Model)
Abstract base class for series references nodes.
Abstract base class for simulation nodes
ISimulationNode Parent
Parent node in the simulation model.
Statistical bucket
Definition: Bucket.cs:17
Helps with common XML-related tasks.
Definition: XML.cs:19
static string Attribute(XmlElement E, string Name)
Gets the value of an XML attribute.
Definition: XML.cs:914
Basic interface for simulator nodes. Implementing this interface allows classes with default contruct...
Interface for buckets.
Definition: IBucket.cs:13