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