1 | /* |
---|
2 | * $Id: Parameters_msg_error.cpp 82 2008-05-01 16:48:45Z rosiere $ |
---|
3 | * |
---|
4 | * [ Description ] |
---|
5 | * |
---|
6 | */ |
---|
7 | |
---|
8 | #include "Behavioural/include/Types.h" |
---|
9 | #include "Behavioural/Core/Multi_OOO_Engine/OOO_Engine/Rename_unit/Rename_select/include/Parameters.h" |
---|
10 | #include <sstream> |
---|
11 | |
---|
12 | namespace morpheo { |
---|
13 | namespace behavioural { |
---|
14 | namespace core { |
---|
15 | namespace multi_ooo_engine { |
---|
16 | namespace ooo_engine { |
---|
17 | namespace rename_unit { |
---|
18 | namespace rename_select { |
---|
19 | |
---|
20 | |
---|
21 | #undef FUNCTION |
---|
22 | #define FUNCTION "Rename_select::msg_error" |
---|
23 | Parameters_test Parameters::msg_error(void) |
---|
24 | { |
---|
25 | log_printf(FUNC,Rename_select,FUNCTION,"Begin"); |
---|
26 | |
---|
27 | Parameters_test test("Rename_select"); |
---|
28 | |
---|
29 | if ((_nb_front_end_select == 0) or |
---|
30 | (_nb_front_end_select > _nb_front_end)) |
---|
31 | test.error(_("nb_front_end_select must be in [1:nb_front_end].\n")); |
---|
32 | |
---|
33 | if ((_priority != PRIORITY_STATIC) and |
---|
34 | (_priority != PRIORITY_ROUND_ROBIN)) |
---|
35 | test.error(toString(_("Unsupported priority scheme. Supported scheme are : %s and %s.\n"),toString(PRIORITY_STATIC).c_str(),toString(PRIORITY_ROUND_ROBIN).c_str())); |
---|
36 | |
---|
37 | if ((_load_balancing != LOAD_BALANCING_BALANCE) and |
---|
38 | (_load_balancing != LOAD_BALANCING_MAXIMUM_FOR_PRIORITY)) |
---|
39 | test.error(toString(_("Unsupported load_balancing scheme. Supported scheme are : %s and %s.\n"),toString(LOAD_BALANCING_BALANCE).c_str(),toString(LOAD_BALANCING_MAXIMUM_FOR_PRIORITY).c_str())); |
---|
40 | |
---|
41 | return test; |
---|
42 | |
---|
43 | log_printf(FUNC,Rename_select,FUNCTION,"End"); |
---|
44 | }; |
---|
45 | |
---|
46 | }; // end namespace rename_select |
---|
47 | }; // end namespace rename_unit |
---|
48 | }; // end namespace ooo_engine |
---|
49 | }; // end namespace multi_ooo_engine |
---|
50 | }; // end namespace core |
---|
51 | |
---|
52 | }; // end namespace behavioural |
---|
53 | }; // end namespace morpheo |
---|