source:
proiecte/GAIIA/Muchie.cpp
@
122
Last change on this file since 122 was 122, checked in by , 14 years ago | |
---|---|
File size: 390 bytes |
Rev | Line | |
---|---|---|
[122] | 1 | #include "Graf.h" |
2 | ||
3 | /** | |
4 | * the constructor | |
5 | * | |
6 | * @param p the predecessor node | |
7 | * @param s the successor node | |
8 | * @param c the edge's communication cost | |
9 | */ | |
10 | Muchie::Muchie(Nod * p, Nod * s, double c) | |
11 | { | |
12 | predecesor = p; | |
13 | succesor = s; | |
14 | cost = c; | |
15 | } | |
16 | ||
17 | /** | |
18 | * Method printing the edge's information | |
19 | */ | |
20 | void Muchie::print() | |
21 | { | |
22 | printf("[Muchie %i->%i cost = %lf]\n", predecesor->id, succesor->id, cost); | |
23 | } |
Note: See TracBrowser
for help on using the repository browser.