com.eurotech.framework.protocol.pcn
Class Pcn1001Factory

java.lang.Object
  extended by com.eurotech.framework.protocol.pcn.Pcn1001Factory
All Implemented Interfaces:
Pcn1001FactoryService

public class Pcn1001Factory
extends Object
implements Pcn1001FactoryService

Defines Pcn1001Factory - passenger counter factory class.

Author:
ilya.binshtok

Field Summary
 
Fields inherited from interface com.eurotech.framework.protocol.pcn.Pcn1001FactoryService
SERVICE_NAME
 
Constructor Summary
Pcn1001Factory()
           
 
Method Summary
protected  void activate(org.osgi.service.component.ComponentContext componentContext)
           
protected  void deactivate(org.osgi.service.component.ComponentContext componentContext)
           
 Pcn1001AddressInfoService obtainPcn1001AddressInfoService(Pcn1001AddressInfoService addressInfoService)
          Obtains IPcn1001AddressInfoService by invoking respective Pcn1001 copy constructor to copy information from supplied service.
 Pcn1001CountInfoService obtainPcn1001CountInfoService(Pcn1001CountInfoService countInfoService)
          Obtains IPcn1001CountInfoService by invoking respective Pcn1001 copy constructor to copy information from supplied service.
 Pcn1001InfoService obtainPcn1001InfoService(Pcn1001InfoService infoService)
          Obtains IPcn1001InfoService by invoking respective Pcn1001 copy constructor to copy information from supplied service.
 Pcn1001Service obtainPcn1001Service(int snpAddress, Pcn1001SnpChannelService snpChannelService)
          Obtains IPcn1001Service.
 Pcn1001VersionInfoService obtainPcn1001VersionInfoService(Pcn1001VersionInfoService versionInfoService)
          Obtains IPcn1001VersionInfoService by invoking respective Pcn1001 copy constructor to copy information from supplied service.
 void releasePcn1001Service(int snpAddress)
          Releases IPcn1001Service.
 void releasePcn1001Service(Pcn1001Service service)
          Releases IPcn1001Service.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Pcn1001Factory

public Pcn1001Factory()
Method Detail

activate

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

deactivate

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

obtainPcn1001Service

public Pcn1001Service obtainPcn1001Service(int snpAddress,
                                           Pcn1001SnpChannelService snpChannelService)
Description copied from interface: Pcn1001FactoryService
Obtains IPcn1001Service.

Specified by:
obtainPcn1001Service in interface Pcn1001FactoryService
Parameters:
snpAddress - - SNP address of the counter as int
snpChannelService - - SNP channel service as IPcn1001SnpChannelService
Returns:

obtainPcn1001AddressInfoService

public Pcn1001AddressInfoService obtainPcn1001AddressInfoService(Pcn1001AddressInfoService addressInfoService)
Description copied from interface: Pcn1001FactoryService
Obtains IPcn1001AddressInfoService by invoking respective Pcn1001 copy constructor to copy information from supplied service.

Specified by:
obtainPcn1001AddressInfoService in interface Pcn1001FactoryService
Parameters:
addressInfoService - - PCN-1001 address info service as IPcn1001AddressInfoService
Returns:
new PCN-1001 address info service as IPcn1001AddressInfoService

obtainPcn1001CountInfoService

public Pcn1001CountInfoService obtainPcn1001CountInfoService(Pcn1001CountInfoService countInfoService)
Description copied from interface: Pcn1001FactoryService
Obtains IPcn1001CountInfoService by invoking respective Pcn1001 copy constructor to copy information from supplied service.

Specified by:
obtainPcn1001CountInfoService in interface Pcn1001FactoryService
Parameters:
countInfoService - - PCN-1001 count info service as IPcn1001CountInfoService
Returns:
new

obtainPcn1001VersionInfoService

public Pcn1001VersionInfoService obtainPcn1001VersionInfoService(Pcn1001VersionInfoService versionInfoService)
Description copied from interface: Pcn1001FactoryService
Obtains IPcn1001VersionInfoService by invoking respective Pcn1001 copy constructor to copy information from supplied service.

Specified by:
obtainPcn1001VersionInfoService in interface Pcn1001FactoryService
Parameters:
versionInfoService - - PCN-1001 version info service as IPcn1001VersionInfoService
Returns:
new PCN-1001 version info service as IPcn1001VersionInfoService

obtainPcn1001InfoService

public Pcn1001InfoService obtainPcn1001InfoService(Pcn1001InfoService infoService)
Description copied from interface: Pcn1001FactoryService
Obtains IPcn1001InfoService by invoking respective Pcn1001 copy constructor to copy information from supplied service.

Specified by:
obtainPcn1001InfoService in interface Pcn1001FactoryService
Parameters:
infoService - - PCN-1001 info service as IPcn1001InfoService
Returns:
new PCN-1001 info service as IPcn1001InfoService

releasePcn1001Service

public void releasePcn1001Service(int snpAddress)
Description copied from interface: Pcn1001FactoryService
Releases IPcn1001Service.

Specified by:
releasePcn1001Service in interface Pcn1001FactoryService
Parameters:
snpAddress - - release service with this SNP address

releasePcn1001Service

public void releasePcn1001Service(Pcn1001Service service)
Description copied from interface: Pcn1001FactoryService
Releases IPcn1001Service.

Specified by:
releasePcn1001Service in interface Pcn1001FactoryService
Parameters:
service - - service tro release as IPcn1001Service


Copyright © 2013. All Rights Reserved.