This object is used to get and set the current "system status". An object of this type is returned by :py:attr:`Vehicle.system_status`. .. py:attribute:: state The system state, as a ``string``.
| 512 | |
| 513 | |
| 514 | class SystemStatus(object): |
| 515 | """ |
| 516 | This object is used to get and set the current "system status". |
| 517 | |
| 518 | An object of this type is returned by :py:attr:`Vehicle.system_status`. |
| 519 | |
| 520 | .. py:attribute:: state |
| 521 | |
| 522 | The system state, as a ``string``. |
| 523 | """ |
| 524 | |
| 525 | def __init__(self, state): |
| 526 | self.state = state |
| 527 | |
| 528 | def __str__(self): |
| 529 | return "SystemStatus:%s" % self.state |
| 530 | |
| 531 | def __eq__(self, other): |
| 532 | return self.state == other |
| 533 | |
| 534 | def __ne__(self, other): |
| 535 | return self.state != other |
| 536 | |
| 537 | |
| 538 | class HasObservers(object): |