Ejemplo n.º 1
0
 public Flowsheet RemoveDesignSpecification(Equation eq)
 {
     if (DesignSpecifications.Contains(eq))
     {
         DesignSpecifications.Remove(eq);
     }
     return(this);
 }
Ejemplo n.º 2
0
        public Flowsheet AddDesignSpecification(Equation eq)
        {
            if (!DesignSpecifications.Contains(eq))
            {
                eq.ModelClass = "Flowsheet";
                DesignSpecifications.Add(eq);
            }
            else
            {
                throw new InvalidOperationException("Design spec " + eq.Name + " already included in flowsheet");
            }

            return(this);
        }