Beispiel #1
0
    //execution
    public PulseExecute(int personID, string personName, int sessionID, string type, double fixedPulse, int totalPulsesNum,
                        Chronopic cp, Gtk.Window app, int pDN,
                        bool volumeOn, Preferences.GstreamerTypes gstreamer,
                        //double progressbarLimit,
                        ExecutingGraphData egd
                        )
    {
        this.personID       = personID;
        this.personName     = personName;
        this.sessionID      = sessionID;
        this.type           = type;
        this.fixedPulse     = fixedPulse;
        this.totalPulsesNum = totalPulsesNum;


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

        this.pDN       = pDN;
        this.volumeOn  = volumeOn;
        this.gstreamer = gstreamer;
//		this.progressbarLimit = progressbarLimit;
        this.egd = egd;

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

        simulated = false;

        needUpdateEventProgressBar = false;
        needUpdateGraph            = false;

        //initialize eventDone as a Pulse
        eventDone = new Pulse();
    }
Beispiel #2
0
    //jump execution
    public JumpRjExecute(int personID, string personName,
                         int sessionID, string type, double fall, double weight,
                         double limitAsDouble, bool jumpsLimited,
                         Chronopic cp, Gtk.Window app, int pDN, bool allowFinishAfterTime,
                         bool volumeOn, Preferences.GstreamerTypes gstreamer,
                         RepetitiveConditionsWindow repetitiveConditionsWin,
                         double progressbarLimit, ExecutingGraphData egd
                         )
    {
        this.personID      = personID;
        this.personName    = personName;
        this.sessionID     = sessionID;
        this.type          = type;
        this.fall          = fall;
        this.weight        = weight;
        this.limitAsDouble = limitAsDouble;

        this.jumpsLimited = jumpsLimited;
        if (jumpsLimited)
        {
            this.limited = limitAsDouble.ToString() + "J";
        }
        else
        {
            //this.limited = limitAsDouble.ToString() + "T"; define later, because it can be higher if allowFinishRjAfterTime is defined
        }

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

        this.pDN = pDN;
        this.allowFinishAfterTime    = allowFinishAfterTime;
        this.volumeOn                = volumeOn;
        this.gstreamer               = gstreamer;
        this.repetitiveConditionsWin = repetitiveConditionsWin;
        this.progressbarLimit        = progressbarLimit;
        this.egd = egd;

        if (TypeHasFall)
        {
            hasFall = true;
        }
        else
        {
            hasFall = false;
        }

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

        simulated = false;

        needUpdateEventProgressBar = false;
        needUpdateGraph            = false;

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

        //initialize eventDone as a JumpRj
        eventDone = new JumpRj();
    }
    public void View(Constants.BellModes bellMode, bool volumeOn, Preferences.GstreamerTypes gstreamer,
                     Constants.EncoderVariablesCapture encoderMainVariable, EncoderRhythm encoderRhythm)
    {
        //when user "deleted_event" the window
        if (RepetitiveConditionsWindowBox == null)
        {
            RepetitiveConditionsWindowBox = new RepetitiveConditionsWindow();
        }
        RepetitiveConditionsWindowBox.showWidgets(bellMode, encoderMainVariable, encoderRhythm);

        RepetitiveConditionsWindowBox.repetitive_conditions.Show();
        RepetitiveConditionsWindowBox.volumeOn  = volumeOn;
        RepetitiveConditionsWindowBox.gstreamer = gstreamer;
    }
Beispiel #4
0
    //jump execution
    public JumpExecute(int personID, string personName, int sessionID, string type, double fall, double weight,
                       Chronopic cp, Gtk.Window app, int pDN,
                       bool volumeOn, Preferences.GstreamerTypes gstreamer,
                       double progressbarLimit, ExecutingGraphData egd, string description,
                       bool avoidGraph  //on configChronojump.Exhibition do not show graph because it gets too slow with big database
                       )
    {
        this.personID   = personID;
        this.personName = personName;
        this.sessionID  = sessionID;
        this.type       = type;
        this.fall       = fall;   //-1 means has to be calculated with a previous jump
        this.weight     = weight;

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

        this.pDN              = pDN;
        this.volumeOn         = volumeOn;
        this.gstreamer        = gstreamer;
        this.progressbarLimit = progressbarLimit;
        this.egd              = egd;
        this.description      = description;
        this.avoidGraph       = avoidGraph;

        if (TypeHasFall)
        {
            hasFall = true;
        }
        else
        {
            hasFall = false;
        }

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

        simulated = false;

        needUpdateEventProgressBar = false;
        needUpdateGraph            = false;

        //initialize eventDone as a Jump
        eventDone = new Jump();
    }
    //reactionTime execution
    public ReactionTimeExecute(int personID, string personName, int sessionID, string type,
                               Chronopic cp, Gtk.Window app, int pDN,
                               bool volumeOn, Preferences.GstreamerTypes gstreamer,
                               double progressbarLimit, ExecutingGraphData egd, string description
                               )
    {
        this.personID   = personID;
        this.personName = personName;
        this.sessionID  = sessionID;
        this.type       = type;

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

        this.pDN              = pDN;
        this.volumeOn         = volumeOn;
        this.gstreamer        = gstreamer;
        this.progressbarLimit = progressbarLimit;
        this.egd              = egd;
        this.description      = description;

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

        FakeButtonReactionTimeStart = new Gtk.Button();

        simulated = false;

        needUpdateEventProgressBar = false;
        needUpdateGraph            = false;


        //initialize eventDone as a ReactionTime
        eventDone = new ReactionTime();

        //updateProgressBar = new UpdateProgressBar();
    }