-
Notifications
You must be signed in to change notification settings - Fork 9
MapService NodeToPoint response is ambiguous #212
Comments
I realise this is an old issue; but what's blocking the client from wrapping other parameters into their callback? For example, I store an airplane's id in the variable "callsign" before submitting a new flight plan (another such function that doesn't give feedback from the API): const callsign = airplane.getId();
let newfp = new atc.UpdateFlightPlanRequest();
newfp = newfp.setId(callsign);
newfp = newfp.setFlightPlanList(path);
airplaneService.updateFlightPlan(newfp, (error, response) => { ApproachClearance(callsign, error, response); }); |
Nothing prevents a client from doing so, of course. I guess if my client instantiated a stream observer for each request, that would disambiguate the significance of the As to the ambiguity of the To answer my earlier questions, the simulation - thankfully - provides responses that imitate a queue rather than a stack. If I studied the Tonic library (which is what handles the I guess that, if I resume developing my atc client, I should change the endpoints that involve ambiguous responses in the style @tyrope suggested, similar to how TCP creates order from disorder, at cost. |
You can grab all the map details before starting the simulation. ;) |
When a client sends a
NodeToPointRequest
to theMapService
for someNode
, it receives aNodeToPointResponse
with only aPoint
. If a client requests this synchronously, it is clear that the response Point y corresponds to Node x that this client just requested. However, it is not clear how to match requests with responses when sending several asynchronously.I assume this is a queue, rather than a stack, but I can't tell, as nothing seems to call
Map.node_to_point()
. I will verify this soon, when my client starts getting node points and estimating where nodes are, so it can approximate airplane moved events to the closest node.I submit that a response with the point and the node that it goes with constitutes a better message, as it makes the context explicit, rather than implicit. I understand that would be a breaking change to the api.
The text was updated successfully, but these errors were encountered: