コード例 #1
0
ファイル: SolverEngine.cs プロジェクト: taesiri/Simulation
        public SolverEngine(ReaderEngine engine, SolvingMethod method, int length)
        {
            _isInitialized = true;
            _readerEngine = engine;
            _solverMethod = method;
            _caseLength = length;

            if (_readerEngine == ReaderEngine.Python)
            {
                _scriptReader = new PythonScriptReader();
            }
            else if (_readerEngine == ReaderEngine.CSharp)
            {
                _scriptReader = new BuiltInFunctions();
            }
            else if (_readerEngine == ReaderEngine.FSharp)
            {
            }
            else if (_readerEngine == ReaderEngine.Ruby)
            {
            }
            else if (_readerEngine == ReaderEngine.BuiltIn)
            {
            }
        }
コード例 #2
0
ファイル: frmMain.cs プロジェクト: oduslabs/Spreeder
        public frmMain()
        {
            InitializeComponent();

            cbIter.DataSource = Enum.GetValues(typeof(Iterations));

            btnFore.Click += btnColors_Click;
            btnBack.Click += btnColors_Click;

            _reader = new ReaderEngine();
        }
コード例 #3
0
ファイル: SolverEngine.cs プロジェクト: taesiri/Simulation
        public SolverEngine(ReaderEngine engine, SolvingMethod method, int length)
        {
            _randomGenerator = new Random(DateTime.Now.Millisecond);
            _solvedData = new List<ICustomer>();
            _carhopses = new List<Carhops>();
            _globalList = new FutureEventList();

            _isInitialized = true;
            _readerEngine = engine;
            _solverMethod = method;
            _caseLength = length;

            if (_readerEngine == ReaderEngine.Python)
            {
                _scriptReader = new PythonScriptReader();
            }
            else if (_readerEngine == ReaderEngine.BuiltIn)
            {
                _scriptReader = new BuiltInFunctions();
            }
        }