From a2126c979d9f86bcc0e544cc367029dd82ad9e1c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Georges=20Dup=C3=A9ron?= Date: Tue, 1 Feb 2011 15:00:20 +0100 Subject: [PATCH] Corrections sur mes notes dans le rapport + un peu de mise en forme. --- code/serveur/php/pticlic.php | 6 +++++- rapport/rapport.tex | 19 ++++++++++++++----- 2 files changed, 19 insertions(+), 6 deletions(-) diff --git a/code/serveur/php/pticlic.php b/code/serveur/php/pticlic.php index 2a717d1..c4d2ecc 100644 --- a/code/serveur/php/pticlic.php +++ b/code/serveur/php/pticlic.php @@ -41,9 +41,13 @@ function create_game($cloudSize) { global $db; // select random node $centerEid = random_node(); + $relation_1 = 5; + $relation_2 = 7; + //$relation_3 = 9; + //$relation_4 = 10; // select neighbors 1 hop - if (!$difficulty_1 = $db->query("select end as eid from relation where start = 42 order by random() limit " . $cloudSize . ";")) { mDie(4,"Erreur dans la requête d1"); } + if (!$difficulty_1 = $db->query("select end as eid from relation where start = 42 and type in (".$relation_1.",".$relation_2.") order by random() limit " . $cloudSize . ";")) { mDie(4,"Erreur dans la requête d1"); } // select neighbors 2 hops diff --git a/rapport/rapport.tex b/rapport/rapport.tex index 6cbd4cd..bae1067 100644 --- a/rapport/rapport.tex +++ b/rapport/rapport.tex @@ -118,12 +118,21 @@ Android Developer, 2011. (\url{http://developer.android.com/}) \section{Notes Georges} -Les relations suivantes seront peut-être utilisées (* = oui, c'est sûr) -r\_carac 17 -r\_agent 13 -r\_patient 14 -* r\_syn 5 +Les relations suivantes seront peut-être utilisées (* = oui, c'est sûr, on a/doit faire les icônes et des requêtes sql)~: +\begin{tabular}{|c|l|l|l|} +\hline +icône~? & nom & num & signification \\ +\hline +$*$ & r\_syn & 5 & synonyme (chat -> matou) \\ +$*$ & r\_anto & 7 & antonyme (bon -> mauvais) \\ +$*$ & r\_has\_part & 9 & A comme partie (chat -> patte) \\ +$*$ & r\_holo & 10 & Fait partie de (patte -> chat) \\ + & r\_agent & 13 & Peut exécuter comme action (chat -> manger) \\ + & r\_patient & 14 & Peut subir comme action (chat -> être lavé) \\ + & r\_carac & 17 & Caractéristique (chat -> affectueux (ou pas…)) \\ +\hline +\end{tabular} \newpage \appendix