public static string PrintReconfigurationActions() { string result = null; if (proposedActions == null || proposedActions.Count == 0) { result = "No new configuration is suggested at this time."; } else { foreach (ConfigurationAction act in proposedActions) { result += "Chosen action for " + act.ModifyingContainer.Name.ToString() + ": \r\n"; result += ReconfigActionText(act) + "\r\n"; } result += "\r\n"; float gain = configurator.ComputeUtilityGainFromNewConfiguration(containerName, slas["sla"], container.Sessions["sla"], container.Monitor, config, proposedActions); result += "expected utility gain is " + gain.ToString("F2") + "\r\n"; result += "expected cost is " + proposedActions.First().Cost.ToString("F2") + "\r\n"; } return(result); }