/**
* 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 ;
+ }
}