A
lgorithmique
N
umérique
D
istribuée
Public GIT Repository
projects
/
simgrid.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
move one method higher in As hierarchy
[simgrid.git]
/
src
/
surf
/
surf_routing.cpp
diff --git
a/src/surf/surf_routing.cpp
b/src/surf/surf_routing.cpp
index
7cee152
..
2fa1297
100644
(file)
--- a/
src/surf/surf_routing.cpp
+++ b/
src/surf/surf_routing.cpp
@@
-39,14
+39,19
@@
namespace surf {
xbt_dynar_free(&vertices_);
xbt_dynar_free(&upDownLinks);
xbt_free(name_);
xbt_dynar_free(&vertices_);
xbt_dynar_free(&upDownLinks);
xbt_free(name_);
- if (netcard_)
- delete netcard_;
+ delete netcard_;
+ }
+ void As::Seal()
+ {
+ sealed_ = true;
}
sg_platf_route_cbarg_t As::getBypassRoute(NetCard * /*src*/, NetCard * /*dst*/, double * /*lat*/) {
return NULL;
}
}
sg_platf_route_cbarg_t As::getBypassRoute(NetCard * /*src*/, NetCard * /*dst*/, double * /*lat*/) {
return NULL;
}
-
+ xbt_dynar_t As::getOneLinkRoutes() {
+ return NULL;
+ }
int As::addComponent(NetCard *elm) {
XBT_DEBUG("Load component \"%s\"", elm->name());
int As::addComponent(NetCard *elm) {
XBT_DEBUG("Load component \"%s\"", elm->name());
@@
-54,11
+59,11
@@
namespace surf {
return xbt_dynar_length(vertices_)-1;
}
return xbt_dynar_length(vertices_)-1;
}
- void As::
parse
Route(sg_platf_route_cbarg_t /*route*/){
- THROW_IMPOSSIBLE; /* No. */
+ void As::
add
Route(sg_platf_route_cbarg_t /*route*/){
+ xbt_die("AS %s does not accept new routes (wrong class).",name_);
}
void As::parseBypassroute(sg_platf_route_cbarg_t /*e_route*/){
}
void As::parseBypassroute(sg_platf_route_cbarg_t /*e_route*/){
-
THROW_IMPOSSIBLE
;
+
xbt_die("AS %s does not accept new bypass routes (wrong class).",name_)
;
}
}} // namespace simgrid::surf
}
}} // namespace simgrid::surf