@Override
public void setPatchVariable(int vn, double value)
throws AgentException {
switch (vn) {
case VAR_PXCOR:
throw new AgentException(I18N.errorsJ().get("org.nlogo.agent.Patch.cantChangePatchCoordinates"));
case VAR_PYCOR:
throw new AgentException(I18N.errorsJ().get("org.nlogo.agent.Patch.cantChangePatchCoordinates"));
default:
throw new IllegalArgumentException(I18N.errorsJ().getN("org.nlogo.agent.Agent.notADoubleVariable", vn));
}
}