public Direto2(ElicitationParameters p, IFormPrincipal ifPrincipal)
        {
            InitializeComponent();
            this.ifPrincipal = ifPrincipal;
            this.question    = this.ifPrincipal.getQuestion();
            this.p           = p.getClone();

            this.p.max = p.max;
            this.p.min = p.min;
            this.upperOfLowerInterval = p.upperOfLowerInterval;
            this.lowerOfUpperInterval = p.lowerOfUpperInterval;
            this.p.center             = p.center;
            this.p.cred         = p.cred;
            this.p.index        = p.index;
            this.p.iteracao     = p.iteracao + 1;
            this.times          = p.times;
            this.answers        = p.answers;
            this.statistics     = p.statistics;
            this.W              = p.W;
            this.x              = p.x;
            this.k              = p.k;
            this.numberInterval = k;
            this.intervalSize   = (p.min + p.max) / p.k;

            initMethod2();
            this.loadConfigMethodForVariable();

            this.configChartSeriesDirect(p.min, p.max, p.k);
        }
Exemple #2
0
 public Form0(sbyte METHOD, IFormPrincipal iFormPrincipal)
 {
     // TODO: Complete member initialization
     this.METHOD      = METHOD;
     this.ifPrincipal = iFormPrincipal;
     InitializeComponent();
 }
Exemple #3
0
        public InserirPerguntas(IFormPrincipal iformPrincipal)
        {
            InitializeComponent();

            /*this.pergunta = pergunta;
             * this.respostaCerta = respostaCerta;
             * this.distribuicao = distribuicao;
             * this.alternativas = alternativas;
             * this.caminhoImagem = caminhoImagem*/
            this.ifPrincipal            = iformPrincipal;
            this.conhecimentoMatematico = 0;
            this.ancoragem          = 0;
            this.representatividade = 0;
            this.autoconfianca      = 0;
            this.disponibilidade    = 0;
            this.calibraFirmino     = 0;
            this.calibraDireto      = 0;
            this.calibraBissecao    = 0;
            this.aplicaFirmino      = 0;
            this.aplicaDireto       = 0;
            this.aplicaBissecao     = 0;
            this.aplicaScoringRules = 0;
            this.serahUsada         = 0;
            this.variavelNominal    = 0;
            IFormPrincipal iFPrincipal;
            Access         access = Access.getInstance();
        }
Exemple #4
0
 public Form0(sbyte METHOD, Variable variable, IFormPrincipal iFormPrincipal)
 {
     this.ifPrincipal = iFormPrincipal;
     this.METHOD      = METHOD;
     this.variable    = variable;
     InitializeComponent();
     ifPrincipal.getWatch().Reset();
     ifPrincipal.getWatch().Start();
 }
Exemple #5
0
        static ElicitationHelper instance(IFormPrincipal ifPrincipal)
        {
            if (_instance == null)
            {
                _instance = new ElicitationHelper(ifPrincipal);
            }

            return(_instance);
        }
Exemple #6
0
        public TabControlIteration(IFormPrincipal iformPrincipal, IMethod method)
        {
            InitializeComponent();
            this.question = iformPrincipal.getQuestion();
            if (question != null)
            {
                this.RTX_variable.Text = iformPrincipal.getQuestion().enunciado;
            }

            loadPanel(method, this.TLP_iteration);
            this.ActiveControl = this.TC_iterations;
            this.TC_iterations.Focus();
        }
        public Bisection(ElicitationParameters p, IFormPrincipal ifPrincipal) : base()
        {
            InitializeComponent();
            this.ifPrincipal = ifPrincipal;
            this.question    = this.ifPrincipal.getQuestion();
            this.p           = p.getClone();

            //this.upperOfLowerInterval = p.upperOfLowerInterval;
            //this.lowerOfUpperInterval = p.lowerOfUpperInterval;
            this.lowerOfUpperInterval = new List <double> ();
            this.upperOfLowerInterval = new List <double> ();
            //this.center = p.center;
            this.p.cred     = p.cred;
            this.p.index    = p.index;
            this.p.iteracao = p.iteracao + 1;
            this.times      = p.times;
            this.answers    = p.answers;
            this.statistics = p.statistics;
            this.x          = p.x;

            if (ifPrincipal.isTrainingPhase())  //Permitir apenas uma iteração caso seja treinamento.
            //List<double> lines = new List<double>();
            //this.ifPrincipal.markChoosableAreaChartSeries(lines);
            {
                if (this.p.iteracao > 1)
                {
                    this.RB_semPreferencia.Enabled = false;
                    this.TR_mdSearch.Enabled       = false;
                }
            }
            else
            {
                if (this.p.iteracao >= 4)
                {
                    this.RB_semPreferencia.Enabled = false;
                    this.TR_mdSearch.Enabled       = false;
                }
            }

            this.intervals = this.x.ToList();

            showMainPanel(p.min, p.center, p.max, this.p.cred, this.p.index);
            this.loadConfigMethodForVariable();

            List <double> lines = new List <double>();

            lines.Add(this.p.min);
            lines.Add(this.p.center);
            lines.Add(this.p.max);
            this.ifPrincipal.markChoosableAreaChartSeries(lines);
        }
