To Adapt or Not to Adapt: A Quantification Technique for Measuring an Expected Degree of Self-Adaptation