Code development platform for open source projects from the European Union institutions

Skip to content
Snippets Groups Projects
Commit 78506a30 authored by Harald Martini's avatar Harald Martini
Browse files

added MockupFollowupSimulatorFactoryCreators

parent b40d5383
No related branches found
No related tags found
No related merge requests found
......@@ -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;
......
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
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment