/*                                                                      *\
**                    SICU Stress Measurement System                    **
**                      Project P04  |  C380 Team A                     **
**          EBME 380: Biomedical Engineering Design Experience          **
**                    Case Western Reserve University                   **
**                          2016 Fall Semester                          **
\*                                                                      */

package edu.cwru.sicu_sms.util;

import jssc.SerialPort;
import jssc.SerialPortEventListener;

/**
 * This class is an abstraction of a serial port comprising all the necessary parameters and core functionality needed for the client application.
 *
 * @since December 12, 2016
 * @author Ted Frohlich <ttf10@case.edu>
 * @author Abby Walker <amw138@case.edu>
 */
abstract class AbstractSerialPort implements SerialPortEventListener {
    
    private SerialPort serialPort;
    
}

@@ -614,16 +614,106 @@
 tener;%0A%0A
+import java.io.FileInputStream;%0Aimport java.io.IOException;%0Aimport java.util.Properties;%0A%0A
 /**%0A * T
@@ -1056,16 +1056,8 @@
     
-private 
 Seri
@@ -1074,16 +1074,444 @@
 ialPort;
+%0A    %0A    AbstractSerialPort(String key) %7B%0A        Properties properties = new Properties();%0A        FileInputStream inStream = null;%0A        try %7B%0A            inStream = new FileInputStream(%22port.properties%22);%0A            properties.load(inStream);%0A            inStream.close();%0A        %7D catch (IOException e) %7B%0A            e.printStackTrace();%0A        %7D%0A        serialPort = new SerialPort(properties.getProperty(key));%0A    %7D
 %0A    %0A%7D%0A

Add abstract constructor