3 import java.io.Serializable;
4 import java.util.ArrayList;
8 * Class representing a set of clusters forming a network architecture
9 * @author Sébastien Miquée
12 public class Architecture implements Serializable
14 private static final long serialVersionUID = 1L;
16 private ArrayList<Cluster> archi ;
18 private int nbClusters ;
22 * Default constructor.
26 archi = new ArrayList<Cluster>() ;
33 * Add a cluster in the architecture.
34 * @param c Cluster to be add.
36 public void addCluster( Cluster c )
39 nbNodes += c.getNbGNode() ;
45 * Return the amount of computing nodes in the architecture.
46 * @return The amount of nodes
48 public int getNbNodes()
55 * Return the amount of clusters in the architecture.
56 * @return The amoutn of clusters
58 public int getNbClusters()
65 * Return the architecture in a clusters list form.
66 * @return A clusters list
68 public ArrayList<Cluster> getArchi()
75 /** La programmation est un art, respectons ceux qui la pratiquent !! **/