X-Git-Url: http://info.iut-bm.univ-fcomte.fr/pub/gitweb/mapping.git/blobdiff_plain/4b994d60530bc4e2db2662b800207eafa2360c82..2d2cf77d20dc176ca8fff6cb7993b2bf569d89f7:/src/and/Mapping/Algo.java diff --git a/src/and/Mapping/Algo.java b/src/and/Mapping/Algo.java index 608c667..142b8a6 100644 --- a/src/and/Mapping/Algo.java +++ b/src/and/Mapping/Algo.java @@ -16,6 +16,7 @@ public abstract class Algo implements Serializable protected Graph gr ; protected Grid gl ; protected Mapping mp ; + protected String ids ; /** @@ -26,6 +27,7 @@ public abstract class Algo implements Serializable gr = new Graph() ; gl = new Grid() ; mp = new Mapping() ; + ids = "" ; } @@ -39,6 +41,7 @@ public abstract class Algo implements Serializable gr = _gr ; gl = _gl ; mp = new Mapping() ; + ids = "" ; } @@ -96,6 +99,26 @@ public abstract class Algo implements Serializable } + /** + * Set the string identifier for the algorithm. + * @param _s The algorithm's identifier + */ + public void setIdS( String _s ) + { + ids = _s ; + } + + + /** + * Return the string identifier of the algorithm. + * @return The algorithm's identifier + */ + public String getIdS() + { + return ids ; + } + + /** * Update the grid status after having done the mapping. */