Re: Spherical->Ellipsoidal Earth models in OpenMap

From: Don Dietrick <dietrick@bbn.com>
Date: Wed Jan 30 2002 - 11:41:30 EST

Hi Peter,

In previous versions of OpenMap, the ',' was part of the property name.
Since the rework of the way properties are handled in 4.4, we've removed
the '.' from the actual property name. If a property prefix is set for
the layer (which it is by using them in the openmap.properties file),
the layer code adds it in, so what goes in the properties file hasn't
changed.

However, if you are hard-coding a link layer inside an application, and
you are adding properties to a Properties object that will "only" be
used for that link layer, you don't *have* to have a prefix for all the
properties:

LinkLayer myLinkLayer = new LinkLayer();
Properties myLinkProps = new Properties();

myLinkProps.put("host", hostname);
myLinkProps.put("port", port);

myLinkLayer.setProperties(myLinkProps);

Notice - no property prefix. However, this works, too:

myLinkProps.put("myLinkPrefix.host", hostname);
myLinkProps.put("myLinkPrefix.port", port);

myLinkLayer.setProperties("myLinkPrefix", myLinkProps);

In the second case, the code adds the '.' between the prefix and the
property string when looking for the property during configuration.

Hope this helps,

- Don

On Wednesday, January 30, 2002, at 11:16 AM, Pan, Peter wrote:

> In LinkLayer class of openmap 4.4.2, what is the string value for
> HostProperty? The javadoc of API does not show it. It seems to be
> "host". In
> the previouse version I remember it is ".host". Am I worng somewhere?
>
> Thanks,
> Peter
>
>

=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=
Don Dietrick, dietrick@bbn.com
BBN Technologies, Cambridge, MA
=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=

--
[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 30 11:42:23 2002

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