org.openmuc.modbus
Class ModbusObjectLocator

java.lang.Object
  extended by org.openmuc.modbus.ModbusObjectLocator

public class ModbusObjectLocator
extends java.lang.Object


Nested Class Summary
static class ModbusObjectLocator.DataType
           
 
Constructor Summary
ModbusObjectLocator(java.lang.String locator)
           
 
Method Summary
 int getRegisterAddress()
           
 int getRegisterCount()
           
 ModbusObjectLocator.DataType getRegisterDataType()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ModbusObjectLocator

public ModbusObjectLocator(java.lang.String locator)
                    throws MalformedObjectLocatorException
Throws:
MalformedObjectLocatorException
Method Detail

getRegisterAddress

public int getRegisterAddress()
Returns:
Register Address, which has been parsed from the objectLocator String

getRegisterCount

public int getRegisterCount()
Returns:
Register Count. Modbus Devices use sequenced registers to store data (2 registers for a float, 1 for a short, etc.)

getRegisterDataType

public ModbusObjectLocator.DataType getRegisterDataType()
Returns:
Register Data Type. Which can be a float, short, int32 etc.