changeState(ARMED, a);
if ((a && isArmed()) || (!a && !isArmed())) return;   if (!isEnabled()) return;   if (a) stateMask = stateMask | ARMED; else stateMask = stateMask & (~ARMED);   fireStateChanged();
  public void setArmed(boolean a)  {    changeState(ARMED, a);  }