예제 #1
0
    public RunPhaseTimeList(Constants.DoubleContact checkDoubleContactMode, int checkTime)
    {
        this.checkDoubleContactMode = checkDoubleContactMode;
        this.checkTime = checkTime;

        listPhaseTime = new List <PhaseTime>();
        FirstRPIs     = 0;
    }
예제 #2
0
    //constructor
    public RunExecuteInspector(Types type, bool speedStartArrival,
                               Constants.DoubleContact checkDoubleContactMode, int checkDoubleContactTime)
    {
        this.type = type;
        this.speedStartArrival      = speedStartArrival;
        this.checkDoubleContactMode = checkDoubleContactMode;
        this.checkDoubleContactTime = checkDoubleContactTime;

        listInOut = new List <InOut>();
    }
예제 #3
0
    private List <RunPhaseInfo> listCaptureThread;    //this list contains TCs and TFs from capture thread


    //constructor ------------------------------------------
    public RunDoubleContact(Constants.DoubleContact mode, int checkTime, bool speedStartArrival)
    {
        this.mode              = mode;
        this.checkTime         = checkTime;
        this.speedStartArrival = speedStartArrival;

        lastTc                      = 0;
        timeAcumulated              = 0;
        rpim                        = new RunPhaseInfoManage(checkTime);
        listCaptureThread           = new List <RunPhaseInfo>();
        FirstTrackDone              = false;
        TrackDoneHasToBeCalledAgain = false;
    }
예제 #4
0
파일: run.cs 프로젝트: GNOME/chronojump
    //run execution
    public RunExecute(int personID, int sessionID, string type, double distance,   
			Chronopic cp, Gtk.Label event_execute_label_message, Gtk.Window app, 
			int pDN, bool metersSecondsPreferred, bool volumeOn,
			double progressbarLimit, ExecutingGraphData egd,
			Constants.DoubleContact checkDoubleContactMode, int checkDoubleContactTime, 
			bool speedStartArrival
			)
    {
        this.personID = personID;
        this.sessionID = sessionID;
        this.type = type;
        this.distance = distance;

        this.cp = cp;
        this.event_execute_label_message = event_execute_label_message;
        this.app = app;

        this.pDN = pDN;
        this.metersSecondsPreferred = metersSecondsPreferred;
        this.volumeOn = volumeOn;
        this.progressbarLimit = progressbarLimit;
        this.egd = egd;
        this.checkDoubleContactMode = checkDoubleContactMode;
        this.checkDoubleContactTime = checkDoubleContactTime;
        this.speedStartArrival = speedStartArrival;

        fakeButtonUpdateGraph = new Gtk.Button();
        fakeButtonEventEnded = new Gtk.Button();
        fakeButtonFinished = new Gtk.Button();
        fakeButtonThreadDyed = new Gtk.Button();

        simulated = false;

        needUpdateEventProgressBar = false;
        needUpdateGraph = false;

        //initialize eventDone as a Run
        eventDone = new Run();
    }
예제 #5
0
    //run execution
    public RunExecute(int personID, int sessionID, string type, double distance,
                      Chronopic cp, Gtk.Label event_execute_label_message, Gtk.Window app,
                      int pDN, bool metersSecondsPreferred, bool volumeOn,
                      double progressbarLimit, ExecutingGraphData egd,
                      Constants.DoubleContact checkDoubleContactMode, int checkDoubleContactTime,
                      bool speedStartArrival
                      )
    {
        this.personID  = personID;
        this.sessionID = sessionID;
        this.type      = type;
        this.distance  = distance;

        this.cp = cp;
        this.event_execute_label_message = event_execute_label_message;
        this.app = app;

        this.pDN = pDN;
        this.metersSecondsPreferred = metersSecondsPreferred;
        this.volumeOn         = volumeOn;
        this.progressbarLimit = progressbarLimit;
        this.egd = egd;
        this.checkDoubleContactMode = checkDoubleContactMode;
        this.checkDoubleContactTime = checkDoubleContactTime;
        this.speedStartArrival      = speedStartArrival;

        fakeButtonUpdateGraph = new Gtk.Button();
        fakeButtonEventEnded  = new Gtk.Button();
        fakeButtonFinished    = new Gtk.Button();
        fakeButtonThreadDyed  = new Gtk.Button();

        simulated = false;

        needUpdateEventProgressBar = false;
        needUpdateGraph            = false;

        //initialize eventDone as a Run
        eventDone = new Run();
    }
예제 #6
0
    //run execution
    public RunIntervalExecute(int personID, int sessionID, string type, double distanceInterval, double limitAsDouble, bool tracksLimited,
                              Chronopic cp, Gtk.Label event_execute_label_message, Gtk.Window app, int pDN, bool metersSecondsPreferred,
                              bool volumeOn, RepetitiveConditionsWindow repetitiveConditionsWin,
                              double progressbarLimit, ExecutingGraphData egd,
                              Constants.DoubleContact checkDoubleContactMode, int checkDoubleContactTime,
                              bool speedStartArrival
                              )
    {
        this.personID         = personID;
        this.sessionID        = sessionID;
        this.type             = type;
        this.distanceInterval = distanceInterval;
        this.limitAsDouble    = limitAsDouble;
        this.tracksLimited    = tracksLimited;

        //if distances are variable
        distancesString = "";
        if (distanceInterval == -1)
        {
            RunType runType = SqliteRunIntervalType.SelectAndReturnRunIntervalType(type, false);
            distancesString = runType.DistancesString;
        }


        if (tracksLimited)
        {
            this.limited = limitAsDouble.ToString() + "R";             //'R'uns (don't put 'T'racks for not confusing with 'T'ime)
        }
        else
        {
            this.limited = limitAsDouble.ToString() + "T";
            timeTotal    = limitAsDouble;
        }


        this.cp = cp;
        this.event_execute_label_message = event_execute_label_message;
        this.app = app;

        this.metersSecondsPreferred = metersSecondsPreferred;
        this.pDN      = pDN;
        this.volumeOn = volumeOn;
        this.repetitiveConditionsWin = repetitiveConditionsWin;
        this.progressbarLimit        = progressbarLimit;
        this.egd = egd;
        this.checkDoubleContactMode = checkDoubleContactMode;
        this.checkDoubleContactTime = checkDoubleContactTime;
        this.speedStartArrival      = speedStartArrival;

        fakeButtonUpdateGraph = new Gtk.Button();
        fakeButtonEventEnded  = new Gtk.Button();
        fakeButtonFinished    = new Gtk.Button();
        fakeButtonThreadDyed  = new Gtk.Button();

        simulated = false;

        needUpdateEventProgressBar = false;
        needUpdateGraph            = false;

        timesForSavingRepetitive = 1;         //number of times that this repetive event needs for being recorded in temporal table

        //initialize eventDone as a RunInterval
        eventDone = new RunInterval();
    }