public void Lock(bool isSwitchDoor = false) { _isSwitchDoor = isSwitchDoor; this.IsLocked = true; this.SetState("closed"); }