public void WriteOmiFile()
 {
     OmiFileParser omiFileParser = new OmiFileParser();
     omiFileParser.AssemblyName = System.Reflection.Assembly.GetExecutingAssembly().Location;
     omiFileParser.LinkableComponentClassName = "HydroNumerics.HydroNet.OpenMI.UnitTest.TestLinkableComponent";
     //omiFileParser.Arguments.Add("InputFilename", hydroNetInputFilename);
     //omiFileParser.Arguments.Add("TimestepLength", timestepLength.ToString());
     omiFileParser.WriteOmiFile("TestLinkableComponent.omi");
 }
Exemplo n.º 2
0
 public void WriteOmiFile(string omiFilename, string hydroNetInputFilename, double timestepLength)
 {
     OmiFileParser omiFileParser = new OmiFileParser();
     omiFileParser.AssemblyName = System.Reflection.Assembly.GetExecutingAssembly().Location;
     omiFileParser.LinkableComponentClassName = "HydroNumerics.HydroNet.OpenMI.LinkableComponent";
     omiFileParser.Arguments.Add("InputFilename", hydroNetInputFilename);
     omiFileParser.Arguments.Add("TimestepLength", timestepLength.ToString());
     omiFileParser.Arguments.Add("SendExtendedEventInfo", "false");
     omiFileParser.WriteOmiFile(omiFilename);
 }
 public void WriteOmiFile(string omiFilename, string timeSeriesGroupInputFilename, string timeSeriesGroupOutputFilename)
 {
     OmiFileParser omiFileParser = new OmiFileParser();
     omiFileParser.AssemblyName = System.Reflection.Assembly.GetExecutingAssembly().Location;
     omiFileParser.LinkableComponentClassName = "HydroNumerics.Time.OpenMI.LinkableTimeSeriesGroup";
     omiFileParser.Arguments.Add("Filename", timeSeriesGroupInputFilename);
     omiFileParser.Arguments.Add("OutputFilename", timeSeriesGroupOutputFilename);
     omiFileParser.WriteOmiFile(omiFilename);
 }
Exemplo n.º 4
0
 public void WriteOmiFile()
 {
     OmiFileParser omiFileParserWriter = new OmiFileParser();
     omiFileParserWriter.LinkableComponentClassName = "MyNamespace.MyModel.LinkableComponent";
     omiFileParserWriter.AssemblyName = @"..\..\bin\debug\MyAssemble.dll";
     omiFileParserWriter.Arguments.Add("Filename", "MyOmiFile.omi");
     omiFileParserWriter.Arguments.Add("TimestepLength", "3600");
     omiFileParserWriter.WriteOmiFile("test.omi");
 }