示例#1
0
 public BooleanVariable getBoolVariable(int variableIndex)
 {
     if (variableIndex >= variablesLimit)
     {
         return(getBoolVariable(variableIndex % variablesLimit));
     }
     if (boolVariables[variableIndex] == null)
     {
         boolVariables[variableIndex] = new BooleanVariable();
     }
     return(boolVariables[variableIndex]);
 }
示例#2
0
        public void assign(bool value, Interpret interpreter)
        {
            BooleanVariable var = interpreter.getBoolVariable(variableIndex);

            var.assign(value);
        }