From bd4860012ce455d246bb69bbf2c33c5bfa4408a4 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?C=C3=A1ssia=20Trojahn=20dos=20Santos?= <cassia.trojahn@irit.fr> Date: Mon, 27 Sep 2010 09:34:38 +0000 Subject: [PATCH] --- html/tutorial/tutorial5/index.html | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) diff --git a/html/tutorial/tutorial5/index.html b/html/tutorial/tutorial5/index.html index 79b97c28..0423e094 100644 --- a/html/tutorial/tutorial5/index.html +++ b/html/tutorial/tutorial5/index.html @@ -168,6 +168,12 @@ public class MyAlignmentWS extends MyAlignment implements AlignmentWS { @Override public String align(URI source, URI target) { try { + + for (Object c: this.getArrayElements().toArray()) { + this.remCell((Cell)c); + } + + init(source,target); align((Alignment)null, new Properties()); SBWriter sbWriter = null; @@ -189,11 +195,14 @@ public class MyAlignmentWS extends MyAlignment implements AlignmentWS { } </div> +<p><font color="red"> Note that we have added a loop for removing the cells in the URIAlignment object (lines before the method <tt>init(source,target))</tt>. +This is due the fact that the method <tt>align</tt> will be called several times +in a web service cycle life (for each test). If we do not remove the cells computed in a previous call, the previous cells will be included in the current result. </font></p> + <p> Nothing more is needed. </p> <p> You can download <a href="SBWriter.java">SBWriter.java</a>.</p> - <h2>Publishing the web service</h2> <p>In order to be available for external access, the web service must -- GitLab