-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathReadme
69 lines (42 loc) · 2.25 KB
/
Readme
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
#Config machine pour le projet :
Java version "13"
Apache Maven 3.6.2
#Mise en oeuvre :
depuis le repertoire du projet (présence du fichier POM.xml) executer en ligne de commande
--> mvn package
--> mvn exec:java
avant de lancer la simulation vous pouvez definir ses parametres dans un fichier de configuration dans le fichier config.JSON
dans les ressources du projet
à l'aide d'un navigateur (browser web, cURL, ...) on peut agir sur le demonstrateur par des requettes HTTP avec l'adresse URL suivante
http://localhost:8080/mermaid/...
#Bibliothèque de requêtes :
Affiche le nombre de Mermaid enregistré dans le registre :
|GET| http://localhost:8080/mermaid/
Mermaid :
Récupérer/Modifier le nom du mermaid n°{id} :
|GET| http://localhost:8080/mermaid/{id}/name
|PUT| "name=...(String)" http://localhost:8080/mermaid/{id}/name
Faire plonger le Mermaid :
|PUT| "depth=...(Int)" http://localhost:8080/mermaid/{id}/dive/
Récupérer/Modifier la vitesse de plongée du mermaid n°{id} :
|GET| http://localhost:8080/mermaid/{id}/speed
|PUT| "speed=...(String)" http://localhost:8080/mermaid/{id}/speed
Récupérer la vitesse maximale de plongée du mermaid n°{id} :
|GET| http://localhost:8080/mermaid/{id}/speedmax
Récupérer la profondeur maximale de plongée du mermaid n°{id} :
|GET| http://localhost:8080/mermaid/{id}/depthmax
Modifier la durée de l'horloge du mermaid n°{id} :
|PUT| "duration=...(Int)" http://localhost:8080/mermaid/{id}/clock
Recupérer le status de la pompe :
|GET| http://localhost:8080/mermaid/{id}/pump/status
Recupérer la mémoire du mermaid :
|GET| http://localhost:8080/mermaid/{id}/memory
Capteur :
Recupérer/Modifier le nom du capteur scalaire n°{id} :
|GET| http://localhost:8080/mermaid/{id}/sensor/{id}/name
|PUT| "name=...(Sring)" http://localhost:8080/mermaid/{id}/sensor/{id}/name
Recupérer/Modifier la loi associée au capteur n°{id} :
|GET| http://localhost:8080/mermaid/{id}/sensor/{id}/law
|PUT| "law=...(String)" http://localhost:8080/mermaid/{id}sensor/{id}/law
Recupérer la valeur du capteur scalaire n°{id} :
|GET| http://localhost:8080/mermaid/{id}/sensor/{id}/value