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 / GNode.java
index b76d0c1..e7d5f94 100644 (file)
@@ -23,6 +23,7 @@ public class GNode implements Serializable
        private boolean inCluster ;
        private String cluster ;
        private String site ;
+       private String ip ;
        
        
        /**
@@ -293,6 +294,26 @@ public class GNode implements Serializable
                return name ;
        }
        
+       
+       /**
+        * Return the IP address of the GNode.
+        * @return The IP address
+        */
+       public String getIP()
+       {
+               return ip ;
+       }
+       
+       
+       /**
+        * Set the IP address of the GNode.
+        * @param _ip The IP address
+        */
+       public void setIP( String _ip )
+       {
+               ip = _ip ;
+       }
+       
 }
 
 /** La programmation est un art, respectons ceux qui la pratiquent !! **/