Exemple #8
0
        public FirstElicitationPanel(ElicitationMethod elicitationMethod, IFormPrincipal ifPrincipal)
        {
            InitializeComponent();
            this.ifPrincipal       = ifPrincipal;
            this.elicitationMethod = elicitationMethod;
            firstPanelList.Add(this.PN_startElicitationFirmDirecBisec);

            initFirstPanel(elicitationMethod);

            question = ifPrincipal.getQuestion();

            this.displayChartSeries(question);
            List <double> lines = new List <double>();

            this.ifPrincipal.markChoosableAreaChartSeries(lines);
        }
        public TreinamentoDireto(IFormPrincipal iFormPrincipal):this()
        {
            this.ifPrincipal = iFormPrincipal;
            question = this.ifPrincipal.getQuestion ();
            this.numberAlternatives = question.alternatives.Count;
            this.xgra = new double[numberAlternatives];
            this.ygra = new double[numberAlternatives];

            this.numericUpDownList1.NumberControls = this.numberAlternatives;
            this.numericUpDownList1.configInputControls();

            initControls();

            this.loadConfigMethodForVariable();
            
        }
Exemple #10
0
        //private Variable variable;

        //Construtor
        public Firmino(ElicitationParameters p, IFormPrincipal ifPrincipal)
        {
            this.ifPrincipal = ifPrincipal;
            this.question    = this.ifPrincipal.getQuestion();
            this.p           = p.getClone();
            //Este if indica que o método só fará três interações.
            if (p.iteracao >= 3)
            {
                this.BT_Update.Enabled = false;
            }
            else
            {
                this.BT_Update.Enabled = true;
            }

            showMainPanel(p.min, p.center, p.max, p.cred, p.index);
            this.loadConfigMethodForVariable();
        }
        public TreinamentoFirmino(IFormPrincipal iFormPrincipal):base()
        {
            try{
                InitializeComponent();
                this.ifPrincipal = iFormPrincipal;
                question = this.ifPrincipal.getQuestion();
                RadioButtonList = new ArrayList (question.alternatives.Count);
                RadioButtonList.Add (this.RB_option0); RadioButtonList.Add (this.RB_option1); 
                UpdateRadiosDynamics ();
                this.loadConfigMethodForVariable();

                initControls();

                this.RB_option0.Focus();
            } catch(Exception exc) {
                MessageBox.Show (exc.Message + "\n \n" + exc.StackTrace);
            }

        }
Exemple #12
0
 public FirstElicitationPanel(IFormPrincipal iformPrincipal)
 {
     InitializeComponent();
     this.ifPrincipal = iformPrincipal;
 }
Exemple #13
0
 private ElicitationHelper(IFormPrincipal ifPrincipal)
 {
     this.ifPrincipal = ifPrincipal;
 }
Exemple #14
0
        public FormularioCadastro(IFormPrincipal iformPrincipal)
        {
            int j = 0;

            ST_P_GRAU        = Expert.ST.DEGREES[j]; j++;
            ST_S_GRAU        = Expert.ST.DEGREES[j]; j++;
            ST_CURSO_TECNICO = Expert.ST.DEGREES[j]; j++;
            ST_GRADUACAO     = Expert.ST.DEGREES[j]; j++;
            ST_ESPECIALIDADE = Expert.ST.DEGREES[j]; j++;
            ST_MESTRADO      = Expert.ST.DEGREES[j]; j++;
            ST_DOUTORADO     = Expert.ST.DEGREES[j]; j++;
            InitializeComponent();
            this.iformPrincipal = iformPrincipal;
            //InterfaceBanco banco = InterfaceBanco.getInstance();
            //analistas = banco.retornarAnalistas();
            DBEntity dbProject = new Project();

            access.dbProjects = dbProject.getDataSource();
            int nProjects = access.dbProjects.Count;

            for (int i = 1; i < nProjects; i++)
            {
                CB_project.Items.Add(((Project)access.dbProjects[i]).name);
            }

            DBEntity dbAnalyst = new Analyst();

            access.dbAnalysts = dbAnalyst.getDataSource();
            int nAnalysts = access.dbAnalysts.Count;

            for (int i = 1; i < nAnalysts; i++)
            {
                CB_analista.Items.Add(((Analyst)access.dbAnalysts[i]).name);
            }

            DBEntity dbMethod = new Method(-1);

            dbMethods = dbMethod.getDataSource();
            int nMethods = dbMethods.Count;

            for (int i = 0; i < nMethods; i++)
            {
                if ((((Method)dbMethods[i]).name) != "0")
                {
                    //CB_MetodoEducao.Items.Add (((Method)dbMethods[i]).name);
                    CB_MetodoEducao.Items.Add(new ComboBoxItem(((Method)dbMethods[i]).id.ToString(), ((Method)dbMethods[i]).name));
                    //CB_MetodoTreinamento.Items.Add (((Method)dbMethods[i]).name);
                    CB_MetodoTreinamento.Items.Add(new ComboBoxItem(((Method)dbMethods[i]).id.ToString(), ((Method)dbMethods[i]).name));
                }
            }

            DBEntity dbExpert = new Expert(null);

            this.access.dbExperts = dbExpert.getDataSource();
            int nExperts = this.access.dbExperts.Count;

            CB_email.Items.Clear();
            for (int i = 1; i < nExperts; i++)
            {
                CB_email.Items.Add(((Expert)this.access.dbExperts[i]).email);
            }
        }
