net.homeip.mleclerc.omnilink
Class Communication

java.lang.Object
  extended bynet.homeip.mleclerc.omnilink.Communication
All Implemented Interfaces:
MessageManager

public class Communication
extends java.lang.Object
implements MessageManager


Constructor Summary
Communication(SystemTypeEnum model, java.lang.String comPortStr, int baudRate)
           
Communication(SystemTypeEnum model, java.lang.String comPortStr, int baudRate, java.lang.String initCmd, java.lang.String localAccessCmd)
           
 
Method Summary
 void close()
           
 ReplyMessage execute(RequestMessage request)
           
 boolean isOpen()
           
 void open()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Communication

public Communication(SystemTypeEnum model,
                     java.lang.String comPortStr,
                     int baudRate)

Communication

public Communication(SystemTypeEnum model,
                     java.lang.String comPortStr,
                     int baudRate,
                     java.lang.String initCmd,
                     java.lang.String localAccessCmd)
Method Detail

open

public void open()
          throws CommunicationException
Specified by:
open in interface MessageManager
Throws:
CommunicationException

isOpen

public boolean isOpen()
Specified by:
isOpen in interface MessageManager

execute

public ReplyMessage execute(RequestMessage request)
                     throws CommunicationException
Specified by:
execute in interface MessageManager
Throws:
CommunicationException

close

public void close()
Specified by:
close in interface MessageManager