Beispiel #1
0
        public void Load()
        {
            StorageSystemSerializer storageSystemSerializer = new StorageSystemSerializer();

            SimulatorTenant loadedTenant = (SimulatorTenant)storageSystemSerializer.Load("Tenant.xml", typeof(SimulatorTenant));

            this.simulatorTenant = loadedTenant != null ? loadedTenant : this.simulatorTenant;

            SimulatorStockLocation loadedStockLocation = (SimulatorStockLocation)storageSystemSerializer.Load("StockLocation.xml", typeof(SimulatorStockLocation));

            this.simulatorStockLocation = loadedStockLocation != null ? loadedStockLocation : this.simulatorStockLocation;

            StorageSystemStock loadedStock = (StorageSystemStock)storageSystemSerializer.LoadWithDataContract("Stock.xml", typeof(StorageSystemStock));

            this.stock = loadedStock != null ? loadedStock : this.stock;

            SimulatorArticleMasterSetCore loadedArticleMasterSetCore = (SimulatorArticleMasterSetCore)storageSystemSerializer.Load("ArticleMasterSet.xml", typeof(SimulatorArticleMasterSetCore));

            this.articleMasterSetCore = loadedArticleMasterSetCore != null ? loadedArticleMasterSetCore : this.articleMasterSetCore;

            SimulatorStockDeliverySetCore loadedStockDeliverySetCore = (SimulatorStockDeliverySetCore)storageSystemSerializer.LoadWithDataContract("StockDeliverySet.xml", typeof(SimulatorStockDeliverySetCore));

            this.stockDeliverySetCore = loadedStockDeliverySetCore != null ? loadedStockDeliverySetCore : this.stockDeliverySetCore;

            this.InitializeCores();
        }
Beispiel #2
0
        public StorageSystemSimulatorCore()
        {
            this.converterStreamList = new List <IConverterStream>();

            this.simulatorTenant        = new SimulatorTenant();
            this.simulatorStockLocation = new SimulatorStockLocation();
            this.stock = new StorageSystemStock();

            this.statusCore           = new SimulatorStatusCore();
            this.inputCore            = new SimulatorInputCore();
            this.articleMasterSetCore = new SimulatorArticleMasterSetCore();
            this.stockDeliverySetCore = new SimulatorStockDeliverySetCore();
            _simulatorArticleInfoCore = new SimulatorArticleInfoCore();
            this.stockInfoCore        = new SimulatorStockInfoCore();
            this.outputCore           = new SimulatorOutputCore();
            this.taskInfoCore         = new SimulatorTaskInfoCore();
            this.rawXmlCore           = new SimulatorRawXmlCore();

            this.InitializeCores();
        }