de.beamertool.mobile
Class GsmAtFactory

java.lang.Object
  extended by de.beamertool.mobile.GsmAtFactory

public class GsmAtFactory
extends Object

This class contains an factory method to get an GsmAt implementing class and a method for serial port discovery

Author:
ocm-zeeman

Method Summary
static List<gnu.io.CommPortIdentifier> getAvailableSerialPorts()
          Returns a List of availible serial ports of the system.
static GsmAt getInstance(Settings settings)
          A factory to get an instance of an GsmAt implementing class
static InboundMessage getTestMessage()
           
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

getAvailableSerialPorts

public static List<gnu.io.CommPortIdentifier> getAvailableSerialPorts()
Returns a List of availible serial ports of the system. There is no further check if the ports are in use or something like this.

Returns:
- all availible ports of the system

getInstance

public static GsmAt getInstance(Settings settings)
A factory to get an instance of an GsmAt implementing class

Parameters:
settings - The settings to use
Returns:
An instance of a class for a specific device-type
See Also:
MobileType

getTestMessage

public static InboundMessage getTestMessage()