Neuron®
The Neuron® is the basis for the creation of open and secure federated networks for smart societies.
Loading...
Searching...
No Matches
Actors.cs
1using System.Collections.Generic;
2
4{
9 {
10 private readonly List<IActor> actors = new List<IActor>();
11
18 : base(Parent, Model)
19 {
20 }
21
25 public override string LocalName => nameof(Actors);
26
34 {
35 return new Actors(Parent, Model);
36 }
37
42 public void Register(IActor Actor)
43 {
44 this.actors.Add(Actor);
45 }
46 }
47}
Root node of a simulation model
Definition: Model.cs:49
Abstract base class for actors
Definition: Actor.cs:15
void Register(IActor Actor)
Registers an actor with the collection of actors.
Definition: Actors.cs:42
Actors(ISimulationNode Parent, Model Model)
Container for actors.
Definition: Actors.cs:17
override string LocalName
Local name of XML element defining contents of class.
Definition: Actors.cs:25
override ISimulationNode Create(ISimulationNode Parent, Model Model)
Creates a new instance of the node.
Definition: Actors.cs:33
Abstract base class for simulation nodes with children
Basic interface for simulator nodes. Implementing this interface allows classes with default contruct...
ISimulationNode Parent
Parent node in the simulation model.
Basic interface for simulator nodes. Implementing this interface allows classes with default contruct...
Definition: IActor.cs:11
Interface for collections of actors.
Definition: IActors.cs:7