diff --git a/VectoCore/VectoCore/Models/Simulation/Impl/SimulatorFactory/IFollowUpSimulatorFactoryCreator.cs b/VectoCore/VectoCore/Models/Simulation/Impl/SimulatorFactory/IFollowUpSimulatorFactoryCreator.cs index df9125aa06538519d6197b3c7b5b041cc12cce25..14718d11ac0d1f94ab9d37994c88f3e2b1f2dccb 100644 --- a/VectoCore/VectoCore/Models/Simulation/Impl/SimulatorFactory/IFollowUpSimulatorFactoryCreator.cs +++ b/VectoCore/VectoCore/Models/Simulation/Impl/SimulatorFactory/IFollowUpSimulatorFactoryCreator.cs @@ -46,9 +46,9 @@ namespace TUGraz.VectoCore.Models.Simulation.Impl.SimulatorFactory public class InterimAfterPrimaryFactoryCreator : FollowUpSimulatorFactoryCreator { - private readonly TempFileOutputWriter _currentStageOutputDataWriter = null; + protected readonly TempFileOutputWriter _currentStageOutputDataWriter = null; private readonly IOutputDataWriter _originalReportWriter = null; - private readonly IDeclarationReport _currentStageDeclarationReport = null; + protected IDeclarationReport _currentStageDeclarationReport = null; private readonly IXMLInputDataReader _inputDataReader; private readonly IMultistagePrimaryAndStageInputDataProvider _originalStageInputData; private readonly IDeclarationReport _originalDeclarationReport; diff --git a/VectoMockup/VectoMockup/Simulation/SimulatorFactory/MockupFollowUpSimulatorFactoryCreator.cs b/VectoMockup/VectoMockup/Simulation/SimulatorFactory/MockupFollowUpSimulatorFactoryCreator.cs new file mode 100644 index 0000000000000000000000000000000000000000..3cc29b8bf3f1d834231d7c5bb2b14bb4261d3c79 --- /dev/null +++ b/VectoMockup/VectoMockup/Simulation/SimulatorFactory/MockupFollowUpSimulatorFactoryCreator.cs @@ -0,0 +1,68 @@ +using System; +using TUGraz.VectoCommon.InputData; +using TUGraz.VectoCore.InputData.FileIO.XML; +using TUGraz.VectoCore.Models.Simulation; +using TUGraz.VectoCore.Models.Simulation.Impl.SimulatorFactory; +using TUGraz.VectoCore.OutputData; +using TUGraz.VectoCore.OutputData.XML.DeclarationReports.CustomerInformationFile.CustomerInformationFile_0_9; +using TUGraz.VectoCore.OutputData.XML.DeclarationReports.ManufacturerReport.ManufacturerReport_0_9.ManufacturerReportXMLTypeWriter; +using TUGraz.VectoMockup.Reports; + +namespace TUGraz.VectoMockup.Simulation.SimulatorFactory +{ + public class MockupInterimAfterPrimaryFactoryCreator : InterimAfterPrimaryFactoryCreator + { + public MockupInterimAfterPrimaryFactoryCreator( + IMultistagePrimaryAndStageInputDataProvider originalStageInputData, IOutputDataWriter originalReportWriter, + IDeclarationReport originalDeclarationReport, + ISimulatorFactoryFactory simFactoryFactory, + IManufacturerReportFactory mrfFactory, + ICustomerInformationFileFactory cifFactory, + IXMLInputDataReader inputDataReader, bool validate) : + base(originalStageInputData, originalReportWriter, originalDeclarationReport, simFactoryFactory, + inputDataReader, validate) + { + _currentStageDeclarationReport = + new XMLDeclarationMockupPrimaryReport(_currentStageOutputDataWriter, mrfFactory, cifFactory, true); + } + + #region Overrides of InterimAfterPrimaryFactoryCreator + + public override ISimulatorFactory GetNextFactory() + { + //throw new NotImplementedException(); + return base.GetNextFactory(); + } + + #endregion + } + + public class MockupCompletedAfterPrimaryFactoryCreator : CompletedAfterInterimPrimaryFactoryCreator + { + public MockupCompletedAfterPrimaryFactoryCreator(IMultistageVIFInputData originalInputData, + IOutputDataWriter originalOutputDataWriter, + IDeclarationReport originalDeclarationReport, + IXMLInputDataReader inputDataReader, + ISimulatorFactoryFactory simulatorFactoryFactory, + bool validate) : + base(originalInputData, + originalOutputDataWriter, + originalDeclarationReport, + inputDataReader, + simulatorFactoryFactory, + validate) + { + + } + + #region Overrides of CompletedAfterInterimPrimaryFactoryCreator + + public override ISimulatorFactory GetNextFactory() + { + return base.GetNextFactory(); + } + + #endregion + } + +} \ No newline at end of file