public static ObtainMaxNumberOfJumps ( string sessionString ) : int | ||
sessionString | string | |
리턴 | int |
public StatRjEvolution(StatTypeStruct myStatTypeStruct, int numContinuous, Gtk.TreeView treeview) { completeConstruction(myStatTypeStruct, treeview); this.numContinuous = numContinuous; string sessionString = obtainSessionSqlString(sessions, "jumpRj"); //we need to know the reactive with more jumps for prepare columns maxJumps = SqliteStat.ObtainMaxNumberOfJumps(sessionString); this.dataColumns = maxJumps * 2 + 2; //for simplesession (index, fall, (tv , tc)*jumps) //only simplesession store = getStore(dataColumns + 1); //jumper, datacolumns string [] columnsString; //in report, show only 5 TCs and 5 TFs every row, //if there are more jumps to show, let's cut them if (toReport && maxJumps > 5) { columnsString = new String[14]; //jumper, index, fall, count, 5 tc+tv } else { columnsString = new String[dataColumns + 1]; } columnsString[0] = Catalog.GetString("Jumper"); columnsString[1] = Catalog.GetString("Index"); columnsString[2] = Catalog.GetString("Fall"); if (toReport && maxJumps > 5) { columnsString[3] = Catalog.GetString("Count"); for (int i = 0; i < maxJumps && i < 5; i++) { columnsString[(i + 1) * 2 + 2] = Catalog.GetString("TC"); //cols: 4, 6, 8, ... columnsString[(i + 1) * 2 + 3] = Catalog.GetString("TF"); //cols: 5, 7, 9, ... } } else { for (int i = 0; i < maxJumps; i++) { columnsString[(i + 1) * 2 + 1] = Catalog.GetString("TC") + (i + 1).ToString(); //cols: 3, 5, 7, ... columnsString[(i + 1) * 2 + 2] = Catalog.GetString("TF") + (i + 1).ToString(); //cols: 4, 6, 8, ... } } if (toReport) { reportString = prepareHeadersReport(columnsString); } else { treeview.Model = store; prepareHeaders(columnsString); } }
//numContinuous passed only for writing correct Enunciate public GraphRjEvolution(StatTypeStruct myStatTypeStruct, int numContinuous) { isRjEvolution = true; completeConstruction(myStatTypeStruct, treeview); this.numContinuous = numContinuous; string sessionString = obtainSessionSqlString(sessions, "jumpRj"); //we need to know the reactive with more jumps for prepare columns //later this value can be changed in stats/main/plotgraphgraphseries because //there is possible to check the checked stats rows maxJumps = SqliteStat.ObtainMaxNumberOfJumps(sessionString); this.dataColumns = maxJumps * 2 + 2; //for simplesession (index, (tv , tc)*jumps, fall) //in X axe, we print the number of jumps, not the jumper names //this should be equal to the number of jumps //xAxisNames = new ArrayList(0); for (int i = 0; i < maxJumps; i++) { //xAxisNames.Add((i+1).ToString()); CurrentGraphData.XAxisNames.Add((i + 1).ToString()); } if (statsJumpsType == 2) { this.operation = "MAX"; } else { this.operation = "AVG"; } CurrentGraphData.WindowTitle = Catalog.GetString("ChronoJump graph"); //title is shown on the graph except it's a report, then title will be on the html if (myStatTypeStruct.ToReport) { CurrentGraphData.GraphTitle = ""; } else { //CurrentGraphData.GraphTitle = this.ToString(); CurrentGraphData.GraphTitle = ""; } CurrentGraphData.LabelLeft = translateYesNo("Time") + "(s)"; CurrentGraphData.LabelRight = ""; CurrentGraphData.LabelBottom = translateYesNo("Jumps"); }
public override void PrepareData() { string sessionString = obtainSessionSqlString(sessions, "jumpRj"); bool multisession = false; /* * if(sessions.Count > 1) { * multisession = true; * } */ string operation = ""; // cannot be avg in this statistic int maxJumps = SqliteStat.ObtainMaxNumberOfJumps(sessionString); processDataSimpleSession( cleanDontWanted( convertTCsTFsCombinedToIndexAVGSD( SqliteStat.RjEvolution(sessionString, multisession, operation, jumpType, showSex, maxJumps)), statsJumpsType, limit), false, dataColumns); }