3using System.Threading.Tasks;
14 private System.SByte? value;
47 public override Task
FromXml(XmlElement Definition)
49 if (System.SByte.TryParse(Definition.InnerText, out System.SByte
Value))
57 this.script =
new Expression(Definition.InnerText);
60 return Task.CompletedTask;
72 Output.WriteByte(this.value.HasValue ? (
byte)
this.value.Value :
74 (
byte)Convert.ToSByte(Result));
Root node of a simulation model
Abstract base class for simulation nodes
ISimulationNode Parent
Parent node in the simulation model.
override string LocalName
Local name of Binary element defining contents of class.
async Task Append(MemoryStream Output, Variables Variables)
Appends the binary element to the output stream.
override ISimulationNode Create(ISimulationNode Parent, Model Model)
Creates a new instance of the node.
SByte(ISimulationNode Parent, Model Model)
SByte value.
override Task FromXml(XmlElement Definition)
Sets properties and attributes of class in accordance with Binary definition.
Abstract base class for values
Class managing a script expression.
Basic interface for simulator nodes. Implementing this interface allows classes with default contruct...
Interface for binary elements