예제 #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);
            ReadFromDataSet();

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

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

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