internal void SetBoolean(string varName, bool v) { if (BooleanVariables.ContainsKey(varName)) { BooleanVariables[varName] = v; } }
internal bool?GetBooleanValue(string operand1) { if (BooleanVariables.ContainsKey(operand1)) { return(BooleanVariables[operand1]); } throw new Exception("Item not present in the state"); }
internal bool VarExists(string varName) { return(BooleanVariables.ContainsKey(varName) || IntegerVariables.ContainsKey(varName)); }
internal void DefineBooleanVar(string varName) { BooleanVariables.Add(varName, null); }
internal bool IsVarBoolean(string varName) { return(BooleanVariables.ContainsKey(varName)); }