|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectbluetooth.GestionBt
bluetooth.StrategoServer
public class StrategoServer
Gère le serveur bluetooth
Field Summary | |
---|---|
private javax.microedition.io.StreamConnectionNotifier |
_SCNotifier
|
private boolean |
isInit
|
private javax.bluetooth.LocalDevice |
localDevice
|
private static java.lang.String |
serverUrl
|
private java.lang.Thread |
thread
|
Fields inherited from class bluetooth.GestionBt |
---|
_SConnection, input, output, stratego |
Constructor Summary | |
---|---|
StrategoServer(Stratego stratego)
Constructeur |
Method Summary | |
---|---|
void |
envoyerCoupJoue(Case cD,
Case cA)
Envoie le coup joue grâce à un OutputStream |
void |
envoyerPlateau()
Envoie les données du plateau |
void |
fermetureFlux()
Ferme les flux d'entrée et de sortie |
javax.microedition.io.StreamConnection |
get_SConnection()
|
java.io.InputStream |
getInput()
|
java.io.OutputStream |
getOutput()
|
void |
lirePlateau()
Récupère les données du plateau |
private void |
ouvertureFlux()
Ouvre les flux d'entrée et de sortie |
void |
run()
Exécute le thread |
Methods inherited from class bluetooth.GestionBt |
---|
envoyerCoupJoue, lireCoupJoue |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
private javax.microedition.io.StreamConnectionNotifier _SCNotifier
private javax.bluetooth.LocalDevice localDevice
private java.lang.Thread thread
private boolean isInit
private static java.lang.String serverUrl
Constructor Detail |
---|
public StrategoServer(Stratego stratego)
stratego
- instance du strategoMethod Detail |
---|
public void run()
run
in interface java.lang.Runnable
private void ouvertureFlux()
public void fermetureFlux()
public void envoyerPlateau()
public void lirePlateau()
public void envoyerCoupJoue(Case cD, Case cA)
cD
- case de départcA
- case d'arrivéepublic javax.microedition.io.StreamConnection get_SConnection()
public java.io.OutputStream getOutput()
public java.io.InputStream getInput()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |