net.homeip.mleclerc.omnilink
Class CommunicationService

java.lang.Object
  extended byjava.rmi.server.RemoteObject
      extended byjava.rmi.server.RemoteServer
          extended byjava.rmi.server.UnicastRemoteObject
              extended bynet.homeip.mleclerc.omnilink.CommunicationService
All Implemented Interfaces:
MessageManager, MessageManagerRemote, java.rmi.Remote, java.io.Serializable

public class CommunicationService
extends java.rmi.server.UnicastRemoteObject
implements MessageManagerRemote

See Also:
Serialized Form

Field Summary
 
Fields inherited from class java.rmi.server.RemoteObject
ref
 
Fields inherited from interface net.homeip.mleclerc.omnilink.MessageManagerRemote
SERVICE_NAME
 
Constructor Summary
CommunicationService(SystemTypeEnum model, java.lang.String comPortStr, int baudRate)
           
CommunicationService(SystemTypeEnum model, java.lang.String comPortStr, int baudRate, java.lang.String initCmd, java.lang.String localAccessCmd)
           
 
Method Summary
 void close()
           
 ReplyMessage execute(RequestMessage query)
           
 boolean isOpen()
           
 void open()
           
 
Methods inherited from class java.rmi.server.UnicastRemoteObject
clone, exportObject, exportObject, exportObject, unexportObject
 
Methods inherited from class java.rmi.server.RemoteServer
getClientHost, getLog, setLog
 
Methods inherited from class java.rmi.server.RemoteObject
equals, getRef, hashCode, toString, toStub
 
Methods inherited from class java.lang.Object
finalize, getClass, notify, notifyAll, wait, wait, wait
 

Constructor Detail

CommunicationService

public CommunicationService(SystemTypeEnum model,
                            java.lang.String comPortStr,
                            int baudRate)
                     throws CommunicationException,
                            java.rmi.RemoteException

CommunicationService

public CommunicationService(SystemTypeEnum model,
                            java.lang.String comPortStr,
                            int baudRate,
                            java.lang.String initCmd,
                            java.lang.String localAccessCmd)
                     throws CommunicationException,
                            java.rmi.RemoteException
Method Detail

open

public void open()
          throws CommunicationException,
                 java.rmi.RemoteException
Specified by:
open in interface MessageManagerRemote
Throws:
CommunicationException
java.rmi.RemoteException

execute

public ReplyMessage execute(RequestMessage query)
                     throws CommunicationException,
                            java.rmi.RemoteException
Specified by:
execute in interface MessageManagerRemote
Throws:
CommunicationException
java.rmi.RemoteException

close

public void close()
           throws java.rmi.RemoteException
Specified by:
close in interface MessageManagerRemote
Throws:
java.rmi.RemoteException

isOpen

public boolean isOpen()
               throws java.rmi.RemoteException
Specified by:
isOpen in interface MessageManagerRemote
Throws:
java.rmi.RemoteException