2using System.Threading.Tasks;
38 public override Task
FromXml(XmlElement Definition)
40 foreach (XmlAttribute Attr
in Definition.Attributes)
44 case "responseVariable":
50 return base.FromXml(Definition);
59 if (this.value is
null)
62 throw new Exception(
"Write node already has a value defined.");
Abstract base class for ModBus operations.
Abstract base class for ModBus write operations.
ModBusWriteOperation(ISimulationNode Parent, Model Model)
Abstract base class for ModBus write operations.
void Register(IValue Value)
Registers a value for the argument.
override Task FromXml(XmlElement Definition)
Sets properties and attributes of class in accordance with XML definition.
StringAttribute responseVariable
Response variable attribute.
IValue value
Value to write.
Root node of a simulation model
Contains the value of a string attribute, possibly with embedded script.
Abstract base class for values
Basic interface for simulator nodes. Implementing this interface allows classes with default contruct...
ISimulationNode Parent
Parent node in the simulation model.
Interface for nodes holding a value node