modsim
Class ConfigurationFileReader

java.lang.Object
  extended by modsim.ConfigurationFileReader

public class ConfigurationFileReader
extends java.lang.Object

Reads in the configuration file. Calls back to ProcessImage to implement map.

Author:
bburch 14 July 2008

Constructor Summary
ConfigurationFileReader(net.wimpi.modbus.procimg.ProcessImageImplementation pi, java.io.File file)
          Constructor to read in file and update process image.
 
Method Summary
 java.lang.String getMyIpAddress()
          Return the extracted IP address.
 java.lang.String getMyUnitName()
          Return the unit name.
 int getPortNumber()
          Return the port number.
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ConfigurationFileReader

public ConfigurationFileReader(net.wimpi.modbus.procimg.ProcessImageImplementation pi,
                               java.io.File file)
Constructor to read in file and update process image.

Parameters:
pi - ProcessImageImplementation - the process image to update
file - File - configuration file
Method Detail

getMyIpAddress

public java.lang.String getMyIpAddress()
Return the extracted IP address.

Returns:
String - the IP address in dotted decimal form.

getMyUnitName

public java.lang.String getMyUnitName()
Return the unit name. This is used for class loading.

Returns:
String - the unit name, used for class loading

getPortNumber

public int getPortNumber()
Return the port number. Port number 502 is the default.

Returns:
int - Modbus port number