|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectbluetooth.GestionBt
bluetooth.StrategoClient
public class StrategoClient
Gère le client bluetooth
Field Summary | |
---|---|
private java.util.Vector |
devicesFound
|
private javax.bluetooth.DiscoveryAgent |
discoveryAgent
|
private java.util.Vector |
servicesFound
|
private java.lang.String |
serviceUrl
|
private java.lang.Thread |
thread
|
private javax.bluetooth.UUID[] |
uuidSet
|
Fields inherited from class bluetooth.GestionBt |
---|
_SConnection, input, output, stratego |
Fields inherited from interface javax.bluetooth.DiscoveryListener |
---|
INQUIRY_COMPLETED, INQUIRY_ERROR, INQUIRY_TERMINATED, SERVICE_SEARCH_COMPLETED, SERVICE_SEARCH_DEVICE_NOT_REACHABLE, SERVICE_SEARCH_ERROR, SERVICE_SEARCH_NO_RECORDS, SERVICE_SEARCH_TERMINATED |
Constructor Summary | |
---|---|
StrategoClient(Stratego stratego)
Constructeur |
Method Summary | |
---|---|
void |
deviceDiscovered(javax.bluetooth.RemoteDevice btDevice,
javax.bluetooth.DeviceClass cod)
Cette méthode recherche tous les matériels équipé du bluetooth se trouvant à portée. |
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 |
inquiryCompleted(int discType)
Cette méthode est appelée lorsque l'enquête est terminée. |
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 |
void |
servicesDiscovered(int transID,
javax.bluetooth.ServiceRecord[] servRecord)
Cette méthode est appelée quand un service Stratego a été découvert pendant la recherche. |
void |
serviceSearchCompleted(int transID,
int responseCode)
Indique l'état d'achèvement de la découverte de services, est appelée quand la recherche est terminé ou a été résiliée en raison d'une erreur. |
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.bluetooth.DiscoveryAgent discoveryAgent
private javax.bluetooth.UUID[] uuidSet
private java.lang.String serviceUrl
private java.util.Vector devicesFound
private java.util.Vector servicesFound
private java.lang.Thread thread
Constructor Detail |
---|
public StrategoClient(Stratego stratego)
stratego
- instance du strategoMethod Detail |
---|
public void deviceDiscovered(javax.bluetooth.RemoteDevice btDevice, javax.bluetooth.DeviceClass cod)
deviceDiscovered
in interface javax.bluetooth.DiscoveryListener
public void inquiryCompleted(int discType)
inquiryCompleted
in interface javax.bluetooth.DiscoveryListener
public void servicesDiscovered(int transID, javax.bluetooth.ServiceRecord[] servRecord)
servicesDiscovered
in interface javax.bluetooth.DiscoveryListener
public void serviceSearchCompleted(int transID, int responseCode)
serviceSearchCompleted
in interface javax.bluetooth.DiscoveryListener
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 void run()
run
in interface java.lang.Runnable
public 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 |