コード例 #1
0
ファイル: Flowsheet.cs プロジェクト: shao130/OpenFMSL
 public Flowsheet RemoveDesignSpecification(Equation eq)
 {
     if (DesignSpecifications.Contains(eq))
     {
         DesignSpecifications.Remove(eq);
     }
     return(this);
 }
コード例 #2
0
ファイル: Flowsheet.cs プロジェクト: shao130/OpenFMSL
        public Flowsheet RemoveDesignSpecification(string name)
        {
            var spec = DesignSpecifications.FirstOrDefault(eq => eq.Name == name);

            if (spec != null)
            {
                DesignSpecifications.Remove(spec);
            }

            return(this);
        }
コード例 #3
0
ファイル: Flowsheet.cs プロジェクト: shao130/OpenFMSL
        public Flowsheet ReplaceDesignSpecification(string name, Equation eq)
        {
            var spec = DesignSpecifications.FirstOrDefault(s => s.Name == name);

            if (spec != null)
            {
                DesignSpecifications.Remove(spec);
                eq.Name  = name;
                eq.Group = "Design Spec";
                AddDesignSpecification(eq);
            }

            return(this);
        }