Exemple #1
0
 internal void SetBoolean(string varName, bool v)
 {
     if (BooleanVariables.ContainsKey(varName))
     {
         BooleanVariables[varName] = v;
     }
 }
Exemple #2
0
        internal bool?GetBooleanValue(string operand1)
        {
            if (BooleanVariables.ContainsKey(operand1))
            {
                return(BooleanVariables[operand1]);
            }

            throw new Exception("Item not present in the state");
        }
Exemple #3
0
 internal bool VarExists(string varName)
 {
     return(BooleanVariables.ContainsKey(varName) || IntegerVariables.ContainsKey(varName));
 }
Exemple #4
0
 internal bool IsVarBoolean(string varName)
 {
     return(BooleanVariables.ContainsKey(varName));
 }