Blame | Last modification | View Log | RSS feed
package com.erggroup.buildtool.ripple;public class PlanControl {/*** Controls the selection between a basicPlan and a fullPlan* <0 - Not expected. Treat as zero* 0 - Always execute the full plan* >0 - Not sure yet*/int mThreshold = 0;/*** Flag the the current (basicPlan) should be dumped* Once set the flag will be actioned and reset**/boolean mDumpPlan = false;/*** Save a new plan threshold value with sanity testing** @param mustGetInt*/public void setThreshold(int threshold) {if (threshold < 0)threshold = 0;mThreshold = threshold;}/** Save the plan Dump flag with sanity testing** @param planDump - PlanDump value. Only the first character is valid. 'Y' == dump*/public void setDumpPlan(String planDump) {if (planDump != null){mDumpPlan = (Character.toUpperCase(planDump.charAt(0)) == 'Y');}}/** Pretty diagnostic support**/public String toString() {return "Threshold:" + mThreshold + " Dump:" + mDumpPlan;}}