Beispiel #1
0
        private void updateFractionExpressedApical(TransporterExpressionContainer transporterContainer, TransportType transportType)
        {
            if (!transportType.IsOneOf(TransportType.Efflux, TransportType.Influx, TransportType.PgpLike))
            {
                return;
            }

            var fractionExpressedApical = transporterContainer.Parameter(CoreConstants.Parameters.FRACTION_EXPRESSED_APICAL);

            if (fractionExpressedApical == null)
            {
                return;
            }

            //Parameter is a hidden parameter. This is used for consistency purpose only and should not be updated
            if (!fractionExpressedApical.Visible)
            {
                return;
            }

            //value was set by the user.
            if (fractionExpressedApical.Value != 0 && fractionExpressedApical.Value != 1)
            {
                return;
            }

            //Set the value according to the new transport type (Efflux + pgp one, Influx 0) except in mucosa where it is always apical
            fractionExpressedApical.Value = transporterContainer.IsInMucosa() ? 1 :  transportType == TransportType.Influx ? 0 : 1;
        }