edu.columbia.irt.mobiledyswis
Class BTSocketFactory

java.lang.Object
  extended by edu.columbia.irt.mobiledyswis.BTSocketFactory

public class BTSocketFactory
extends java.lang.Object

This class creates a BTSocket instance for JavaScript.

Author:
Jin Hyung Park (jp2105)

Constructor Summary
BTSocketFactory(WebView appView)
          Instantiates a new web socket factory.
 
Method Summary
 BTSocket getInstance(java.lang.String macddr)
          Return a BTSocket instance to JavaScript.
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

BTSocketFactory

public BTSocketFactory(WebView appView)
Instantiates a new web socket factory.

Parameters:
appView - the app view
Method Detail

getInstance

public BTSocket getInstance(java.lang.String macddr)
Return a BTSocket instance to JavaScript.

Parameters:
macddr - the server's bluetooth mac address
Returns:
BTSocket Instance for JavaScript