c4a8ac25 by David LaPalomento

Merge pull request #293 from dmlap/switching-sim-updates

Get the switching simulator working again
2 parents c18e3df7 11230c3e
1 (function(window, document) { 1 (function(window, document) {
2 'use strict'; 2 'use strict';
3
4 // the number of seconds of video in each segment
3 var segmentDuration = 9, // seconds 5 var segmentDuration = 9, // seconds
4 segmentCount = 10, 6
7 // the number of segments in the video
8 segmentCount = 100,
9
10 // the length of the simulation
5 duration = segmentDuration * segmentCount, 11 duration = segmentDuration * segmentCount,
12
13 // the number of seconds it takes for a single bit to be
14 // transmitted from the client to the server, or vice-versa
6 propagationDelay = 0.5, 15 propagationDelay = 0.5,
7 16
8 runSimulation, 17 runSimulation,
...@@ -25,6 +34,9 @@ ...@@ -25,6 +34,9 @@
25 this.tagsAvailable = function() { 34 this.tagsAvailable = function() {
26 return false; 35 return false;
27 }; 36 };
37 this.metadataStream = {
38 on: function() {}
39 };
28 }; 40 };
29 41
30 // a dynamic number of time-bandwidth pairs may be defined to drive the simulation 42 // a dynamic number of time-bandwidth pairs may be defined to drive the simulation
......