![]() One edge case for the readInput function would be Acceptance testing can also be done where the user can test whetherĮdge cases were accepted. Produce errors specific to that functionality. For my chosen block the main class can easily use unit tests.Ĭommenting out the WriteOutput function, and then the ReadInput function can In this way unit testing canīe implemented. The rest of the program and tested individually. ![]() For example the Read Input class will be separated from Each class will be separated based on theįunctions it performs. The execution of the main class isĭescribed below, which hopes to execute the entire program and display the userĮlectrical block to this design however the setup I plan to use uses theĬoncept of abstract methods in java. Loops upon execution of main, until button is pushed.Īpplication at the code level. Mainly a looper function to handle constant input and output streams of data.ĭescription: Screen display of all the outputs listed on first page. Method to write Data to Microprocessor.ĭescription: This is a function utility provided in the bluetooth developers utility provided by Android. Method to read Data from Microprocessor. Cancels the discovery mode of app once a device from bluetooth menu is selected.ĭescription: Deals with dealing with the details when a connection is established. creates a socket definition for selected bluetooth tries to connect to socket defined by createRfcommSocketToServiceRecord() Looper function to keep trying to connect untiil successful connection or IO exception thrown. MessageHandler is a looper function which handles the connection sequence once the app connects to bluetooth device.ĭescription: Class contains all information about how to connect to a bluetooth device. ![]() ![]() It contains various event listeners.ĬonnectThread tries to establish a link, with the bluetooth device.ĬonnectedThread, deals with reading and writing from/to the bluetooth device. OnCreate() method launches when the app is initialized. The main methods have been described below. Description: Contains all the classes and methods for the app. ![]()
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |