Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
New stable version with the add of the Maheve algorithm.
[mapping.git] / src / and / Mapping / Association.java
index 543c849..ab8ebdc 100644 (file)
@@ -90,6 +90,34 @@ public class Association implements Serializable
                return t ;
        }
        
+       
+       /**
+        * Replace the GNode of the association.
+        * @param _g The replacing GNode
+        * @return The state of the replacement
+        */
+       public boolean setGNode( GNode _g )
+       {
+               if( _g != null )
+               {
+                       g = _g ;
+                       return true ;
+               } else {
+                       System.err.println( "(Association) The new GNode is null!" ) ;
+                       return false ;
+               }
+       }
+       
+       
+       /**
+        * Replace the GTask of the association.
+        * @param _t The replacing GTask
+        */
+       public void setGtask( GTask _t )
+       {
+               t = _t ;
+       }
+       
 }
 
 /** La programmation est un art, respectons ceux qui la pratiquent !! **/