Beispiel #1
0
        public static void Run()
        {
            AxesBuilder.Origin.Frequency = ApplicationSettings.Instance.OriginFrequency;
            AxesBuilder.Origin.LifeTime  = ApplicationSettings.Instance.OriginLifeTime;
            AxesBuilder.Origin.Weight    = ApplicationSettings.Instance.OriginWeight;

            AxesBuilder.Clustres = new List <StoneCluster>();

            DCC.Groups = new StoneGroup[8];
            for (int i = 0; i < 8; i++)
            {
                DCC.Groups[i] = new StoneGroup(i);
            }

            DataAggregator.Initialize();

            DataSet = new StoneDataSet();
            DataSet.LoadFromFile(ApplicationSettings.Instance.LoadFilePath);

            PersistThread.Start();
            RunStone(DataSet);

            ApplicationSettings.Instance.OriginFrequency = AxesBuilder.Origin.Frequency;
            ApplicationSettings.Instance.OriginLifeTime  = AxesBuilder.Origin.LifeTime;
            ApplicationSettings.Instance.OriginWeight    = AxesBuilder.Origin.Weight;

            ApplicationSettings.Instance.Save();
        }
Beispiel #2
0
        private static void RunStone(StoneDataSet DataSet)
        {
            if (DataSet == null || DataSet.Tuples.Count == 0)
            {
                throw new HelperClasses.LibraryException("DataSet از فایل خوانده نشده است.");
            }

            foreach (DataSetTuple dataSetTuple in DataSet.Tuples)
            {
                DataAggregator.AddTuple(dataSetTuple);
                FilterComponent.AddTuple(dataSetTuple);
            }
        }