-
-void AsGeneric::srcDstCheck(RoutingEdge *src, RoutingEdge *dst)
-{
- if (src == NULL || dst == NULL)
- xbt_die("Ask for route \"from\"(%s) or \"to\"(%s) no found at AS \"%s\"",
- src ? src->getName() : "(null)",
- dst ? dst->getName() : "(null)",
- p_name);
-
- As *src_as = src->getRcComponent();
- As *dst_as = dst->getRcComponent();
-
- if (src_as != dst_as)
- xbt_die("The src(%s in %s) and dst(%s in %s) are in differents AS",
- src->getName(), src_as->p_name,
- dst->getName(), dst_as->p_name);
-
- if (this != dst_as)
- xbt_die
- ("The routing component of src'%s' and dst'%s' is not the same as the network elements belong (%s?=%s?=%s)",
- src->getName(),
- dst->getName(),
- src_as->p_name,
- dst_as->p_name,
- p_name);