private String name ;
private int nb_cores ;
private int frequency ;
+ private int mflops ;
private int memory ;
private Object node ;
private long id ;
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 _freq 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 ) ;
+ }
}