com.eurotech.framework.protocol.pcn
Interface Pcn1001SnpChannelService

All Known Implementing Classes:
Pcn1001SnpChannel

public interface Pcn1001SnpChannelService

Defines SNP (Simple Network Protocol) communication channel service for PCN-1001 passenger counter.

Author:
ilya.binshtok

Field Summary
static String SERVICE_NAME
          name of this service
static String snpNotification
           
 
Method Summary
 void addUser(Object user)
          Adds a user to the list of channel users.
 int getBaudRate()
          Reports baud rate.
 String getDevName()
          Reports name of the serial device.
 String getDevProductID()
          Reports device product ID
 String getDevVendorID()
          Reports device vendor ID
 int getFlowControl()
          Reports flow control mode.
 int getNumberDataBits()
          Reports number of data bits.
 int getNumberStopBits()
          Reports number of stop bits.
 int getParity()
          Reports parity.
 int getUsageCount()
          Reports usage count.
 String[] getUsers()
          Reports list of channel users.
 boolean isDeviceSupported()
          Reports if serial device is supported by this implementation.
 SnpMessage sendCommand(SnpMessage snpCmd, int tout)
          Sends SNP command to the passenger counter
 

Field Detail

SERVICE_NAME

static final String SERVICE_NAME
name of this service


snpNotification

static final String snpNotification
See Also:
Constant Field Values
Method Detail

sendCommand

SnpMessage sendCommand(SnpMessage snpCmd,
                       int tout)
                       throws EsfException
Sends SNP command to the passenger counter

Parameters:
snpCmd - - SNP command as SnpMessage
tout -
Returns:
Throws:
EsfException

getDevVendorID

String getDevVendorID()
Reports device vendor ID

Returns:
vendor ID as String

getDevProductID

String getDevProductID()
Reports device product ID

Returns:
pridict ID as String

getUsageCount

int getUsageCount()
Reports usage count.

Returns:
usage count as int

getUsers

String[] getUsers()
Reports list of channel users.

Returns:
list of users as String[]

addUser

void addUser(Object user)
Adds a user to the list of channel users.

Parameters:
user - - user to add as Object

getDevName

String getDevName()
Reports name of the serial device.

Returns:
serial device name as String

getBaudRate

int getBaudRate()
Reports baud rate.

Returns:
baud rate as int

getNumberDataBits

int getNumberDataBits()
Reports number of data bits.

Returns:
number of data bits as int

getNumberStopBits

int getNumberStopBits()
Reports number of stop bits.

Returns:
number of stop bits as int

getParity

int getParity()
Reports parity.

Returns:
parity as int

getFlowControl

int getFlowControl()
Reports flow control mode.

Returns:
flow control mode as int

isDeviceSupported

boolean isDeviceSupported()
Reports if serial device is supported by this implementation.

Returns:
boolean


Copyright © 2013. All Rights Reserved.