2using System.Threading.Tasks;
56 public override Task
FromXml(XmlElement Definition)
58 foreach (XmlAttribute Attr
in Definition.Attributes)
76 return base.FromXml(Definition);
88 throw new Exception(
"Client ID does not point to a ModBus client.");
Abstract base class for ModBus operations.
override string Namespace
XML Namespace where the element is defined.
DoubleAttribute address
ModBus device Address attribute
ModBusOperation(ISimulationNode Parent, Model Model)
Abstract base class for ModBus operations.
async Task< ModBusClient > GetClient(Variables Variables)
Gets the ModBus TCP Client to use in the operation.
override Task FromXml(XmlElement Definition)
Sets properties and attributes of class in accordance with XML definition.
override string SchemaResource
Points to the embedded XML Schema resource defining the semantics of the XML namespace.
StringAttribute client
ModBus client to use in communication.
Abstract base class for ModBus actors.
const string ComSimModBusSchema
Resource name of ModBus schema.
const string ComSimModBusNamespace
http://lab.tagroot.io/Schema/ComSim.xsd
Represents a simulated ModBus client
Root node of a simulation model
Abstract base class for activity nodes
Contains the value of a double attribute, possibly with embedded script.
async Task< object > GetActorObjectAsync(StringAttribute Actor, Variables Variables)
Gets an actor object, given a string representation, possibly containing script, of the actor.
Contains the value of a string attribute, possibly with embedded script.
Basic interface for simulator nodes. Implementing this interface allows classes with default contruct...
ISimulationNode Parent
Parent node in the simulation model.