Changeset 1154:516ca7c94d1d for src/mlx/rpc.py
- Timestamp:
- 04/24/24 18:31:17 (3 weeks ago)
- Branch:
- python3
- hg-Phase:
- (<MercurialRepository 1 'hg:/home/ivaradi/mlx/hg' '/'>, 'public')
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
src/mlx/rpc.py
r1153 r1154 1 1 from . import const 2 2 from . import rpccommon 3 from . import gates 3 4 4 5 from .common import MAVA_BASE_URL, fixUnpickled … … 630 631 #--------------------------------------------------------------------------------------- 631 632 633 class Gate(gates.Gate, RPCObject): 634 """A gate.""" 635 _instructions = { 636 "number": str, 637 "terminal": str, 638 "type": str, 639 "maxSpan": float, 640 "maxLength": float 641 } 642 643 def __init__(self, value): 644 """Construct the gate.""" 645 RPCObject.__init__(self, value, instructions = Gate._instructions) 646 647 #--------------------------------------------------------------------------------------- 648 649 class Gates(gates.Gates): 650 """The gates.""" 651 def __init__(self, value): 652 """Construct the gates.""" 653 super(Gates, self).__init__() 654 for gateValue in value: 655 self.add(Gate(gateValue)) 656 657 #--------------------------------------------------------------------------------------- 658 632 659 class Registration(object): 633 660 """Data for registration.""" … … 808 835 return Fleet(value) 809 836 837 def getGates(self): 838 """Query and return the gate information.""" 839 value = self._performCall(lambda sessionID: 840 self._server.getGates(sessionID)) 841 842 return Gates(value) 843 810 844 def updatePlane(self, tailNumber, status, gateNumber): 811 845 """Update the state and position of the plane with the given tail
Note:
See TracChangeset
for help on using the changeset viewer.