com.partnersoft.interfaces.qualcomm
Class Qualcomm

java.lang.Object
  extended by com.partnersoft.interfaces.qualcomm.Qualcomm

public class Qualcomm
extends java.lang.Object

A wrapper around AutotracLib that makes it easier to use.

Author:
Russell Cagle Copyright 2007 Partner Software, Inc.

Method Summary
 void clearMacros()
           
 void connect()
           
 boolean connectionFailed()
           
 boolean connectionInProgress()
           
 QtracsMacro createMacro()
           
 void disconnect()
           
 void dumpMacros()
          Dumps a list of macros from the MCT.
 java.lang.String getCommPort()
           
 java.util.ArrayList<java.lang.String> getFreeformMessages()
           
 java.util.ArrayList<QtracsMessage> getMacroMessages()
           
 java.util.ArrayList<QtracsMacro> getMacros()
           
 PositionMct getPosition()
           
 java.util.HashMap<java.lang.Long,MessageReceive> getRawMessages()
           
 java.lang.String getState()
          Returns a human-readable description of the connection's state.
 StatusMct getStatus()
           
 boolean isConnected()
           
 QtracsMacro matchMacro(java.lang.String messageBody)
          Returns the macro that matches the message, or null if none match.
 void runConfigDialog(javax.swing.JFrame root)
           
 void setCommPort(java.lang.String newCommPort)
           
static Qualcomm singleton()
           
 void syncMessages()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

singleton

public static Qualcomm singleton()

clearMacros

public void clearMacros()

connect

public void connect()
             throws java.io.IOException
Throws:
java.io.IOException

createMacro

public QtracsMacro createMacro()

connectionFailed

public boolean connectionFailed()

connectionInProgress

public boolean connectionInProgress()

disconnect

public void disconnect()
                throws java.io.IOException
Throws:
java.io.IOException

dumpMacros

public void dumpMacros()
Dumps a list of macros from the MCT.


getCommPort

public java.lang.String getCommPort()

getFreeformMessages

public java.util.ArrayList<java.lang.String> getFreeformMessages()

getMacroMessages

public java.util.ArrayList<QtracsMessage> getMacroMessages()

getMacros

public java.util.ArrayList<QtracsMacro> getMacros()

getPosition

public PositionMct getPosition()
                        throws java.io.IOException
Throws:
java.io.IOException

getRawMessages

public java.util.HashMap<java.lang.Long,MessageReceive> getRawMessages()

getStatus

public StatusMct getStatus()
                    throws java.io.IOException
Throws:
java.io.IOException

getState

public java.lang.String getState()
Returns a human-readable description of the connection's state.


isConnected

public boolean isConnected()

matchMacro

public QtracsMacro matchMacro(java.lang.String messageBody)
Returns the macro that matches the message, or null if none match.

Parameters:
rawMessage -
Returns:

runConfigDialog

public void runConfigDialog(javax.swing.JFrame root)

setCommPort

public void setCommPort(java.lang.String newCommPort)
                 throws java.io.IOException
Parameters:
newCommPort -
Throws:
java.io.IOException - if connecting doesn't work.

syncMessages

public void syncMessages()
                  throws java.io.IOException
Throws:
java.io.IOException