Migration vers le nouveau nom OWLPS

git-svn-id: https://pif.pu-pm.univ-fcomte.fr/svn/loc@71 785a6c6c-259e-4ff1-8b91-dc31627914f0

git-svn-id: https://pif.pu-pm.univ-fcomte.fr/svn/loc@73 785a6c6c-259e-4ff1-8b91-dc31627914f0

git-svn-id: https://pif.pu-pm.univ-fcomte.fr/svn/loc@74 785a6c6c-259e-4ff1-8b91-dc31627914f0

  Renommage des fichiers et adaptation des makefiles.

git-svn-id: https://pif.pu-pm.univ-fcomte.fr/svn/loc@75 785a6c6c-259e-4ff1-8b91-dc31627914f0

  Adaptation des #include, fin d'adaptation des makefiles.

  Reste à faire : renommage des fichiers de GuiNuMo, adaptation dans le
  code, amélioration du makefile (cible d'installation).
This commit is contained in:
Matteo Cypriani 2008-10-06 15:27:33 +00:00
parent 9a6bcaf8f4
commit 2c30b04a49
48 changed files with 159 additions and 140 deletions

View File

@ -1,55 +1,66 @@
.PHONY : all librtaputil clean purge help install install-librtaputil install-loc-bts install-loc-mobile uninstall uninstall-librtaputil uninstall-loc-bts uninstall-loc-mobile
.PHONY : all libowlps owlps-positioning clean purge help install install-libowlps install-infrastructure-centred install-mobile-centred uninstall uninstall-libowlps uninstall-infrastructure-centred uninstall-mobile-centred
## Compilation ##
all : librtaputil loc-bts loc-mobile
all : libowlps owlps-positioning infrastructure-centred mobile-centred
librtaputil :
@make -C librtaputil
libowlps :
@make -C libowlps
loc-bts : librtaputil
@make -C loc-bts
owlps-positioning :
@make -C owlps-positioning
loc-mobile : librtaputil
@make -C loc-mobile
infrastructure-centred : libowlps
@make -C infrastructure-centred
mobile-centred : libowlps
@make -C mobile-centred
## Installation ##
install : install-librtaputil install-loc-bts install-loc-mobile
install : install-libowlps install-owlps-positioning install-infrastructure-centred install-mobile-centred
install-librtaputil :
@make -C librtaputil install
install-libowlps :
@make -C libowlps install
install-loc-bts : install-librtaputil
@make -C loc-bts install
install-owlps-positioning :
@make -C owlps-positioning install
install-loc-mobile : install-librtaputil
@make -C loc-mobile install
install-infrastructure-centred : install-libowlps
@make -C infrastructure-centred install
install-mobile-centred : install-libowlps
@make -C mobile-centred install
## Désinstallation ##
uninstall : uninstall-librtaputil uninstall-loc-bts uninstall-loc-mobile
uninstall : uninstall-libowlps uninstall-infrastructure-centred uninstall-mobile-centred
uninstall-librtaputil : uninstall-loc-bts uninstall-loc-mobile
@make -C librtaputil uninstall
uninstall-libowlps : uninstall-infrastructure-centred uninstall-mobile-centred
@make -C libowlps uninstall
uninstall-loc-bts :
@make -C loc-bts uninstall
uninstall-owlps-positioning :
@make -C owlps-positioning uninstall
uninstall-loc-mobile :
@make -C loc-mobile uninstall
uninstall-infrastructure-centred :
@make -C infrastructure-centred uninstall
uninstall-mobile-centred :
@make -C mobile-centred uninstall
## Nettoyage ##
clean :
@make -C librtaputil clean
@make -C loc-bts clean
@make -C loc-mobile clean
@make -C libowlps clean
@make -C owlps-positioning clean
@make -C infrastructure-centred clean
@make -C mobile-centred clean
purge :
@make -C librtaputil purge
@make -C loc-bts purge
@make -C loc-mobile purge
@make -C libowlps purge
@make -C owlps-positioning purge
@make -C infrastructure-centred purge
@make -C mobile-centred purge
## Aide ##

View File

@ -0,0 +1,74 @@
.PHONY : all owlps-aggregator owlps-listener owlps-client clean purge help install install-owlps-aggregator install-owlps-listener install-owlps-client uninstall uninstall-owlps-aggregator uninstall-owlps-listener uninstall-owlps-client
## Compilation ##
all : owlps-aggregator owlps-listener owlps-client
owlps-aggregator :
@make -C owlps-aggregator
owlps-listener :
@make -C owlps-listener
owlps-client :
@make -C owlps-client
## Installation ##
install : install-owlps-aggregator install-owlps-listener install-owlps-client
install-owlps-aggregator :
@make -C owlps-aggregator install
install-owlps-listener :
@make -C owlps-listener install
install-owlps-client :
@make -C owlps-client install
## Désinstallation ##
uninstall : uninstall-owlps-aggregator uninstall-owlps-listener uninstall-owlps-client
uninstall-owlps-aggregator :
@make -C owlps-aggregator uninstall
uninstall-owlps-listener :
@make -C owlps-listener uninstall
uninstall-owlps-client :
@make -C owlps-client uninstall
## Nettoyage ##
clean :
@make -C owlps-aggregator clean
@make -C owlps-listener clean
@make -C owlps-client clean
purge :
@make -C owlps-aggregator purge
@make -C owlps-listener purge
@make -C owlps-client purge
## Aide ##
help :
@echo "Bibliothèques nécessaires à la compilation :\n\
libpcap0.8-dev\n\
libowlps1.0 (fournie)\n\
\n\
Cibles possibles :\n\
all (cible par défaut) : Compile tous les modules.\n\
<module> : Compile uniquement le module <module> (et ses dépendances).\n\
\n\
install : Installe tous les modules.\n\
install-<module> : Installe uniquement le module <module> (et ses dépendances).\n\
\n\
uninstall : Désinstalle tous les modules.\n\
uninstall-<module> : Désinstalle uniquement le module <module> (et ses dépendances).\n\
\n\
clean : Supprime les fichiers temporaires.\n\
purge : Supprime le résultat de la compilation.\n\
\n\
Note : l'installation se fait dans l'arborescence /usr/local. Modifiez la variable PREFIX de chaque Makefile pour changer ce comportement."

View File

@ -0,0 +1,11 @@
* Un peu partout : fixer la taille des données échangées (float = 4 octets, etc.).
* client :
- Vérifier que la direction est bien une des quatre possibles.
- Éventuellement, permettre l'utilisation d'une chaîne de caractères pour la direction.
- Faire une vraie gestion des arguments, enlever ce argv++ fort laid.
- Régler avec des arguments plutôt qu'en statique le nombre de paquets envoyés et le délai entre chaque envoi.
* apd : permettre d'utiliser un nom d'hôte putôt qu'une IP pour le serveur d'agrégation.
* Permettre de choisir soi-même le port des communications, aussi bien sur le mobile (demande de localisation), que sur les AP et le serveur d'agrégation. Pour l'instant, les ports sont gérés grâce aux constantes AGGREGATE_DEFAULT_PORT et LOC_REQUEST_DEFAULT_PORT.

View File

@ -13,15 +13,15 @@ RM=rm -fv
CP=cp -v
# Cible
TARGET=rtapaggregated
HEADER=rtapaggregate.h
TARGET=owlps-aggregatord
HEADER=owlps-aggregator.h
# Flags
CFLAGS=-O2 -W -Wall -Wstrict-prototypes -O -I.
DEPFLAGS=-MMD
XCFLAGS=$(CFLAGS) $(DEPFLAGS) $(WARN) $(HEADERS)
PICFLAG=-fPIC
LIBS=-lpthread ../../librtaputil/librtaputil.so.1.0
LIBS=-lpthread ../../libowlps/libowlps.so.1.0
## Cibles de compilation standard ##
@ -62,7 +62,7 @@ purge : clean
help :
@echo "Bibliothèques nécessaires à la compilation :\n\
librtaputil1.0 (fournie)\n\
libowlps1.0 (fournie)\n\
\n\
Cibles possibles :\n\
$(TARGET) (cible par défaut) : Compile le programme $(TARGET).\n\

View File

@ -6,7 +6,7 @@
#define _RTAPAGGREGATE_H
#include "../../librtaputil/rtaputil.h"
#include "../../libowlps/owlps.h"
//#define TIMESTAMP // Décommenter pour afficher le timestamp à chaque ligne du fichier de sortie.

View File

@ -3,7 +3,7 @@
*/
#include "rtapaggregate.h"
#include "owlps-aggregator.h"
#define DEBUG

View File

@ -13,7 +13,7 @@ RM=rm -fv
CP=cp -v
# Cible
TARGET=locclient
TARGET=owlps-client
HEADER=
# Flags
@ -21,7 +21,7 @@ CFLAGS=-O2 -W -Wall -Wstrict-prototypes -O -I.
DEPFLAGS=-MMD
XCFLAGS=$(CFLAGS) $(DEPFLAGS) $(WARN) $(HEADERS)
PICFLAG=-fPIC
LIBS=-lrtaputil
LIBS=../../libowlps/libowlps.so.1.0
STATIC_LIBS=-liw -lm
@ -71,7 +71,7 @@ purge : clean
help :
@echo "Bibliothèques nécessaires à la compilation :\n\
librtaputil1.0 (fournie)\n\
libowlps1.0 (fournie)\n\
\n\
Cibles possibles :\n\
$(TARGET) (cible par défaut) : Compile le programme $(TARGET).\n\

View File

@ -3,7 +3,7 @@
*/
#include "../../librtaputil/rtaputil.h"
#include "../../libowlps/owlps.h"
#define DEBUG
@ -21,8 +21,8 @@
#define NBPKT_NORMAL 10 // Nombre de paquets envoyés dans le cas d'une demande de localisation
/* Délai entre chaque paquet envoyé */
#define DELAY_CALIB 50000 // Délai entre chaque émission de paquet lors de la calibration (en ms)
#define DELAY_NORMAL 25000 // Délai entre chaque émission de paquet dans le cas d'une demande de localisation (en ms)
#define DELAY_CALIB 50000 // Délai entre chaque émission de paquet lors de la calibration (en microsecondes)
#define DELAY_NORMAL 25000 // Délai entre chaque émission de paquet dans le cas d'une demande de localisation (en microsecondes)

View File

@ -13,15 +13,15 @@ RM=rm -fv
CP=cp -v
# Cible
TARGET=apd
HEADER=ap.h
TARGET=owlps-listenerd
HEADER=owlps-listener.h
# Flags
CFLAGS=-O2 -W -Wall -Wstrict-prototypes -O -I.
DEPFLAGS=-MMD
XCFLAGS=$(CFLAGS) $(DEPFLAGS) $(WARN) $(HEADERS)
PICFLAG=-fPIC
LIBS=-lm -lpcap -lpthread ../../librtaputil/librtaputil.so.1.0
LIBS=-lm -lpcap -lpthread ../../libowlps/libowlps.so.1.0
## Cibles de compilation standard ##
@ -63,7 +63,7 @@ purge : clean
help :
@echo "Bibliothèques nécessaires à la compilation :\n\
libpcap0.8-dev\n\
librtaputil1.0 (fournie)\n\
libowlps1.0 (fournie)\n\
\n\
Cibles possibles :\n\
$(TARGET) (cible par défaut) : Compile le programme $(TARGET).\n\

View File

@ -6,7 +6,7 @@
#define _AP_H
#include "../../librtaputil/rtaputil.h"
#include "../../libowlps/owlps.h"
#include <pcap.h>
// Pour la fonction get_mac_addr() :

View File

@ -3,7 +3,7 @@
*/
#include "ap.h"
#include "owlps-listener.h"
#define DEBUG

View File

@ -17,14 +17,14 @@ CP=cp -v
SYMLINK=ln -svf
# Variables générales
LIB_CIBLE=librtaputil
LIB_CIBLE=libowlps
VERSION=1.0
# Cibles à construire
STATIC=$(LIB_CIBLE).a
DYNAMIC=$(LIB_CIBLE).so.$(VERSION)
#PROGS=
HEADER=rtaputil.h
HEADER=owlps.h
#HEADERS=
# Composition de la bibliothèque

View File

@ -3,7 +3,7 @@
*/
#include "rtaputil.h"
#include "owlps.h"
#define DEBUG

View File

@ -1,74 +0,0 @@
.PHONY : all rtapaggregate ap client clean purge help install install-rtapaggregate install-ap install-client uninstall uninstall-rtapaggregate uninstall-ap uninstall-client
## Compilation ##
all : rtapaggregate ap client
rtapaggregate :
@make -C rtapaggregate
ap :
@make -C ap
client :
@make -C client
## Installation ##
install : install-rtapaggregate install-ap install-client
install-rtapaggregate :
@make -C rtapaggregate install
install-ap :
@make -C ap install
install-client :
@make -C client install
## Désinstallation ##
uninstall : uninstall-rtapaggregate uninstall-ap uninstall-client
uninstall-rtapaggregate :
@make -C rtapaggregate uninstall
uninstall-ap :
@make -C ap uninstall
uninstall-client :
@make -C client uninstall
## Nettoyage ##
clean :
@make -C rtapaggregate clean
@make -C ap clean
@make -C client clean
purge :
@make -C rtapaggregate purge
@make -C ap purge
@make -C client purge
## Aide ##
help :
@echo "Bibliothèques nécessaires à la compilation :\n\
libpcap0.8-dev\n\
librtaputil1.0 (fournie)\n\
\n\
Cibles possibles :\n\
all (cible par défaut) : Compile tous les modules.\n\
<module> : Compile uniquement le module <module> (et ses dépendances).\n\
\n\
install : Installe tous les modules.\n\
install-<module> : Installe uniquement le module <module> (et ses dépendances).\n\
\n\
uninstall : Désinstalle tous les modules.\n\
uninstall-<module> : Désinstalle uniquement le module <module> (et ses dépendances).\n\
\n\
clean : Supprime les fichiers temporaires.\n\
purge : Supprime le résultat de la compilation.\n\
\n\
Note : l'installation se fait dans l'arborescence /usr/local. Modifiez la variable PREFIX de chaque Makefile pour changer ce comportement."

View File

@ -1,3 +0,0 @@
* apd : permettre d'utiliser un nom d'hôte putôt qu'une IP pour le serveur d'agrégation.
* Permettre de choisir soi-même le port des communications, aussi bien sur le mobile (demande de localisation), que sur les AP et le serveur d'agrégation. Pour l'instant, les ports sont gérés grâce aux constantes AGGREGATE_DEFAULT_PORT et LOC_REQUEST_DEFAULT_PORT.

View File

@ -34,7 +34,8 @@ CFLAGS=-O2 -W -Wall -Wstrict-prototypes -I.
DEPFLAGS=-MMD
XCFLAGS=$(CFLAGS) $(DEPFLAGS) $(WARN) $(HEADERS)
PICFLAG=-fPIC
LIBS=-lm -lpcap ../../librtaputil/librtaputil.so.1.0
LIBS=-lm -lpcap
#STRIPFLAGS= -Wl,-s
@ -112,7 +113,7 @@ purge : clean
help :
@echo -e "Bibliothèques nécessaires à la compilation :\n\
libpcap0.8-dev\n\
librtaputil1.0 (fournie)\n\
libowlps1.0 (fournie)\n\
\n\
Cibles possibles :\n\
all (cible par défaut) : Compile la bibliothèque partagée et statique.\n\

View File

@ -9,7 +9,7 @@
#include <pcap.h>
#include "../../librtaputil/rtaputil.h"
#include "../../libowlps/owlps.h"

View File

@ -21,8 +21,7 @@ CFLAGS=-O2 -W -Wall -Wstrict-prototypes -O -I.
DEPFLAGS=-MMD
XCFLAGS=$(CFLAGS) $(DEPFLAGS) $(WARN) $(HEADERS)
PICFLAG=-fPIC
#LIBS=../../librtaputil/librtaputil.so.1.0 ../librtapscanmob/librtapscanmob.so.1.0
LIBS=../librtapscanmob/librtapscanmob.so.1.0
LIBS=../../libowlps/libowlps.so.1.0 ../librtapscanmob/librtapscanmob.so.1.0
## Cibles de compilation standard ##

View File

@ -2521,17 +2521,17 @@ void Server::radar_exp(const string &outfile, const string &testfile)
logfile << solution << "\t" << solution.distance(ref_coords) << "\t" ;
frbhm_error += solution.distance(ref_coords);
/* 2-NSS
solution = getkWeightedInSs(vm, 2, &ref_coords);
logfile << solution << "\t" << solution.distance(ref_coords) << "\t";
// /* 2-NSS */
// solution = getkWeightedInSs(vm, 2, &ref_coords);
// logfile << solution << "\t" << solution.distance(ref_coords) << "\t";
/* 3-NSS
solution = getkWeightedInSs(vm, 3, &ref_coords);
logfile << solution << "\t" << solution.distance(ref_coords) << "\t";
// /* 3-NSS */
// solution = getkWeightedInSs(vm, 3, &ref_coords);
// logfile << solution << "\t" << solution.distance(ref_coords) << "\t";
/* 5-NSS
solution = getkWeightedInSs(vm, 5, &ref_coords);
logfile << solution << "\t" << solution.distance(ref_coords) << "\t";*/
// /* 5-NSS */
// solution = getkWeightedInSs(vm, 5, &ref_coords);
// logfile << solution << "\t" << solution.distance(ref_coords) << "\t";
logfile << endl ;
vm.clear() ;