Re: [JPP-Devel] [Off-Topic: Java Programming] Design By Contract

2007-11-03 Thread Andreas Schmitz
Sunburned Surveyor wrote:

Hi,

 Does anyone have experience with design-by-contract programming in
 Java? It seems like most of the dbc frameworks I have looked at for
 Java either use Javadoc comments or some type of preproccessor to
 implement dbc programming.

 It seems like you could do the same basic thing with regular Java code
 in your classes. Does anyone know of a standard way to implement dbc
 in Java without Javadoc comments of preprocessing? I guess I'm
 thinking of a naming convention for methods that verify pre-conditions
 and post-conditions, but other things, like an assertion framwork,
 might be included.

The problem is, that pre- and postconditions vastly interfere with
subclassing. That means that special steps must be taken in order to ensure
correctness. Doing that by hand beats the purpose of DbC. Of course you can
specify assertions, but they are not part of the interface like DbC.

Imagine the following hierarchy:

class A{
  // @pre: x  10
  // @post: result  10
  public int test(int x) {
  }
}

class B extends A{
  // @pre: x  11
  // @post: result  0
  public int test(int x) {
  }
}

Someone using an instance of class B as an instance of class A will be surprised
that the method does not accept 11 as input, or that it yields values = 10
sometimes. In order to ensure these constraints (post conditions must be 
stronger
in subclasses, pre conditions must be weaker) you have to generate more complex
code than meets the eye.

Best regards, Andreas
--
l a t / l o n  GmbH
Aennchenstrasse 19   53177 Bonn, Germany
phone ++49 +228 18496-11 fax ++49 +228 1849629
http://www.lat-lon.dehttp://www.deegree.org



signature.asc
Description: Digital signature
-
This SF.net email is sponsored by: Splunk Inc.
Still grepping through log files to find problems?  Stop.
Now Search log events and configuration files using AJAX and a browser.
Download your FREE copy of Splunk now  http://get.splunk.com/___
Jump-pilot-devel mailing list
Jump-pilot-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/jump-pilot-devel


Re: [JPP-Devel] Subversion Time-Lapse View

2007-11-03 Thread Eric Lemesre
OK,

Designe with GUI builder is easier way to build nice IHM.
I would try Mantis because the code seems clean.

Eric


