com.eurotech.framework.protocol.pcn
Interface Pcn1001SnpChannelAcquisitionService

All Known Implementing Classes:
Pcn1001SnpChannelAcquisition

public interface Pcn1001SnpChannelAcquisitionService

Defines Acquisition service for Passenger Counter's SNP (Simple Network Protocol) communication channel - serial RS485 communication.

Author:
ilya.binshtok

Field Summary
static String SERVICE_NAME
          name of this service
 
Method Summary
 Pcn1001SnpChannelService obtainPcn1001SnpChannelService(org.osgi.service.io.ConnectionFactory connFactory, Properties connectionConfig, Object user, boolean exclusive)
          Obtains SNP channel service for a passenger counter.
 void releasePcn1001SnpChannelService(Pcn1001SnpChannelService service)
          Releases supplied SNP channel service.
 

Field Detail

SERVICE_NAME

static final String SERVICE_NAME
name of this service

Method Detail

obtainPcn1001SnpChannelService

Pcn1001SnpChannelService obtainPcn1001SnpChannelService(org.osgi.service.io.ConnectionFactory connFactory,
                                                        Properties connectionConfig,
                                                        Object user,
                                                        boolean exclusive)
                                                        throws EsfException
Obtains SNP channel service for a passenger counter.

Parameters:
devName - - name of the serial device as
deviceVendorID - - device vendor ID as String
deviceProductID - - device product ID as String
baud - - baud rate as
dataBits - - number of dayta bits as
stopBits - - number of stop bits as
parity - - parity as
flowControl - - type of flow control as
user - - user object as Object
exclusive - - 'share this channel?' flag as
Returns:
SNP channel service as IPcn1001SnpChannelService
Throws:
EsfException

releasePcn1001SnpChannelService

void releasePcn1001SnpChannelService(Pcn1001SnpChannelService service)
                                     throws EsfException
Releases supplied SNP channel service.

Parameters:
service - - SNP channel service to release as IPcn1001SnpChannelService
Throws:
EsfException


Copyright © 2013. All Rights Reserved.