com.eurotech.framework.protocol.pcn
Class Pcn1001SnpChannelAcquisition

java.lang.Object
  extended by com.eurotech.framework.protocol.pcn.Pcn1001SnpChannelAcquisition
All Implemented Interfaces:
Pcn1001SnpChannelAcquisitionService

public class Pcn1001SnpChannelAcquisition
extends Object
implements Pcn1001SnpChannelAcquisitionService

Defines SNP channel acquisition class for the Passenger Counter.

Author:
ilya.binshtok

Field Summary
 
Fields inherited from interface com.eurotech.framework.protocol.pcn.Pcn1001SnpChannelAcquisitionService
SERVICE_NAME
 
Constructor Summary
Pcn1001SnpChannelAcquisition()
           
 
Method Summary
protected  void activate(org.osgi.service.component.ComponentContext componentContext)
           
protected  void deactivate(org.osgi.service.component.ComponentContext componentContext)
           
 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.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Pcn1001SnpChannelAcquisition

public Pcn1001SnpChannelAcquisition()
Method Detail

activate

protected void activate(org.osgi.service.component.ComponentContext componentContext)

deactivate

protected void deactivate(org.osgi.service.component.ComponentContext componentContext)

obtainPcn1001SnpChannelService

public Pcn1001SnpChannelService obtainPcn1001SnpChannelService(org.osgi.service.io.ConnectionFactory connFactory,
                                                               Properties connectionConfig,
                                                               Object user,
                                                               boolean exclusive)
                                                        throws EsfException
Description copied from interface: Pcn1001SnpChannelAcquisitionService
Obtains SNP channel service for a passenger counter.

Specified by:
obtainPcn1001SnpChannelService in interface Pcn1001SnpChannelAcquisitionService
user - - user object as Object
exclusive - - 'share this channel?' flag as
Returns:
SNP channel service as IPcn1001SnpChannelService
Throws:
EsfException

releasePcn1001SnpChannelService

public void releasePcn1001SnpChannelService(Pcn1001SnpChannelService service)
                                     throws EsfException
Description copied from interface: Pcn1001SnpChannelAcquisitionService
Releases supplied SNP channel service.

Specified by:
releasePcn1001SnpChannelService in interface Pcn1001SnpChannelAcquisitionService
Parameters:
service - - SNP channel service to release as IPcn1001SnpChannelService
Throws:
EsfException


Copyright © 2013. All Rights Reserved.