+
+ /**
+ * Return the name of the node for the use of the node in a string.
+ * @return The name of the node
+ */
+ public String toString()
+ {
+ 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 ;
+ }
+
+
+ /**
+ * Construct and return a copy of the current GNode.
+ * @return A copy of this node
+ */
+ public GNode clone()
+ {
+ GNode copy = new GNode() ;
+
+ copy.setName( name ) ;
+ copy.setNb_cores( nb_cores ) ;
+ copy.setFrequency( frequency ) ;
+ copy.setMFlops( mflops ) ;
+ copy.setMemory( memory ) ;
+ copy.setNode( node ) ;
+ copy.setId( id ) ;
+ copy.setMapped( mapped ) ;
+ copy.setInCluster( inCluster ) ;
+ copy.setClusterName( clusterName ) ;
+ copy.setSiteName( siteName ) ;
+ copy.setIP( ip ) ;
+
+ return copy ;
+ }
+