/** Sets the given value to true and all other values to false for the given variable. */ public void setCategory(int variable, int category) { setVariable(variable, false); addCategory(variable, category); }