com.eurotech.framework.protocol.pcn
Class Pcn1001Config

java.lang.Object
  extended by com.eurotech.framework.protocol.pcn.Pcn1001Config

public class Pcn1001Config
extends Object

Defines PCN-1001 specific configuration

Author:
ilya.binshtok

Constructor Summary
Pcn1001Config(int snpAddress)
          Pcn1001Config constructor
 
Method Summary
 String getIpAddress()
          Reports IP address.
 int getLedIntensity()
          Reports LED intensity.
 String getSerialPortName()
          Reports serial port name.
 int getSnpAddress()
          Reports SNP address of the device.
 int getSnpCmdTimeout()
          Reports SNP command timeout in milliseconds.
 int getSnpNumRetries()
          Reports SNP number of retries after timeout
 int getSnpPollTimeout()
          Reports SNP poll timeout in milliseconds.
 void setIpAddress(String ipAddress)
          Sets IP address.
 void setLedIntensity(int ledIntensity)
          Sets LED intensity.
 void setSerialPortName(String serialPortName)
          Set the serial port name.
 void setSnpCmdTimeout(int snpCmdTimeout)
          Sets SNP command timeout in milliseconds.
 void setSnpNumRetries(int snpNumRetries)
          Set SNP number of retries after timeout
 void setSnpPollTimeout(int snpPollTimeout)
          Sets SNP poll timeout in milliseconds.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Pcn1001Config

public Pcn1001Config(int snpAddress)
Pcn1001Config constructor

Parameters:
snpAddress - - device SNP address as int
Method Detail

getSerialPortName

public String getSerialPortName()
Reports serial port name.

Returns:
serial port name as String

setSerialPortName

public void setSerialPortName(String serialPortName)
Set the serial port name.

Parameters:
serialPortName - - serial port name as String. The name is OS dependent (e.g. "COM1" under Windows, "/dev/ttyS0" under Linux).

getSnpAddress

public int getSnpAddress()
Reports SNP address of the device.

Returns:
device SNP address as int

getIpAddress

public String getIpAddress()
Reports IP address.

Returns:
IP address as String

setIpAddress

public void setIpAddress(String ipAddress)
Sets IP address.

Parameters:
ipAddress - - IP address as String

getLedIntensity

public int getLedIntensity()
Reports LED intensity.

Returns:
LED intensity as int

setLedIntensity

public void setLedIntensity(int ledIntensity)
Sets LED intensity.

Parameters:
ledIntensity - - LED intensity as int

getSnpPollTimeout

public int getSnpPollTimeout()
Reports SNP poll timeout in milliseconds.

Returns:
SNP poll timeout as int

setSnpPollTimeout

public void setSnpPollTimeout(int snpPollTimeout)
Sets SNP poll timeout in milliseconds.

Parameters:
snpPollTimeout - - SNP poll timeout as int

getSnpCmdTimeout

public int getSnpCmdTimeout()
Reports SNP command timeout in milliseconds.

Returns:
SNP command timeout as int

setSnpCmdTimeout

public void setSnpCmdTimeout(int snpCmdTimeout)
Sets SNP command timeout in milliseconds.

Parameters:
snpCmdTimeout - - SNP command timeout as int

getSnpNumRetries

public int getSnpNumRetries()
Reports SNP number of retries after timeout

Returns:
SNP number of retries as int

setSnpNumRetries

public void setSnpNumRetries(int snpNumRetries)
Set SNP number of retries after timeout

Parameters:
snpNumRetries - - SNP number of retries as int


Copyright © 2013. All Rights Reserved.