Ejemplo n.º 1
0
    public override void PrepareData()
    {
        string sessionString = obtainSessionSqlString(sessions, "jump");
        bool   multisession  = false;

        if (sessions.Count > 1)
        {
            multisession = true;
        }

        if (statsJumpsType == 3)          //avg of each jumper

        /* not allowed in this jumpType
         * if(multisession) {
         *      string operation = "AVG";
         *      processDataMultiSession (
         *                      SqliteStat.CmjPlusPotency(sessionString, multisession,
         *                              operation, jumpType, showSex, heightPreferred),
         *                      true, sessions.Count);
         * } else {
         *      string operation = "AVG";
         *      processDataSimpleSession ( cleanDontWanted (
         *                              SqliteStat.CmjPlusPotency(sessionString, multisession,
         *                                      operation, jumpType, showSex, heightPreferred),
         *                              statsJumpsType, limit),
         *                      true, dataColumns);
         * }
         */
        {
        }
        else
        {
            //if more than on session, show only the avg or max of each jump/jumper
            if (multisession)
            {
                string operation = "MAX";
                processDataMultiSession(SqliteStat.Potency(indexType, sessionString, multisession,
                                                           operation, jumpType, showSex, heightPreferred),
                                        true, sessions.Count);
            }
            else
            {
                string operation = "";                 //no need of "MAX", there's an order by jump.tv desc
                                                       //and cleanDontWanted will do his work
                processDataSimpleSession(cleanDontWanted(
                                             SqliteStat.Potency(indexType, sessionString, multisession,
                                                                operation, jumpType, showSex, heightPreferred),
                                             statsJumpsType, limit),
                                         true, dataColumns);
            }
        }
    }
Ejemplo n.º 2
0
    //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");
    }
Ejemplo n.º 3
0
    public override void PrepareData()
    {
        string sessionString = obtainSessionSqlStringTwoTests(sessions);
        bool   multisession  = false;

        if (sessions.Count > 1)
        {
            multisession = true;
        }

        if (statsJumpsType == 3)          //avg of each jumper
        {
            if (multisession)
            {
                processDataMultiSession(
                    SqliteStat.Fv(sessionString, multisession, "AVG(", ")", jump1, jump2, showSex),
                    true, sessions.Count);
            }
            else
            {
                processDataSimpleSession(cleanDontWanted(
                                             SqliteStat.Fv(sessionString, multisession, "AVG(", ")", jump1, jump2, showSex),
                                             statsJumpsType, limit),
                                         true, dataColumns);
            }
        }
        else
        {
            //if more than on session, show only the avg or max of each jump/jumper
            //FIXME: indexes max value have two possibilities:
            //max jump1, max jump2 (seems more real)
            //max jump1, min jump2 (index goes greater)
            if (multisession)
            {
                processDataMultiSession(SqliteStat.Fv(sessionString, multisession, "MAX(", ")", jump1, jump2, showSex),
                                        true, sessions.Count);
            }
            else
            {
                processDataSimpleSession(SqliteStat.Fv(sessionString, multisession, "MAX(", ")", jump1, jump2, showSex),
                                         true, dataColumns);
            }
        }
    }
Ejemplo n.º 4
0
    public override void PrepareData()
    {
        string sessionString = obtainSessionSqlString(sessions, "jumpRj");
        //only simplesession
        bool multisession = false;

        //we send maxJumps for make all the results of same length (fill it with '-'s)
        //
        // cannot be avg in this statistic

        string operation = "";         //no need of "MAX", there's an order by (index) desc

        //and cleanDontWanted will do his work
        processDataSimpleSession(cleanDontWanted(
                                     SqliteStat.RjEvolution(sessionString, multisession,
                                                            operation, jumpType, showSex, maxJumps),
                                     statsJumpsType, limit),
                                 false, dataColumns); //don't print AVG and SD at end of row (has no sense)
    }
Ejemplo n.º 5
0
    public override void PrepareData()
    {
        string sessionString = obtainSessionSqlString(sessions, "runInterval");
        //only simplesession
        bool multisession = false;

        //we send maxRuns for make all the results of same length (fill it with '-'s)
        //
        // cannot be avg in this statistic

        string operation = "";         //no need of "MAX", there's an order by (index) desc

        //and cleanDontWanted will do his work
        processDataSimpleSession(cleanDontWanted(
                                     SqliteStat.RunInterval(sessionString, multisession,
                                                            operation, jumpType, showSex, maxRuns),
                                     statsJumpsType, limit),
                                 false, dataColumns); //TODO: maybe in future do avg and sd of speeds
    }
Ejemplo n.º 6
0
    public override void PrepareData()
    {
        string sessionString = obtainSessionSqlStringTwoTests(sessions);
        bool   multisession  = false;

        if (sessions.Count > 1)
        {
            multisession = true;
        }

        if (statsJumpsType == 3)          //avg of each jumper
        {
            if (multisession)
            {
                processDataMultiSession(
                    SqliteStat.JumpIndexes(sessionString, multisession, "AVG(", ")", jump1, jump2, showSex, useHeightsOnJumpIndexes),
                    true, sessions.Count);
            }
            else
            {
                processDataSimpleSession(cleanDontWanted(
                                             SqliteStat.JumpIndexes(sessionString, multisession, "AVG(", ")", jump1, jump2, showSex, useHeightsOnJumpIndexes),
                                             statsJumpsType, limit),
                                         true, dataColumns);
            }
        }
        else
        {
            //if more than on session, show only the avg or max of each jump/jumper
            //some of this options are never called becase we don't allow radiobutton all and limit (only avg and best)
            if (multisession)
            {
                processDataMultiSession(SqliteStat.JumpIndexes(sessionString, multisession, "MAX(", ")", jump1, jump2, showSex, useHeightsOnJumpIndexes),
                                        true, sessions.Count);
            }
            else
            {
                processDataSimpleSession(SqliteStat.JumpIndexes(sessionString, multisession, "MAX(", ")", jump1, jump2, showSex, useHeightsOnJumpIndexes),
                                         true, dataColumns);
            }
        }
    }
Ejemplo n.º 7
0
    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);
    }