public IOBus(BaseBlock block, List <System.String> names, bool is_inp = true)
 {
     this.Block    = block;
     this.is_input = is_inp;
     this.Bus      = new Dictionary <string, double>();
     foreach (System.String name in names)
     {
         Bus.Add(name, 0.0);
     }
 }
 protected void OnObjectsChange(BaseBlock block, BlockIOPortChanged portChanged)
 {
     if (block == this.Coeficients || block == this.noise || block == this.delay && portChanged.Name != "dt")
     {
         this.IsChanged = true;
     }
     if (portChanged.Name == "dt" && portChanged.Value != this.dt)
     {
         this.dt = this.dt;
         throw new ArgumentException("\"dt\" should be single for whole system.", portChanged.Name);
     }
 }
 public IOBus(BaseBlock block, bool is_inp = true)
 {
     this.Block    = block;
     this.is_input = is_inp;
     this.Bus      = new Dictionary <string, double>();
 }