Exemplo n.º 1
0
        public SpaceForm()
        {
            if (self == null)
            {
                self = this;
            }
            else
            {
                throw new Exception("Nope");
            }

            //import z this.Designer.cs
            InitializeComponent();

            //init algos
            VSAlgo.init();
            VSAlgo.resetAll();
            try
            {
                ELAlgo.init();
                ELAlgo.resetAll();
            }
            catch (Exception e)
            {
                MessageBox.Show("Nie można zainicjalizować modułu SWI-Prolog. Algorytm EBL będzie niedostępny."
                                + Environment.NewLine + Environment.NewLine + "Szczegóły: " + e.ToString(),
                                "Błąd inicjalizacji", MessageBoxButtons.OK, MessageBoxIcon.Error);
                ELAlgo.logApp("Błąd inicjalizacji, algorytm będzie niedostępny");
                SpaceForm.self.tcTabs.TabPages.Remove(SpaceForm.self.tabExpLearning);
            }

            SpaceForm.Bump();
        }
Exemplo n.º 2
0
 private void bELExtractRule_Click(object sender, EventArgs e)
 {
     ELAlgo.execQuery(SpaceForm.self.tbELRuleInput.Text);
 }
Exemplo n.º 3
0
 private void bELSaveFactToDT_Click(object sender, EventArgs e)
 {
     ELAlgo.addDerivedFact();
 }
Exemplo n.º 4
0
 private void bELResetAll_Click(object sender, EventArgs e)
 {
     ELAlgo.resetAll();
 }