예제 #1
0
파일: Model.cs 프로젝트: dorchard/mucell
        public void AddProperties(CompartmentType cType, int sD, double size,
            String units, Compartment outside, Boolean constant)
        {
            this.compartmentType = cType;
            this.spatialDimensions = sD;
            this.size = size;
            this.outside = outside;
            this.constant = constant;

            if (this.model.IsUnits(units) == true)
            {
                this.units = units;
            }
            // else throw exception for disallowed units;
        }
예제 #2
0
파일: Model.cs 프로젝트: dorchard/mucell
 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;
 }