示例#1
0
        public void AddProperties(SpeciesType st, Compartment c, Double iA,
            Double iC, String sU, Boolean hOSU, Boolean bC, Boolean con)
        {
            this.speciesType = st;
            this.compartment = c;
            this.initialAmount = iA;
            this.initialConcentration = iC;
            this.substanceUnits = sU;
            this.hasOnlySubstanceUnits = hOSU;
            this.boundaryCondition = bC;
            this.constant = con;

            // Set an inital value based on whether we have a concentration or amount
            // Used as an optimisation in the model for boundaryCondition species
            if (this.initialAmount == -1d)
            {
                this.initialValue = this.initialConcentration;
            }
            else
            {
                this.initialValue = this.initialAmount;
            }
        }
示例#2
0
文件: Reader.cs 项目: dorchard/mucell
 public void SpeciesTypeElement(Hashtable attrs)
 {
     SpeciesType specType = new SpeciesType(attrs);
     if (specType.ID != null)
     {
         this.model.AddId(specType.ID, specType);
     }
     this.model.listOfSpeciesTypes.Add(specType);
 }