3 import java.util.ArrayList;
7 * Class representing a set of clusters forming a network architecture
8 * @author Sébastien Miquée
11 public class Architecture
13 private ArrayList<Cluster> archi ;
15 private int nbClusters ;
19 * Default constructor.
23 archi = new ArrayList<Cluster>() ;
30 * Add a cluster in the architecture.
31 * @param c Cluster to be add.
33 public void addCluster( Cluster c )
36 nbNodes += c.getNbGNode() ;
42 * Return the amount of computing nodes in the architecture.
43 * @return The amount of nodes
45 public int getNbNodes()
52 * Return the amount of clusters in the architecture.
53 * @return The amoutn of clusters
55 public int getNbClusters()
62 * Return the architecture in a clusters list form.
63 * @return A clusters list
65 public ArrayList<Cluster> getArchi()
72 /** La programmation est un art, respectons ceux qui la pratiquent !! **/