com.eurotech.framework.protocol.pcn
Interface Pcn1001CountInfoService

All Known Subinterfaces:
Pcn1001InfoService, Pcn1001Service
All Known Implementing Classes:
Pcn1001

public interface Pcn1001CountInfoService

Defines PCN-1001 IN/OUT Count info service.

Author:
ilya.binshtok

Field Summary
static String SERVICE_NAME
          name of this service
 
Method Summary
 long getCommunicationErrors()
          Reports the number of communication errors.
 int getDiagnosticStatus()
          Reports the diagnostic status.
 int getInCount()
          Reports current value of IN counter.
 int getOutCount()
          Reports current value of OUT counter.
 long getReplyErrors()
          Reports the number of reply errors.
 int getSnpAddress()
          Reports SNP address assigned to the counter.
 boolean isAutoLedEnabled()
          Reports if 'autoled' functionality is enabled.
 boolean isCountingEnabled()
          Reports if counting is enabled.
 boolean isDiagnosticsEnabled()
          Reports if diagnostics is enabled.
 boolean isSnpDisabled()
          Reports the status of SNP communication
 void setInCount(int inCount)
          Sets IN count.
 void setOutCount(int outCount)
          Sets OUT count.
 

Field Detail

SERVICE_NAME

static final String SERVICE_NAME
name of this service

Method Detail

getSnpAddress

int getSnpAddress()
Reports SNP address assigned to the counter.

Returns:
counter's SNP address as int

getInCount

int getInCount()
Reports current value of IN counter.

Returns:
value of IN counter as int

setInCount

void setInCount(int inCount)
Sets IN count.

Parameters:
inCount - - IN count as int

getOutCount

int getOutCount()
Reports current value of OUT counter.

Returns:
value of OUT counter as int

setOutCount

void setOutCount(int outCount)
Sets OUT count.

Parameters:
outCount - - OUT count as int

isCountingEnabled

boolean isCountingEnabled()
Reports if counting is enabled.

Returns:
boolean

isAutoLedEnabled

boolean isAutoLedEnabled()
Reports if 'autoled' functionality is enabled.

Returns:
boolean

getReplyErrors

long getReplyErrors()
Reports the number of reply errors.

Returns:
long

getCommunicationErrors

long getCommunicationErrors()
Reports the number of communication errors.

Returns:
long

isSnpDisabled

boolean isSnpDisabled()
Reports the status of SNP communication

Returns:
boolean

isDiagnosticsEnabled

boolean isDiagnosticsEnabled()
Reports if diagnostics is enabled.

Returns:
boolean

getDiagnosticStatus

int getDiagnosticStatus()
Reports the diagnostic status.

Returns:
int


Copyright © 2013. All Rights Reserved.