Пример #1
0
        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
 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;
 }