示例#1
0
 public static void MyClassInitialize(TestContext testContext)
 {
   _sm11 = new Sim11File(@"..\..\..\testdata\mike11\novomr6_release2009.sim11");
 }
示例#2
0
    public void Sim11FromSachinTest()
    {
      Sim11File _sim11 = new Sim11File(@"..\..\..\testdata\sachin\_Grindsted2_2.sim11");

    }
    public void Sim11FromSachinTest()
    {
      Sim11File _sim11 = new Sim11File(TestPath + @"testdata\sachin\_Grindsted2_2.sim11");

    }
 public static void MyClassInitialize(TestContext testContext)
 {
   _sm11 = new Sim11File(TestPath + @"mike11\novomr6_release2009.sim11");
 }
示例#5
0
    /// <summary>
    /// Reads the setup from a sim11 file
    /// </summary>
    /// <param name="Sim11FileName"></param>
    public void ReadSetup(string Sim11FileName, bool SkipCrossSections)
    {
      Sim11File sm11 = new Sim11File(Sim11FileName);
      this.Sim11FileName = Sim11FileName;
      ReadNetwork(sm11.FileNames.NWK11FileName);
      if (!SkipCrossSections)
        ReadCrossSections(sm11.FileNames.XNS11FileName);

      foreach (var b in EndBranches)
      {
        ObservableCollection<M11Branch> upstreamnet = new ObservableCollection<M11Branch>();
        upstreamnet.Add(b);
        b.ChainageOffset = 0;
        b.SubNetWorkEndpoint = b;
        RecursiveAdd(b, upstreamnet);
        SubNetworks.Add(b, upstreamnet);
      }
    }