at.lcm.x2c.communicator
Class X2cCommunicatorRMI

java.lang.Object
  extended by java.rmi.server.RemoteObject
      extended by java.rmi.server.RemoteServer
          extended by java.rmi.server.UnicastRemoteObject
              extended by at.lcm.x2c.communicator.X2cCommunicatorRMI
All Implemented Interfaces:
X2cCommunicatorRMI_interface, java.io.Serializable, java.rmi.Remote

public class X2cCommunicatorRMI
extends java.rmi.server.UnicastRemoteObject
implements X2cCommunicatorRMI_interface

See Also:
Serialized Form

Field Summary
 
Fields inherited from class java.rmi.server.RemoteObject
ref
 
Fields inherited from interface at.lcm.x2c.communicator.X2cCommunicatorRMI_interface
_SERVICENAME
 
Constructor Summary
X2cCommunicatorRMI(X2cCommunicatorManagerRMI x2cCommunicatorManagerRMI)
           
X2cCommunicatorRMI(X2cCommunicatorManagerRMI x2cCommunicatorManagerRMI, java.lang.String connectionName)
           
 
Method Summary
 void addX2cRMIConnectionListener(X2cRMIConnectionListener listener)
           
 void addX2cRMIModelListener(X2cRMIModelListener listener)
           
 void disconnect()
           
 at.lcm.x2c.gui.communicator.Communicator getCommunicator()
           
 X2cModelRMI_interface getModel()
          Returns Model.
 IProtocolRemote getProtocol()
          Returns Protocol.
 IScopeRemote getScope()
          Returns Scope.
 boolean isCommunicatorAlive()
          Method to test whether the Communicator is alive.
 void notifyChangeBlockMaskParameter(X2cRMIModelBlockMaskParameterUpdateEvent event)
          Receive a notification about a parameter change from a remote client and update the local model.
 void quit()
          Deprecated. 
 void removeX2cRMIConnectionListener(X2cRMIConnectionListener listener)
           
 void removeX2cRMIModelListener(X2cRMIModelListener listener)
           
 void setConnectionName(java.lang.String connectionName)
           
 void setLibrariesPath(java.util.List<java.io.File> libPaths)
           
 void setModel(at.lcm.x2c.core.structure.Model newModel)
          Sets Model.
 void shutdown()
           
 
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

X2cCommunicatorRMI

public X2cCommunicatorRMI(X2cCommunicatorManagerRMI x2cCommunicatorManagerRMI)
                   throws java.rmi.RemoteException
Throws:
java.rmi.RemoteException

X2cCommunicatorRMI

public X2cCommunicatorRMI(X2cCommunicatorManagerRMI x2cCommunicatorManagerRMI,
                          java.lang.String connectionName)
                   throws java.rmi.RemoteException
Throws:
java.rmi.RemoteException
Method Detail

getModel

public X2cModelRMI_interface getModel()
                               throws java.lang.Exception
Description copied from interface: X2cCommunicatorRMI_interface
Returns Model.

Specified by:
getModel in interface X2cCommunicatorRMI_interface
Returns:
Model
Throws:
java.rmi.RemoteException
java.lang.Exception

getProtocol

public IProtocolRemote getProtocol()
                            throws java.rmi.RemoteException
Description copied from interface: X2cCommunicatorRMI_interface
Returns Protocol.

Specified by:
getProtocol in interface X2cCommunicatorRMI_interface
Returns:
Protocol
Throws:
java.rmi.RemoteException

getScope

public IScopeRemote getScope()
                      throws java.rmi.RemoteException,
                             java.lang.Exception
Description copied from interface: X2cCommunicatorRMI_interface
Returns Scope.

Specified by:
getScope in interface X2cCommunicatorRMI_interface
Returns:
Scope
Throws:
java.rmi.RemoteException
java.lang.Exception

setModel

public void setModel(at.lcm.x2c.core.structure.Model newModel)
              throws java.lang.Exception
Description copied from interface: X2cCommunicatorRMI_interface
Sets Model.

Specified by:
setModel in interface X2cCommunicatorRMI_interface
Parameters:
newModel - Model
Throws:
java.lang.Exception

quit

@Deprecated
public void quit()
          throws java.rmi.RemoteException
Deprecated. 

Specified by:
quit in interface X2cCommunicatorRMI_interface
Throws:
java.rmi.RemoteException

isCommunicatorAlive

public boolean isCommunicatorAlive()
                            throws java.rmi.RemoteException
Method to test whether the Communicator is alive.

Specified by:
isCommunicatorAlive in interface X2cCommunicatorRMI_interface
Returns:
True
Throws:
java.rmi.RemoteException

disconnect

public void disconnect()
                throws java.rmi.RemoteException
Specified by:
disconnect in interface X2cCommunicatorRMI_interface
Throws:
java.rmi.RemoteException

shutdown

public void shutdown()

getCommunicator

public at.lcm.x2c.gui.communicator.Communicator getCommunicator()

addX2cRMIConnectionListener

public void addX2cRMIConnectionListener(X2cRMIConnectionListener listener)
                                 throws java.rmi.RemoteException
Specified by:
addX2cRMIConnectionListener in interface X2cCommunicatorRMI_interface
Throws:
java.rmi.RemoteException

removeX2cRMIConnectionListener

public void removeX2cRMIConnectionListener(X2cRMIConnectionListener listener)
                                    throws java.rmi.RemoteException
Specified by:
removeX2cRMIConnectionListener in interface X2cCommunicatorRMI_interface
Throws:
java.rmi.RemoteException

setConnectionName

public void setConnectionName(java.lang.String connectionName)

addX2cRMIModelListener

public void addX2cRMIModelListener(X2cRMIModelListener listener)
                            throws java.rmi.RemoteException
Specified by:
addX2cRMIModelListener in interface X2cCommunicatorRMI_interface
Throws:
java.rmi.RemoteException

removeX2cRMIModelListener

public void removeX2cRMIModelListener(X2cRMIModelListener listener)
                               throws java.rmi.RemoteException
Specified by:
removeX2cRMIModelListener in interface X2cCommunicatorRMI_interface
Throws:
java.rmi.RemoteException

notifyChangeBlockMaskParameter

public void notifyChangeBlockMaskParameter(X2cRMIModelBlockMaskParameterUpdateEvent event)
                                    throws java.rmi.RemoteException
Receive a notification about a parameter change from a remote client and update the local model.

Specified by:
notifyChangeBlockMaskParameter in interface X2cCommunicatorRMI_interface
Throws:
java.rmi.RemoteException

setLibrariesPath

public void setLibrariesPath(java.util.List<java.io.File> libPaths)
                      throws java.lang.Exception
Specified by:
setLibrariesPath in interface X2cCommunicatorRMI_interface
Throws:
java.lang.Exception


Copyright 2013 LCM. All rights reserved.