videoLat  2.1
Video conferencing delay measurements
RunCollector.h
Go to the documentation of this file.
1 //
5 // Copyright 2010-2019 Centrum voor Wiskunde en Informatica. Licensed under GPL3.
6 //
7 //
8 
9 #import <Foundation/Foundation.h>
10 #import <stdio.h>
11 //XXXJACK#import "Document.h"
12 #import "protocols.h"
13 #import "MeasurementDataStore.h"
14 
22 @interface RunCollector : NSObject {
23  NSString* lastTransmission;
27 }
28 @property(readonly) double average;
29 @property(readonly) double stddev;
30 @property(readonly) int count;
31 @property(readonly) MeasurementDataStore *dataStore;
32 
33 
39 - (void) setInput: (NSString*)inputId name: (NSString*)inputName;
45 - (void) setOutput:(NSString*)outputId name: (NSString*)outputName;
51 - (void) startCollecting: (NSString*)scenario;
52 - (void) stopCollecting;
53 - (void) trim;
54 
61 - (BOOL) recordTransmission: (NSString*)data at: (uint64_t)now;
62 
72 - (BOOL) recordReception: (NSString*)data at: (uint64_t)now;
73 @end
Defines the MeasurementDataStore object.
void stopCollecting()
Stop filling the dataStore.
Definition: RunCollector.m:133
MeasurementDataStore * dataStore
Where this RunCollector should store the measurements.
Definition: RunCollector.h:26
double average
accessor for dataStore average
Definition: RunCollector.h:28
Definition: RunCollector.h:22
Definition: MeasurementDataStore.h:19
double stddev
accessor for dataStore stddev
Definition: RunCollector.h:29
NSString * lastTransmission
Internal: records most recently transmitted data.
Definition: RunCollector.h:23
uint64_t lastTransmissionTime
Internal: records timestamp of most recent transmission.
Definition: RunCollector.h:24
void trim()
Tell the dataStore to trim its data.
Definition: RunCollector.m:41
BOOL lastTransmissionReceived
Internal: true when lastTramsnission has already been received.
Definition: RunCollector.h:25
Various protocols for which multiple implementations exist.
int count
accessor for dataStore count
Definition: RunCollector.h:30