2007/11/2, Paul Austin [EMAIL PROTECTED]:

  Eric,

 Please try using regular Swing, I'd like to remove Buoy from Open JUMP as
 I see no real advantage over the functionality offered by swing. Sure it
 maybe slightly easier for developers who aren't used to swing. But it's just
 another API that people will have to learn.

 Paul

 Eric Lemesre wrote:


 I would try it this week.

 Eric

 2007/10/31, Stefan Steiniger [EMAIL PROTECTED]:
 
  because it is easier to use for non GUI-experts?
 
  just a thought, and noted here:
 
  http://buoy.sourceforge.net/AboutBuoy.html
 
  otherwise, why should michael have used it.
  but if somebody is able to remove the buoy code from OJ... i would not
  object ;)
 
  stefan
 
  Paul Austin schrieb:
   We have to ask the question what does Buoy give us over using regular
  Swing?
  
   Paul
  
   Stefan Steiniger wrote:
   but as I said,
  
   buoy: http://www.buoybuilder.com/ is already used ;)
  
   stefan
  
   Eric Lemesre schrieb:
  
   Hi all,
  
   Thank for this precision.
  
   Eric
  
   2007/10/30, Paul Austin  [EMAIL PROTECTED]:
  
   Eric,
  
   Have a look at the SpringLayout manager from Swing. This is a very
   flexible layout manager. There is a SwingUtilities class that will
  allow
   you to make a basic grid layout in the JUMP code base.
  
   Unless there is something needed in a 3rd party GUI library try and
 
   stick with standard Swing components. Otherwise we'll end up with
  having
   a bloated download with all the 3rd party libraries.
  
   Paul
  
   Stefan Steiniger wrote:
  
   There is no best-practice.
   actually you may have a look on buoy (widget) used already in OJ
  for
   Simple Query.
  
   stefan
  
   Eric Lemesre schrieb:
  
  
   Hi landon,
  
   I have no problem with GUI Builder.
  
   I want build a new GUI for PostGISPlugin.
   And i dont know what is the best practice about GUI in openjump.
  
   Eric
  
   2007/10/29, Sunburned Surveyor [EMAIL PROTECTED] :
  
  
   Eric,
  
   What problem where you having with the GUI builders?
  
   Perhaps I can walk you through some rough spots. Also, it is
  good to
   remember that most IDE's like Eclipse or Netbeans have a mialing
  list
   or forum that you can post questions on.
  
   The Sunburned Surveyor
  
   On 10/26/07, Eric Lemesre  [EMAIL PROTECTED] wrote:
  
  
   Hi jon,
  
   Sorry for long time without response.
   what do you use for build GUI for openjump?
   I try VEP (Eclipse plugin for calisto - V3.2) -
  
  
   http://www.eclipse.org/vep/
  
  
   I try Jigloo GUI builder -
   http://www.cloudgarden.com/jigloo/
   NetBean with mantis but I don''t understand very well How
  import
  
   eclipse
  
   project
  
   Eric
  
   2007/10/20, Jonathan Aquino [EMAIL PROTECTED]:
  
  
   Hi Eric - Interesting ideas! I was just going to leave it as a
  
   simple
  
   tool. I agree with you that Eclipse has a great diff view.
  Perhaps
  
  
   someone
  
  
   can take what I've done and use it as the start of an Eclipse
  plugin.
  
  
   Jon
  
  
  
   
  
  
   From: [EMAIL PROTECTED]
   [mailto:[EMAIL PROTECTED] On
   Behalf Of Eric Lemesre
  
  
   Sent: Friday, October 19, 2007 2:36 AM
   To: List for discussion of JPP development and use.
   Subject: Re: [JPP-Devel] Subversion Time-Lapse View
  
  
  
   Hi jon,
  
   Nice tool.
   Do you have planed to add this tools as Eclipse plugin?
  
   And is it lot of work to add on a bar at left or rigth side to
  view
  
  
   where
  
  
   is a diff?
  
  
   Eric
  
  
   2007/10/19, Jonathan Aquino [EMAIL PROTECTED] :
  
  
   Useful tool for Subversion:
  
   SVN Time-Lapse View
   http://code.google.com/p/svn-time-lapse-view/
  
   Lets you examine the history of a file by dragging a slider.
  Diffs
  
  
   are
  
  
   highlighted in blue. If you want to know who changed a line,
  when,
  
  
   and
  
  
   for
  
  
   what reason, this is useful.
  
   For example, try it with
  
  
  
  
  https://jump-pilot.svn.sourceforge.net/svnroot/jump-pilot/core/trunk/src/com
  
   /vividsolutions/jump/workbench/JUMPWorkbench.java
  
   Jon
  
  
  
  
  
  
  
  -
  
   This SF.net email is sponsored by: Splunk Inc.
   Still grepping through log files to find problems?  Stop.
   Now Search log events and configuration files using AJAX and
  a
  
  
   browser.
  
  
   Download your FREE copy of Splunk now 
  http://get.splunk.com/
   ___
   Jump-pilot-devel mailing list
   Jump-pilot-devel@lists.sourceforge.net
  
  
  
   https://lists.sourceforge.net/lists/listinfo/jump-pilot-devel
  
  
  
  -
  
   This SF.net email is sponsored by: Splunk Inc.
   Still grepping through 

[JPP-Devel] More than one datasource by layer?

2007-11-03 Thread Eric Lemesre
Hi,

It possible to have more than one datasource by layer?

1 for Geo datasource (a data source for the géometry)
1..n data source for attributes
Exemple :
 * shapeFile for the geometry
 * a flat CSV file for some attribute
 * MysQL database for some other
 * PostgreSQL database for some others.

Eric
-
This SF.net email is sponsored by: Splunk Inc.
Still grepping through log files to find problems?  Stop.
Now Search log events and configuration files using AJAX and a browser.
Download your FREE copy of Splunk now  http://get.splunk.com/___
Jump-pilot-devel mailing list
Jump-pilot-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/jump-pilot-devel