-
Notifications
You must be signed in to change notification settings - Fork 0
/
accueil.html
216 lines (216 loc) · 6.2 KB
/
accueil.html
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
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
<!DOCTYPE HTML>
<html lang="fr" xmlns="http://www.w3.org/1999/xhtml">
<head>
<title>Accueil Simulateur Cloud</title>
<meta charset="utf-8" />
<meta name="viewport" content="width=device-width, user-scalable=no, minimum-scale=1.0, maximum-scale=1.0" />
<link rel="stylesheet" href="css/accueil.css" />
<link rel="stylesheet" href="css/navbar.css" />
<link rel="stylesheet" href="css/cy.css" />
<script src="js/accueil.js" type="module"></script>
<script src="lib/cytoscape.min.js"></script>
<script src="js/vkbeautify.js"></script>
<script src="https://unpkg.com/layout-base/layout-base.js"></script>
<script src="https://unpkg.com/cose-base/cose-base.js"></script>
<script src="../lib/cytoscape-cose-bilkent.js"></script>
</head>
<body>
<header>
<p><b>Simulateur Cloud</b></p>
<div id="progress_bar">
<div id="separator1"> </div>
<div>
<p>1/ Configuration Initiale</p>
</div>
<div id="separator2"> </div>
<div>
<p>2/ Debut Simulation</p>
</div>
<div id="separator3"> </div>
<div>
<p>3/ Fin Simulation</p>
</div>
</div>
</header>
<div id="config_initiale">
<div id="server_config">
<p><b>Servers List</b></p>
<div class="server_test">
<div class="server_id">
<p>Server Id:</p>
<p style="text-align:center;">server</p>
</div>
<div>
<div class="server_CPU_config">
<p>CPU</p>
<button class="server_remove_CPU" disabled>-</button>
<p class="server_CPU_value">999</p>
<button class="server_add_CPU" disabled>+</button>
</div>
<div class="server_RAM_config">
<p>RAM</p>
<button class="server_remove_RAM" disabled>-</button>
<p class="server_RAM_value">999</p>
<button class="server_add_RAM" disabled>+</button>
</div>
<div class="server_CAPACITY_config">
<p>CAP.</p>
<button class="server_remove_CAPACITY">-</button>
<p class="server_CAPACITY_value">10</p>
<button class="server_add_CAPACITY">+</button>
</div>
</div>
<div>
<button class="delete_server" disabled>Supprimer</button>
</div>
</div>
</div>
<div id="vm_config">
<p><b>VMs List</b></p>
<div id="vm_add">
<div class="vm_id">
<p>VM Id:</p>
</div>
<div>
<div class="vm_CPU_config">
<p>CPU</p>
<button class="vm_remove_CPU">-</button>
<p class="vm_CPU_value">0</p>
<button class="vm_add_CPU" >+</button>
<p class="server_CPU_available" style="font-size: 9px;">0</p>
</div>
<div class="vm_RAM_config">
<p>RAM</p>
<button class="vm_remove_RAM">-</button>
<p class="vm_RAM_value">0</p>
<button class="vm_add_RAM">+</button>
<p class="server_RAM_available" style="font-size: 9px;">0</p>
</div>
</div>
<div>
<div>
<select id="choix_server">
<option value="0">Aucun</option>
</select>
</div>
<button id="add_vm">Ajouter</button>
</div>
</div>
</div>
<div id="services_config">
<p><b>Services List</b></p>
<div id="service_add">
<div class="service_id">
<p>Service Id:</p>
</div>
<div>
<div class="service_CPU_config">
<p>CPU</p>
<button class="service1_remove_CPU">-</button>
<p class="service_CPU_value">0</p>
<button class="service_add_CPU" >+</button>
<p class="vm_CPU_available">0</p>
</div>
<div class="service_RAM_config">
<p>RAM</p>
<button class="service_remove_RAM">-</button>
<p class="service_RAM_value">0</p>
<button class="service_add_RAM">+</button>
<p class="vm_RAM_available">0</p>
</div>
<div class="service_MU_config">
<p>MU</p>
<button class="service_remove_MU">-</button>
<p class="service_MU_value">0</p>
<button class="service_add_MU">+</button>
</div>
</div>
<div>
<div>
<select id="choix_vm">
<option value="0">Aucun</option>
</select>
</div>
<button id="add_service">Ajouter</button>
</div>
</div>
</div>
<div id="config_strategies">
<p><b>Stratégies</b></p>
<div>
<div id="horizontal">
<div>
<input type="checkbox" id="horizontal_checkbox" name="horizontal_checkbox" />
<label for="horizontal_checkbox">Horizontale</label>
</div>
<div>
<select id="choix_horizontal">
<option id="1">HD VM / HD Service</option>
<option id="2">HD VM / DL Service</option>
<option id="3">DL VM / HD Service</option>
<option id="4">DL VM / DL Service</option>
</select>
</div>
</div>
<div id="vertical">
<div>
<input type="checkbox" id="vertical_checkbox" name="vertical_checkbox" />
<label for="vertical_checkbox">Verticale</label>
</div>
<div>
<select id="choix_vertical">
<option id="1">Erlang C</option>
<option id="2">Double</option>
</select>
</div>
</div>
</div>
<div>
<p><b>Seuil VM</b></p>
<div>
<input id="seuil_vm" type="text" style="text-align:center; margin-top:-10px;"></input>
</div>
</div>
<div>
<p><b>Seuil Service</b></p>
<div>
<input id="seuil_service" type="text" style="text-align:center; margin-top:-10px;"></input>
</div>
</div>
</div>
<div id="import_xml">
<p><b>Fichier XML</b></p>
<input id="choose_xml" type="file" accept=".xml" />
<label for="choose_xml">Choisir XML</label>
<p id="textfile">Aucun fichier choisi</p>
<input id="save_state" type="button" value="Sauvegarder état"/>
</div>
</div>
<div>
<div>
<div id="cy">
</div>
</div>
<div id="container_canvas">
<canvas id='myPlot' height="430"></canvas>
<div>
<div>
<label>Taille de l'intervalle</label>
<input type="number" id="fieldSizeInterval"></input>
<label>Lambda (Taux d'entrée)</label>
<input type="number" id="fieldLambda"></input>
<button id="bouttonInterval" type="button">Ajouter une simulation</button>
</div>
<div>
<label>Nombre de tics de temps à supprimer</label>
<input type="number" id="fieldRemoveInterval"></input>
<button id="bouttonRemove" type="button">Supprimer</button>
</div>
</div>
</div>
</div>
<footer>
<input id="btnStart" type="button" value="Start Simulation"></input>
</footer>
</body>
</html>