A
lgorithmique
N
umérique
D
istribuée
Public GIT Repository
projects
/
mapping.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
Adding some new functions.
[mapping.git]
/
src
/
and
/
Mapping
/
Algo.java
diff --git
a/src/and/Mapping/Algo.java
b/src/and/Mapping/Algo.java
index
e85d04f
..
608c667
100644
(file)
--- a/
src/and/Mapping/Algo.java
+++ b/
src/and/Mapping/Algo.java
@@
-94,6
+94,24
@@
public abstract class Algo implements Serializable
{
return gr ;
}
+
+
+ /**
+ * Update the grid status after having done the mapping.
+ */
+ public void updateGrid()
+ {
+ if( mp.getMappedGNodes().size() > 0 )
+ {
+ ArrayList<GNode> temp = mp.getMappedGNodes() ;
+ for( int i = 0 ; i < temp.size() ; i++ )
+ {
+ gl.getClusterOfNode( temp.get( i ) ).setGNodeStatus( temp.get( i ), true ) ;
+
+ gl.setMappedStatus( temp.get( i ), true ) ;
+ }
+ }
+ }
}
/** La programmation est un art, respectons ceux qui la pratiquent !! **/