-
Notifications
You must be signed in to change notification settings - Fork 1
/
user_interface.h
85 lines (67 loc) · 2.23 KB
/
user_interface.h
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
/***************************************************************************
user_interface.h - description
-------------------
begin : Sat Aug 24 2002
copyright : (C) 2002 by Davide Patti
email : [email protected]
***************************************************************************/
/***************************************************************************
* *
* This program is free software; you can redistribute it and/or modify *
* it under the terms of the GNU General Public License as published by *
* the Free Software Foundation; either version 2 of the License, or *
* (at your option) any later version. *
* *
***************************************************************************/
#ifndef INTERFACE_USER_DEMO_H
#define INTERFACE_USER_DEMO_H
#include "explorer.h"
#include "estimator.h"
#include "trimaran_interface.h"
#include "processor.h"
#include "mem_hierarchy.h"
#include "environment.h"
#include "common.h"
#include <stdlib.h>
#include <stdio.h>
#include <signal.h>
#include <time.h>
#include "compiler.h" //db
/**
*@author Davide Patti
*/
class User_interface {
public:
User_interface(const string& dir);
~User_interface();
void interact();
private:
struct User_Settings user_settings;
Trimaran_interface * trimaran_interface;
Explorer * my_explorer;
int show_menu();
void edit_user_settings();
void save_settings(string settings_file);
void save_settings_wrapper();
void load_settings(string settings_file);
void set_subspace_wrapper();
void start_exploration_message();
void edit_exploration_space();
void reload_system_config();
void compile_hmdes_file();
void compile_benchmark();
void execute_benchmark();
void view_statistics();
void compute_cost();
void choose_benchmark();
void info();
void show_system_config();
void schedule_explorations();
inline string status_string(bool b);
string word;
string base_path;
unsigned int seed;
int myrank;
int mysize;
};
#endif