public class MessageFrequencyCalculator
extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
protected double |
deltaTxRxTimeNanosLastMsg |
protected double |
lastSecondMsgTime |
protected double |
messageFreq |
protected long |
msgsInLastSec |
protected double |
timeMillisLastMsg |
Constructor and Description |
---|
MessageFrequencyCalculator() |
Modifier and Type | Method and Description |
---|---|
double |
getDeltaTxRxTimeNanosLastMsg() |
double |
getMessageFreq()
Don't need to override this method. |
long |
getMsgCount() |
double |
getTimeMillisLastMsg()
Don't need to override this method. |
static void |
main(java.lang.String[] args) |
void |
setDeltaTxRxTimeNanosLastMsg(double deltaTxRxTimeNanosLastMsg) |
void |
setTimeMillisLastMsg(double timeMillisLastMsgReceived)
This function is used to set the last msg time arrival on processor and it will calculate the frequency of
arrival.
|
protected double timeMillisLastMsg
protected long msgsInLastSec
protected double messageFreq
protected double lastSecondMsgTime
protected double deltaTxRxTimeNanosLastMsg
public final double getTimeMillisLastMsg()
Don't need to override this method.
public final void setTimeMillisLastMsg(double timeMillisLastMsgReceived)
Don't need to override this method.
timeMillisLastMsgReceived
- the timeLastMsgReceived to setpublic long getMsgCount()
public final double getDeltaTxRxTimeNanosLastMsg()
public final void setDeltaTxRxTimeNanosLastMsg(double deltaTxRxTimeNanosLastMsg)
processDeltaTxRxTimeNanosLastMsg
- the processDeltaTxRxTimeNanosLastMsg to setpublic final double getMessageFreq()
Don't need to override this method.
public static void main(java.lang.String[] args)
args
- Copyright © 2004-2014 FEUP-LSTS and Neptus developers. All Rights Reserved.