and.Mapping
Class GNode

java.lang.Object
  extended by and.Mapping.GNode
All Implemented Interfaces:
java.io.Serializable

public class GNode
extends java.lang.Object
implements java.io.Serializable

Class representing a computing node

See Also:
Serialized Form

Constructor Summary
GNode()
          Default constructor.
 
Method Summary
 java.lang.String getCluster()
          Return the cluster's name in which the node is.
 int getFrequency()
          Return the frequency of computing cores of the computing node.
 long getId()
          Return the uniq identifier of the computing node.
 boolean getInCluster()
          Return the status of the computing node concerning its presence, or not, in a cluster.
 boolean getMapped()
          Return the status of the participation of the computing node.
 int getMemory()
          Return the amount of the available memory of the computing node.
 int getMFlops()
          Return the MFlops of each computing core of the computing node.
 java.lang.String getName()
          Return the name of the computing node
 int getNb_cores()
          Return the amount of computing cores of the computing node.
 java.lang.Object getNode()
          Return the external representation of the node.
 int getPower()
          Return the computational power of the computing node.
 java.lang.String getSite()
          Return the name of the site in which the computing node is.
 void setCluster(java.lang.String _c)
          Set the cluster's name in which the computing node is.
 void setFrequency(int _freq)
          Set the frequency of computing cores of the computing node.
 void setId(long _id)
          Set the uniq identifier of the computing node.
 void setInCluster(boolean _b)
          Set the status of the computing node in order to know if it is in cluster or not.
 void setMapped(boolean _b)
          Change the status of the node concerning its participation in the computation.
 void setMemory(int _mem)
          Set the amount of available memory of the computing node.
 void setMFlops(int _mflops)
          Set the MFlops of each computing core of the computing node.
 void setName(java.lang.String _name)
          Set the name of the computing node.
 void setNb_cores(int _nb_cores)
          Set the amount of computing cores of the computing node.
 void setNode(java.lang.Object n)
          Set the external representation of the node.
 void setSite(java.lang.String _s)
          Set the site's name in which the computing node is.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

GNode

public GNode()
Default constructor.

Method Detail

setCluster

public void setCluster(java.lang.String _c)
Set the cluster's name in which the computing node is.

Parameters:
_c - The name of the cluster containing the node

getCluster

public java.lang.String getCluster()
Return the cluster's name in which the node is.

Returns:
The cluster's name

setSite

public void setSite(java.lang.String _s)
Set the site's name in which the computing node is.

Parameters:
_s - The site's name

getSite

public java.lang.String getSite()
Return the name of the site in which the computing node is.

Returns:
The site's name

setMapped

public void setMapped(boolean _b)
Change the status of the node concerning its participation in the computation.

Parameters:
_b - The status of its participation

getMapped

public boolean getMapped()
Return the status of the participation of the computing node.

Returns:
The status of the node

setInCluster

public void setInCluster(boolean _b)
Set the status of the computing node in order to know if it is in cluster or not.

Parameters:
_b - The status of the node

getInCluster

public boolean getInCluster()
Return the status of the computing node concerning its presence, or not, in a cluster.

Returns:
The status of the node

setName

public void setName(java.lang.String _name)
Set the name of the computing node.

Parameters:
_name - The node's name

getName

public java.lang.String getName()
Return the name of the computing node

Returns:
The node's name

setNode

public void setNode(java.lang.Object n)
Set the external representation of the node. This object represents the node in application using this library.

Parameters:
n - The external representation of the node

getNode

public java.lang.Object getNode()
Return the external representation of the node.

Returns:
The external representation of the node

setNb_cores

public void setNb_cores(int _nb_cores)
Set the amount of computing cores of the computing node.

Parameters:
_nb_cores - The amount of cores

getNb_cores

public int getNb_cores()
Return the amount of computing cores of the computing node.

Returns:
The amount of cores

setFrequency

public void setFrequency(int _freq)
Set the frequency of computing cores of the computing node.

Parameters:
_freq - The frequency of cores

getFrequency

public int getFrequency()
Return the frequency of computing cores of the computing node.

Returns:
The frequency of cores

setMFlops

public void setMFlops(int _mflops)
Set the MFlops of each computing core of the computing node.

Parameters:
_freq - The MFlops of cores

getMFlops

public int getMFlops()
Return the MFlops of each computing core of the computing node.

Returns:
The MFlops of cores

setMemory

public void setMemory(int _mem)
Set the amount of available memory of the computing node.

Parameters:
_mem - Amount of memory

getMemory

public int getMemory()
Return the amount of the available memory of the computing node.

Returns:
The amount of memory

getPower

public int getPower()
Return the computational power of the computing node. It includes the multiplication of cores by frequency plus a coefficient for the memory.

Returns:
The computational power of the computing node

setId

public void setId(long _id)
Set the uniq identifier of the computing node.

Parameters:
_id - The identifier of the node

getId

public long getId()
Return the uniq identifier of the computing node.

Returns:
The identifier of the node