/* * public void Stat() { * Statistika stat = new Statistika(); * stat.obradi(); * } * * public void M(int n) { * pr.prikazMjesta(n); * } * public void SA(int n,string oznaka) { * pr.prikazSenzuatora(n, oznaka); * } */ public void LeaveSys(string m) { v.pobrisiSve(); v.print(m); Thread.Sleep(1500); //ExitSystem(); }
static void Main(string[] args) { string naredbe = " "; //E:\FAKS\PETO LETO\UzDiz\aletrajko_zadaca_3\aletrajko_zadaca_3\bin\Debug\aletrajko_zadaca_3.exe" -m C:\Users\Benghazi\Desktop\DZ_3_mjesta -s C:\Users\Benghazi\Desktop\DZ_3_senzori -a C:\Users\Benghazi\Desktop\DZ_3_aktuatori -br 30 -brk 2 -bs 80 -r DZ_3_raspored -pi 90-"; if (args.Count() > 0) { foreach (string a in args) { naredbe += a + " "; } IspisUpisSG v = IspisUpisSG.getInstance(); v.pobrisiSve(); F_Simplifier fsim = F_Simplifier.getInstance(); fsim.InitiateSystem(naredbe); fsim.StartSystem(); fsim.Finishing(); } else { IspisUpisSG v = IspisUpisSG.getInstance(); v.pobrisiSve(); v.print("Nema argumenata. Obustava rada."); } }
public void InitiateSystem(string parram) { IspisUpisSG v = IspisUpisSG.getInstance(); v.pobrisiSve(); naredbe = parram; par.split(parram); }