private String name ;
private int nb_cores ;
private int frequency ;
+ private int mflops ;
private int memory ;
private Object node ;
private long id ;
private boolean inCluster ;
private String cluster ;
private String site ;
+ private String ip ;
/**
site = "" ;
nb_cores = 0 ;
frequency = 0 ;
+ mflops = 0 ;
memory = 0 ;
node = null ;
id = -1 ;
return frequency ;
}
+
+ /**
+ * Set the MFlops of each computing core of the computing node.
+ * @param _mflops The MFlops of cores
+ */
+ public void setMFlops( int _mflops )
+ {
+ mflops = _mflops ;
+ }
+
+
+ /**
+ * Return the MFlops of each computing core of the computing node.
+ * @return The MFlops of cores
+ */
+ public int getMFlops()
+ {
+ return mflops ;
+ }
/**
* Set the amount of available memory of the computing node.
*/
public int getPower()
{
- return ( nb_cores * frequency ) ;
+ if( frequency != 0 )
+ {
+ return ( nb_cores * frequency ) ;
+ } else {
+ return ( nb_cores * mflops ) ;
+ }
}
return id ;
}
+
+ /**
+ * 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 ;
+ }
+
}
/** La programmation est un art, respectons ceux qui la pratiquent !! **/