JiscMail Logo
Email discussion lists for the UK Education and Research communities

Help for STARDEV Archives


STARDEV Archives

STARDEV Archives


STARDEV@JISCMAIL.AC.UK


View:

Message:

[

First

|

Previous

|

Next

|

Last

]

By Topic:

[

First

|

Previous

|

Next

|

Last

]

By Author:

[

First

|

Previous

|

Next

|

Last

]

Font:

Proportional Font

LISTSERV Archives

LISTSERV Archives

STARDEV Home

STARDEV Home

STARDEV  March 2004

STARDEV March 2004

Options

Subscribe or Unsubscribe

Subscribe or Unsubscribe

Log In

Log In

Get Password

Get Password

Subject:

parameter system

From:

Mark Taylor <[log in to unmask]>

Reply-To:

Starlink development <[log in to unmask]>

Date:

Fri, 5 Mar 2004 12:03:13 +0000

Content-Type:

TEXT/PLAIN

Parts/Attachments:

Parts/Attachments

TEXT/PLAIN (144 lines)

On Fri, 5 Mar 2004, Giaretta, DL (David)  wrote:

> Mark
>
> Do you have any views on the matter of parameter systems.
>
> My inclination would be to keep with Alan's system unless you see major
> problems, simply because it would affect more apps if we were to change.
>
> ..David
>

David, Al and other stardevvers who may have comments,

<disclaimer>
  I haven't - at least recently - looked in huge detail at JPCS,
  and in particular I don't really know what is involved in writing
  a task which uses it, so the following comments are subject
  to some ignorance on my part.
</disclaimer>

The two systems were written for different purposes - JPCS is a way
of using from Java a parameter system which either is or closely
resembles the ADAM parameter system, while TASK is a way for java
programs to interact with a generic parameter-supplying environment
(though they share ideas of what a task is, what a parameter is, etc).

I would expect my TASK classes to be easier to use when writing
from scratch java programs that need parameters.  TASK certainly
looks less complex than JPCS - this is no doubt a combination of
(a) improved design enabled by features of Java not available to a
system modelled on a Fortran-based system, (b) features which are in
ADAM but aren't really needed, and (c) features not written
becuase it hasn't been much used yet.  Another thing I claim in its
favour is better encapsulation and type-safety - in TASK the
characteristics of a parameter are defined by writing/instantiating
a class, while in JPCS it's done mostly by reading an XML file.
This which enables you to use more inheritance, less reflection.

As a user of Starlink applications as well as a programmer, I've
always found the ADAM parameter system pretty complicated to use
with it's PPATHs and VPATHs and the rest, especially the hidden
state stored the ADAM_USER directory.  We could see now as an
opportunity to come up with something a bit less baroque for the future.
However it may be that my views on this aren't widely held (for instance
because all those features really are needed and I just haven't been
in a position to see this), or that it would simply require too
much effort to do.

For the question at hand: if what is required is a system which can
wrap all existing ADAM tasks in such a way that they can be used
just as before, then it is probably going to be necessary to have a
system that looks like JPCS, or at least much more like that than
my TASK classes.  I'm not sure what the aims of Al's work are; if
he does need to do this, then there is probably only one decision
possible.

Finally: I know that JPCS links to the classic SUBPAR libraries as
part of its build, but I don't know whether it requires this library
to run.  We certainly don't want to be in a position where we need some
platform-specific code for any java applications which use parameters.

The fact that NDTOOLS currently uses TASK isn't really an argument
against switching to JPCS - I don't think anyone has ever used it
except me for test purposes (performance is still very poor apart
from anything else, though this is related to the ARRAY/NDX classes
nothing to do with TASK).

Mark


