Neuron®
The Neuron® is the basis for the creation of open and secure federated networks for smart societies.
Loading...
Searching...
No Matches
Assembly.cs
1
using
System;
2
using
System.Threading.Tasks;
3
using
System.Xml;
4
using
Waher.Content.Xml
;
5
6
namespace
TAG.Simulator.ObjectModel.Structure
7
{
11
public
class
Assembly
:
SimulationNodeChildren
12
{
13
private
string
fileName;
14
20
public
Assembly
(
ISimulationNode
Parent
,
Model
Model
)
21
: base(
Parent
,
Model
)
22
{
23
}
24
28
public
override
string
LocalName
=> nameof(
Assembly
);
29
33
public
string
FileName
=> this.fileName;
34
41
public
override
ISimulationNode
Create
(
ISimulationNode
Parent
,
Model
Model
)
42
{
43
return
new
Assembly
(
Parent
,
Model
);
44
}
45
50
public
override
Task
FromXml
(XmlElement Definition)
51
{
52
this.fileName =
XML
.
Attribute
(Definition,
"fileName"
);
53
54
return
base.FromXml(Definition);
55
}
56
}
57
}
TAG.Simulator.Model
Root node of a simulation model
Definition:
Model.cs:49
TAG.Simulator.ObjectModel.SimulationNodeChildren
Abstract base class for simulation nodes with children
Definition:
SimulationNodeChildren.cs:13
TAG.Simulator.ObjectModel.SimulationNode.Parent
ISimulationNode Parent
Parent node in the simulation model.
Definition:
SimulationNode.cs:32
TAG.Simulator.ObjectModel.Structure.Assembly
Assembly reference.
Definition:
Assembly.cs:12
TAG.Simulator.ObjectModel.Structure.Assembly.FromXml
override Task FromXml(XmlElement Definition)
Sets properties and attributes of class in accordance with XML definition.
Definition:
Assembly.cs:50
TAG.Simulator.ObjectModel.Structure.Assembly.FileName
string FileName
Filename of assembly.
Definition:
Assembly.cs:33
TAG.Simulator.ObjectModel.Structure.Assembly.LocalName
override string LocalName
Local name of XML element defining contents of class.
Definition:
Assembly.cs:28
TAG.Simulator.ObjectModel.Structure.Assembly.Create
override ISimulationNode Create(ISimulationNode Parent, Model Model)
Creates a new instance of the node.
Definition:
Assembly.cs:41
TAG.Simulator.ObjectModel.Structure.Assembly.Assembly
Assembly(ISimulationNode Parent, Model Model)
Assembly reference.
Definition:
Assembly.cs:20
Waher.Content.Xml.XML
Helps with common XML-related tasks.
Definition:
XML.cs:19
Waher.Content.Xml.XML.Attribute
static string Attribute(XmlElement E, string Name)
Gets the value of an XML attribute.
Definition:
XML.cs:914
TAG.Simulator.ISimulationNode
Basic interface for simulator nodes. Implementing this interface allows classes with default contruct...
Definition:
ISimulationNode.cs:18
TAG.Simulator.ObjectModel.Structure
Definition:
Assemblies.cs:4
Waher.Content.Xml
Definition:
XmlCodec.cs:11
ComSim
TAG.Simulator
ObjectModel
Structure
Assembly.cs
Generated by
1.9.5