xbt_dynar_free(&args);
}
-void deployment_line::generate()
-{
- for (unsigned i = 0 ; i < size() - 1 ; ++i)
- set_link(i, i + 1);
-}
-
-void deployment_ring::generate()
-{
- set_neighbor(0, size() - 1);
- for (unsigned i = 0 ; i < size() - 1 ; ++i)
- set_link(i, i + 1);
- set_neighbor(size() - 1, 0);
-}
-
-void deployment_star::generate()
-{
- for (unsigned i = 1 ; i < size() ; ++i)
- set_link(0, i);
-}
-
-void deployment_clique::generate()
-{
- for (unsigned i = 0 ; i < size() ; ++i)
- for (unsigned j = 0 ; j < i ; ++j)
- set_link(i, j);
-}
-
void deployment_btree::generate()
{
for (unsigned i = 0 ; i < size() / 2 ; ++i) {
}
}
-// void deployment_torus::generate()
-// {
-// }
+void deployment_clique::generate()
+{
+ for (unsigned i = 0 ; i < size() ; ++i)
+ for (unsigned j = 0 ; j < i ; ++j)
+ set_link(i, j);
+}
void deployment_hcube::generate()
{
set_link(i, j);
}
}
+
+void deployment_line::generate()
+{
+ for (unsigned i = 0 ; i < size() - 1 ; ++i)
+ set_link(i, i + 1);
+}
+
+void deployment_ring::generate()
+{
+ set_neighbor(0, size() - 1);
+ for (unsigned i = 0 ; i < size() - 1 ; ++i)
+ set_link(i, i + 1);
+ set_neighbor(size() - 1, 0);
+}
+
+void deployment_star::generate()
+{
+ for (unsigned i = 1 ; i < size() ; ++i)
+ set_link(0, i);
+}
+
+// void deployment_torus::generate()
+// {
+// }
topologies_type topologies;
topologies_type::topologies_type()
{
+ NOL_INSERT("btree", "binary tree topologym intiial load at root",
+ deployment_btree);
+ NOL_INSERT("clique", "all connected topology", deployment_clique);
+ NOL_INSERT("hcube", "hypercube topology", deployment_hcube);
NOL_INSERT("line", "line topology, initial load at one end",
deployment_line);
NOL_INSERT("ring", "ring topology", deployment_ring);
NOL_INSERT("star", "star topology, initial load at center",
deployment_star);
- NOL_INSERT("clique", "all connected topology", deployment_clique);
- NOL_INSERT("btree", "binary tree topologym intiial load at root",
- deployment_btree);
// NOL_INSERT("torus", "torus topology", deployment_torus);
- NOL_INSERT("hcube", "hypercube topology", deployment_hcube);
}
} // namespace opt