> -----Original Message-----
> From: Alasdair Allan [mailto:[log in to unmask]]
> Sent: 05 March 2004 03:14
> To: David Giaretta
> Subject: Progress, NAM and other matters
>
>
> Dave,
>
> Progress so far...
>
> I've got a working Java application (which adds a couple of numbers
> together right now) which is sitting in a JPCS parameter system harness
> inside a standalone Jetty/AXIS webserver. This application,
>
>  * figures out a free port, and calculates an authenticaton token
>  * saves the token, host and port number in a file in $ADAM_USER directory
>  * accepts parameters via a SOAP message authenticating the message
>    against the token
>  * adds its two numbers together and returns the result via another message
>    after serialises its GLOBAL and task specific parameters into $ADAM_USER
>  * returns proper SOAP Fault messages if there are problems
>
> token authentication means that only the user who initially ran the
> application can access the web services it provides. Token authentication
> can (of course) be turned off...
>
> Alan's parameter system looks okay, although not exactly the way either
> Tim Jenness or myself would have done it. It's got some rough edges, but
> its more or less shipable as is (with some minor tweaks).
>
> I have JPCS (the parmeter system itself) in StarJava CVS. I haven't yet
> looked seriously at the StarTask JNI wrappers for native applications.
>
> That, unforunately, looks alot less polished...
>
> The ORAC-DR side of things is going okay, I have a perl test harness for
> this test java application which works fine. I'll start on the ORAC-DR
> classes on Monday, hopefully should have a working CATSELECT replacement
> ready to go before I leave.
>
> I don't know what you want to do with respect to Mark's "other" parameter
> system called 'Task'?
>
> You need to make a management decision here, as there isn't much point
> pushing this work much further if we're going to dump JPCS next month
> anyway. After looking at the two systems I sort of agree with Mark that
> you couldn't really merge them sensibly.
>
> The StarTask (JNI wrappers for Classic) stuff would probably have to be
> rewritten if we dump JPCS in favour of Mark's Task system, as it relys on
> JPCS to provide a plugin replacement for SUBPAR.
>
> On the other hand Mark's NDTOOLS would have to be rewritten if we dump
> Task in favour of JPCS. I don't think Task is used elsewhere in StarJava
> (yet), but we need to decide now (soon?) which one we're going with...
>
> Unfortuantely, I don't think I'm sufficiently familiar with Task (or JPCS
> come to that) to say which is technically better...
>
> Cheers,
> Al.
>
> PS. Remember that I go on holiday a week today (Fri 12th) all the way up
>     till NAM. So if you want FROG related stuff out of me for the Starlink
>     demo posters you'll need to talk to me about what you wantmore or less
>     first thing on Monday.
>

--
Mark Taylor    Starlink Programmer     Physics,  Bristol University, UK
[log in to unmask] +44-117-928-8776 http://www.star.bris.ac.uk/~mbt/

Top of Message | Previous Page | Permalink

JiscMail Tools


RSS Feeds and Sharing


Advanced Options


Archives

December 2023
January 2023
December 2022
July 2022
June 2022
April 2022
March 2022
December 2021
October 2021
July 2021
April 2021
January 2021
October 2020
September 2020
August 2020
May 2020
November 2019
October 2019
July 2019
June 2019
February 2019
January 2019
December 2018
November 2018
August 2018
July 2018
May 2018
April 2018
March 2018
February 2018
December 2017
October 2017
August 2017
July 2017
May 2017
April 2017
February 2017
January 2017
December 2016
November 2016
October 2016
September 2016
August 2016
July 2016
May 2016
April 2016
March 2016
February 2016
January 2016
December 2015
October 2015
September 2015
August 2015
April 2015
March 2015
February 2015
January 2015
December 2014
November 2014
October 2014
September 2014
August 2014
July 2014
June 2014
May 2014
April 2014
March 2014
February 2014
January 2014
December 2013
November 2013
October 2013
September 2013
August 2013
July 2013
June 2013
May 2013
April 2013
March 2013
February 2013
January 2013
December 2012
November 2012
October 2012
September 2012
August 2012
July 2012
June 2012
May 2012
April 2012
March 2012
February 2012
January 2012
December 2011
November 2011
October 2011
September 2011
August 2011
July 2011
June 2011
May 2011
April 2011
March 2011
February 2011
January 2011
December 2010
November 2010
October 2010
September 2010
August 2010
July 2010
June 2010
May 2010
April 2010
March 2010
February 2010
January 2010
December 2009
November 2009
October 2009
September 2009
August 2009
July 2009
June 2009
May 2009
April 2009
March 2009
February 2009
January 2009
December 2008
November 2008
October 2008
September 2008
August 2008
July 2008
June 2008
May 2008
April 2008
March 2008
February 2008
January 2008
December 2007
November 2007
October 2007
September 2007
August 2007
July 2007
June 2007
May 2007
April 2007
March 2007
February 2007
January 2007
December 2006
November 2006
October 2006
September 2006
August 2006
July 2006
June 2006
May 2006
April 2006
March 2006
February 2006
January 2006
December 2005
November 2005
October 2005
September 2005
August 2005
July 2005
June 2005
May 2005
April 2005
March 2005
February 2005
January 2005
December 2004
November 2004
October 2004
September 2004
August 2004
July 2004
June 2004
May 2004
April 2004
March 2004
February 2004
January 2004
2004
April 2003
2003


JiscMail is a Jisc service.

View our service policies at https://www.jiscmail.ac.uk/policyandsecurity/ and Jisc's privacy policy at https://www.jisc.ac.uk/website/privacy-notice

For help and support help@jisc.ac.uk

Secured by F-Secure Anti-Virus CataList Email List Search Powered by the LISTSERV Email List Manager