Ejemplo n.º 1
0
    public PrepareEventGraphReactionTime(double time, int sessionID, int personID, string table, string type)
    {
        Sqlite.Open();

        //obtain data
        rtsAtSQL = SqliteReactionTime.SelectReactionTimes(true, sessionID, personID, type,
                                                          Sqlite.Orders_by.ID_DESC, 10); //select only last 10

        personMAXAtSQL = SqliteSession.SelectMAXEventsOfAType(
            true, sessionID, personID, table, type, "time");
        sessionMAXAtSQL = SqliteSession.SelectMAXEventsOfAType(
            true, sessionID, -1, table, type, "time");

        personMINAtSQL = SqliteSession.SelectMINEventsOfAType(
            true, sessionID, personID, table, type, "time");
        sessionMINAtSQL = SqliteSession.SelectMINEventsOfAType(
            true, sessionID, -1, table, type, "time");

        personAVGAtSQL = SqliteSession.SelectAVGEventsOfAType(
            true, sessionID, personID, table, type, "time");
        sessionAVGAtSQL = SqliteSession.SelectAVGEventsOfAType(
            true, sessionID, -1, table, type, "time");

        Sqlite.Close();

        this.time = time;
    }