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
New stable version with the add of the Maheve algorithm.
[mapping.git]
/
src
/
and
/
Mapping
/
Association.java
diff --git
a/src/and/Mapping/Association.java
b/src/and/Mapping/Association.java
index
7d24134
..
ab8ebdc
100644
(file)
--- a/
src/and/Mapping/Association.java
+++ b/
src/and/Mapping/Association.java
@@
-94,10
+94,18
@@
public class Association implements Serializable
/**
* Replace the GNode of the association.
* @param _g The replacing GNode
/**
* Replace the GNode of the association.
* @param _g The replacing GNode
+ * @return The state of the replacement
*/
*/
- public
void
setGNode( GNode _g )
+ public
boolean
setGNode( GNode _g )
{
{
- g = _g ;
+ if( _g != null )
+ {
+ g = _g ;
+ return true ;
+ } else {
+ System.err.println( "(Association) The new GNode is null!" ) ;
+ return false ;
+ }
}
}