Constructor
new Measure(latency, jitter, bandwidth, packetLoss)
Constructor for the Measurement.
Parameters:
Name | Type | Description |
---|---|---|
latency |
Number | Latency in ms |
jitter |
Number | Jitter in ms |
bandwidth |
Number | bandwidth in ms |
packetLoss |
Number | packetLoss |
- Source:
Members
bandwidth :Number
Bandwidth in kbps kilo bits per second
Type:
- Number
- Source:
jitter :Number
Jitter in ms
Type:
- Number
- Source:
latency :Number
Latency in ms
Type:
- Number
- Source:
packetLoss :Number
Packet Loss in probability 0 to 1
Type:
- Number
- Source:
Methods
extractBandwidth(arrivedMessages, expectedBandwidth)
From recieved in bandwidth measurement.
Parameters:
Name | Type | Description |
---|---|---|
arrivedMessages |
Array.<Number> | The sending times |
expectedBandwidth |
Number | The targeted bandwidth |
- Source:
extractJitter(reqTime)
Fill the jitter attribute with an Array of dates. Those dates are the
arrival dates of packets. The array is expected to be filled with zeroes
in the empty spaces thata re not used. The lenght considered is up to the
last not zero value.
Parameters:
Name | Type | Description | |||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
reqTime |
Array.<Object> |
Properties
|
- Source:
extractLatency(departureTime, arrivalTime)
Fill the packet loss and latency attribute with an Array of dates. Those
dates are thedeparture of the packet and the time of ariva of the
corresponding response. The array is expected to be filled with zeroes
in the empty spaces thata re not used. The lenght considered is up to the
last not zero value.
Parameters:
Name | Type | Description | |||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
departureTime |
Array.<Object> |
Properties
|
|||||||||
arrivalTime |
Array.<Object> |
Properties
|
- Source:
fromHeader(hdr)
Fill this object with contents from a text header.
Parameters:
Name | Type | Description |
---|---|---|
hdr |
String | Header line to extract the text from. |
- Source:
toHeader() → {String}
Extract the text view of this object to be included in headers.
- Source:
Returns:
The header representation of tose measurements.
- Type
- String