Re: [OpenMap Users] Asynchronous communication with LinkLayer

From: Don Dietrick <dietrick@bbn.com>
Date: Wed Jan 29 2003 - 10:45:39 EST

Hi Stu,

On Wednesday, January 29, 2003, at 10:37 AM, Whitman, Stu wrote:

> Thanks Don,
>
> I have turned over my C++ code to someone that can do the Java changes
> you
> mention (and finish the C++ for that matter).
>
> Are these mods something you would like us to package up in a patch
> file and
> send back for integration into a future release of openmap?

Sure, that would be great!

> The approach we will try first is to set up a timer to poll the socket
> for
> data. When data is available start a LinkWorker (or some other thread)
> to
> actually read from the socket so that the Java timing mechanism is not
> stalled.
>
> Any "words of wisdom" or "gotchas" before we start?

I can't think of any - this approach sounds fairly straight-forward. I
guess I'd suggest that the timer should get reset if the server is
pinged due to a projectionChanged call. And that the timer only gets
used if a property gets set, or that the timer can be turned off.

Thanks for the update!

- Don

> -----Original Message-----
> From: Don Dietrick [mailto:dietrick@bbn.com]
> Sent: Friday, January 17, 2003 8:58 AM
> To: Whitman, Stu
> Cc: 'openmap-users@bbn.com'
> Subject: Re: [OpenMap Users] Asynchronous communication with LinkLayer
>
>
> Hi Stu,
>
> The LinkLayer doesn't support what you are trying to do - it expects to
> make queries to the server, and only listens for responses to those
> queries. It doesn't listen for updates later.
>
> You can get the behavior you want by modifying the LinkLayer:
>
> You could add a javax.swing.Timer to the LinkLayer to have it poll the
> server for changes at certain intervals.
>
> You could add a thread in the LinkLayer to open a port that listens for
> input from the server, with the LinkLayer telling your server the host
> and port to contact in some initial request properties.
>
> I guess you could also change the LinkLayer and LinkServer so that they
> share communication over a single Link, taking turns to listen.
>
> Hope this helps,
>
> Don
>
> On Thursday, January 16, 2003, at 03:33 PM, Whitman, Stu wrote:
>
>> Hello,
>>
>> I am a developer for the Air Mobility Operations Simulator (AMOS)
>> being
>> developed by us for AMC. The maptool application of AMOS reads
>> simulation
>> results from a database and displays them on a map. A kind of
>> animation
>> playback of the simulation. When an icon is selected on the map, the
>> playback is paused and maptool displays detailed information in a
>> pop-up
>> window. It currently interfaces with Oilstock and Arcview.
>>
>> I have written a C++ implementation of the Link Protocol and a test
>> driver
>> which mimics what the maptool application will do once integrated.
>>
>> What I have found out using this test driver is that the LinkLayer
>> only
>> listens for data on the socket after sending a MapRequest or an
>> ActionRequest.
>>
>> I would like to be able to send a graphic across the link at anytime
>> and
>> have it displayed, or deleted or whatever.
>>
>> Am I doing something wrong or am I trying to do something that is not
>> supported by the LinkLayer?
>>
>> Stu
>>
>> --
>> [To unsubscribe to this list send an email to "majdart@bbn.com"
>> with the following text in the BODY of the message "unsubscribe
>> openmap-users"]
>>
>>
>
>
> =-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=
> Don Dietrick, BBN Technologies, dietrick@bbn.com
> 10 Moulton Street, Cambridge, MA 02138
> 617-873-3031 [fax]-2794
> =-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=
>
>

=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=
Don Dietrick, BBN Technologies, dietrick@bbn.com
10 Moulton Street, Cambridge, MA 02138
617-873-3031 [fax]-2794
=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=

--
[To unsubscribe to this list send an email to "majdart@bbn.com"
with the following text in the BODY of the message "unsubscribe openmap-users"]
Received on Wed Jan 29 10:47:29 2003

This archive was generated by hypermail 2.1.8 : Thu May 12 2005 - 07:18:34 EDT