3using System.Threading.Tasks;
14 private System.Byte? value;
47 public override Task
FromXml(XmlElement Definition)
49 if (System.Byte.TryParse(Definition.InnerText, out System.Byte
Value))
57 this.script =
new Expression(Definition.InnerText);
60 return Task.CompletedTask;
72 Output.WriteByte(this.value ??
74 Convert.ToByte(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.
Byte(ISimulationNode Parent, Model Model)
Byte value.
override ISimulationNode Create(ISimulationNode Parent, Model Model)
Creates a new instance of the node.
async Task Append(MemoryStream Output, Variables Variables)
Appends the binary element to the output stream.
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.
async Task< object > EvaluateAsync(Variables Variables)
Evaluates the expression, using the variables provided in the Variables collection....
Basic interface for simulator nodes. Implementing this interface allows classes with default contruct...
Interface for binary elements