From 69892fbf78b8b4edf3a14e95d67dd2d07a2f037c Mon Sep 17 00:00:00 2001 From: Nathan Nguyen Date: Sun, 21 Feb 2021 11:08:04 -0500 Subject: [PATCH] Fixed the Parse to implement labels. --- templates/temp_index.html | 62 +++++++++++++++++++-------------------- 1 file changed, 31 insertions(+), 31 deletions(-) diff --git a/templates/temp_index.html b/templates/temp_index.html index b91cf42..ad3daa8 100644 --- a/templates/temp_index.html +++ b/templates/temp_index.html @@ -395,37 +395,37 @@

This is a simulation project, implem //skipsim = contents[4]; //outFile = contents[5]; - - - - packetsize = new Number(contents[0]); - rtsa = new Number(contents[1]); - maxqueuesize = new Number(contents[2]); - dddmappingdelay = new Number(contents[3]); - propagationdelay = new Number(contents[4]); - numofDDDport = new Number(contents[5]); - timetonextDDDport = new Number(contents[6]); - overlaptimeoldDDD = new Number(contents[7]); - durationSim = new Number(contents[8]); - numbSynAckResends = new Number(contents[9]); - clienttoRouter = new Number(contents[10]); - routertoClient = new Number(contents[11]); - routertoReflector = new Number(contents[12]); - routertoNormal = new Number(contents[13]); - normaltoRouter= new Number(contents[14]); - reflectortoRouter= new Number(contents[15]); - attackertoReflector= new Number(contents[16]); - queueLimit= new Number(contents[17]); - DDDstate = contents[18]; // booleans - attackerType = new Number(contents[19]); - amplification = new Number(contents[20]); - - - skipsim = contents[21]; // booleans - logfile = contents[22]; // booleans - summfile = contents[23]; // booleans - - console.log(logfile); + // Ignore up to index 23. + + + packetsize = new Number(contents[24]); + rtsa = new Number(contents[25]); + maxqueuesize = new Number(contents[26]); + dddmappingdelay = new Number(contents[27]); + propagationdelay = new Number(contents[28]); + numofDDDport = new Number(contents[29]); + timetonextDDDport = new Number(contents[30]); + overlaptimeoldDDD = new Number(contents[31]); + durationSim = new Number(contents[32]); + numbSynAckResends = new Number(contents[33]); + clienttoRouter = new Number(contents[34]); + routertoClient = new Number(contents[35]); + routertoReflector = new Number(contents[36]); + routertoNormal = new Number(contents[37]); + normaltoRouter= new Number(contents[38]); + reflectortoRouter= new Number(contents[39]); + attackertoReflector= new Number(contents[40]); + queueLimit= new Number(contents[41]); + DDDstate = contents[42]; // booleans + attackerType = new Number(contents[43]); + amplification = new Number(contents[44]); + + + skipsim = contents[45]; // booleans + logfile = contents[46]; // booleans + summfile = contents[47]; // booleans + + console.log(packetsize); console.log("The content is " + DDDstate); console.log("Second content is " + skipsim); document.getElementById("DDDstate").value = DDDstate;