Class ModbusMachineCommand

java.lang.Object
test.de.iip_ecosphere.platform.connectors.modbustcpipv1.ModbusMachineCommand

public class ModbusMachineCommand extends Object
Some Modbus machine command for testing.
Author:
Christian Nikolajew
  • Field Details

  • Constructor Details

    • ModbusMachineCommand

      public ModbusMachineCommand()
      Creates an instance.
  • Method Details

    • getKeyCount

      public int getKeyCount()
      Get the amount of keys.
      Returns:
      the number of keys to change
    • getKey

      public String getKey(int index)
      Getter for key.
      Parameters:
      index - of the key to return
      Returns:
      the key at index
    • getValue

      public Object getValue(int index)
      Getter for value.
      Parameters:
      index - of the value to return
      Returns:
      value at index
    • set

      public void set(String key, Object value)
      Setter for key and value.
      Parameters:
      key - that's value should be changed
      value - that should be set for key