package edu.wmich.cs.nest.agora.vis.qor;

import java.io.*;
import java.util.*;
import javax.comm.*;

public class Main {

	/**
	 * @param args
	 */
	public static void main(String[] args) {
		// TODO Auto-generated method stub
            /*
            CommPortIdentifier portId;
	    Enumeration portList;
	     String driverName = "com.sun.comm.Win32Driver";
	       try{
	       	CommDriver commdriver = (CommDriver)Class.forName(driverName).newInstance( );
	       	commdriver.initialize();
	       }
	       catch (Exception e2){
	        	e2.printStackTrace();
	        }

	        portList = CommPortIdentifier.getPortIdentifiers();
	        while (portList.hasMoreElements()) {
	                   portId = (CommPortIdentifier) portList.nextElement();
	                   if (portId.getPortType() == CommPortIdentifier.PORT_SERIAL) {
	                  	 if (portId.getName().equals("COM18")) {
	                		              	PortRead reader = new PortRead(portId,portList,1000);
	                		}
	            	}
	         }
             * 
             */
	}

}