Exemple #15
0
 public ElicitationManager(ElicitationMethod elicitationMethod, IFormPrincipal ifPrincipal)
 {
     this.ifPrincipal       = ifPrincipal;
     this.elicitationMethod = elicitationMethod;
     firstPanelList.Add(new FirstElicitationPanel());
 }
 public RetomaSessao(IFormPrincipal ifPrincipal)
 {
     InitializeComponent();
     this.iFPrincipal = ifPrincipal;
 }
        public Filter(IFormPrincipal iFPrincipal)
        {
            this.iFPrincipal             = iFPrincipal;
            this.tempo                   = new List <double>();
            this.id_question             = new List <int>();
            this.nome_arquivo_accuracy   = "../../accuracy.txt";
            this.nome_arquivo_efficiency = "../../efficiency.txt";
            this.queryAccuracy           = "select * from estatisticas inner join processos p"
                                           + " on p.id_processos = estatisticas.id_processos"
                                           + " inner join projeto prj on prj.id_projeto = p.id_projeto"
                                           + " inner join analistas a on a.id_analistas = p.id_analistas"
                                           + " inner join especialistas e on e.id_especialista = p.id_especialista"
                                           + " inner join titulacao t on t.id_especialista = e.id_especialista";
            //+"where e.id_especialista = 1 and prj.id_projeto = 1 and a.id_analistas = 1 and t.titulacao = 'Mestrado'";
            this.queryEficience = "select * from time_events inner join processos p"
                                  + " on p.id_processos = time_events.id_processos"
                                  + " inner join projeto prj on prj.id_projeto = p.id_projeto"
                                  + " inner join analistas a on a.id_analistas = p.id_analistas"
                                  + " inner join especialistas e on e.id_especialista = p.id_especialista"
                                  + " inner join titulacao t on t.id_especialista = e.id_especialista";
            //+ "where e.id_especialista = 1 and prj.id_projeto = 1 and a.id_analistas = 1 and t.titulacao = 'Mestrado'";
            InitializeComponent();
            LB_filter.Text = queryAccuracy + "\n" + queryEficience;
            DBEntity dbProject = new Project();

            this.access.dbProjects = dbProject.getDataSource();
            int length = this.access.dbProjects.Count;

            for (int i = 1; i < length; i++)
            {
                Project proj_i = (Project)this.access.dbProjects[i];
                this.CLB_ATS_projects.addItem(proj_i.name);
            }

            DBEntity dbExpert = new Expert(null);

            this.access.dbExperts = dbExpert.getDataSource();
            length = this.access.dbExperts.Count;
            for (int i = 0; i < length; i++)
            {
                Expert exp_i = (Expert)this.access.dbExperts[i];
                if (exp_i.email != "NULL")//não pegar o especialista nulo
                {
                    this.CLB_ATS_emails.addItem(exp_i.email);
                }
            }

            this.CLB_ATS_professionalProfile.addItems(Expert.ST.PROFESSINOAL_PROFILES);
            this.CLB_ATS_mathDomain.addItems(Expert.ST.SCALE_0_10);
            this.CLB_ATS_uncertaintyDomain.addItems(Expert.ST.SCALE_0_10);
            this.CLB_ATS_degree.addItems(Expert.ST.DEGREES);

            DBEntity dbAnalista = new Analyst();

            this.access.dbAnalysts = dbAnalista.getDataSource();
            for (int i = 1; i < this.access.dbAnalysts.Count; i++)
            {
                Analyst ana_i = (Analyst)this.access.dbAnalysts[i];
                this.CLB_ATS_analysts.addItem(ana_i.name);
            }
        }