Piecewise linear approximations to model the dynamics of adaptation to osmotic stress by food-borne pathogens.