Skip to content

3.4 Extends Machine and Utility, creating two apis

parallelbgls edited this page Jun 29, 2017 · 1 revision

IUtilityProperty and IUtilityMethod is the low level API of communication, defines based on protocol.

  • Inherits IUtilityProperty or BaseUtility to create Utility class, implementing or appending AddressTranslator.
  • Inherits IUtilityMethod, defining protocol communication method interfaces.
  • Add extending IUtilityMethods to Utility class and implement communication methods.

IMachineProperty and IMachineMethod is the high level API of communication, defines based on device.

  • Inherits IMachineProperty or BaseMachine to create Machine class, implementing or appending AddessFormater and AddressCombiner.
  • Inherits IMachineMethod, defining device communication method interfaces.
  • Add extending IMachineMethods to Machine class and implement device communication methods.
  • The difference between Utility and Machine is the description way of address. Utility use string but Machine use structual class.

Home

Clone this wiki locally