com.eurotech.framework.protocol.pcn
Class ErrStats

java.lang.Object
  extended by com.eurotech.framework.protocol.pcn.ErrStats

public class ErrStats
extends Object

Defines PCN1001 error statistics.

Author:
cristiano.dealti

Constructor Summary
ErrStats(int snpAddress, long replyErrors, int diagnosticStatus)
          ErrStats constructor
 
Method Summary
 int getDiagnosticStatus()
          Reports the last PCN1001 diagnostic status
 long getReplyErrors()
          Reports the number of SNP reply errors
 int getSnpAddress()
          Reports SNP address assigned to the counter.
 void setDiagnosticStatus(int diagnosticStatus)
          Sets the last PCN1001 diagnostic status
 void setReplyErrors(long replyErrors)
          Sets the number of SNP reply errors
 void setSnpAddress(int snpAddress)
          Sets SNP address assigned to the counter.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ErrStats

public ErrStats(int snpAddress,
                long replyErrors,
                int diagnosticStatus)
ErrStats constructor

Parameters:
snpAddress - - counter's SNP address as int
replyErrors - - counter's SNP reply errors as long
diagnosticStatus - - counter's diagnosticStatus as int
Method Detail

getSnpAddress

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

Returns:
counter's SNP address as int

setSnpAddress

public void setSnpAddress(int snpAddress)
Sets SNP address assigned to the counter.

Parameters:
snpAddress - - counter's SNP address as int

getReplyErrors

public long getReplyErrors()
Reports the number of SNP reply errors

Returns:
the number of SNP reply errors as long

setReplyErrors

public void setReplyErrors(long replyErrors)
Sets the number of SNP reply errors

Parameters:
replyErrors - - the number of SNP reply errors as long

getDiagnosticStatus

public int getDiagnosticStatus()
Reports the last PCN1001 diagnostic status

Returns:
the last PCN1001 diagnostic status as int

setDiagnosticStatus

public void setDiagnosticStatus(int diagnosticStatus)
Sets the last PCN1001 diagnostic status

Parameters:
diagnosticStatus - - the last PCN1001 diagnostic status as int


Copyright © 2013. All Rights Reserved.