cad.simcad.cac.network
Class RMINetworkAcceptor_Stub

java.lang.Object
  |
  +--java.rmi.server.RemoteObject
        |
        +--java.rmi.server.RemoteStub
              |
              +--cad.simcad.cac.network.RMINetworkAcceptor_Stub
All Implemented Interfaces:
NetworkAcceptor, java.rmi.Remote, java.io.Serializable

public final class RMINetworkAcceptor_Stub
extends java.rmi.server.RemoteStub
implements NetworkAcceptor, java.rmi.Remote

See Also:
Serialized Form

Field Summary
 
Fields inherited from class java.rmi.server.RemoteObject
ref
 
Constructor Summary
RMINetworkAcceptor_Stub()
           
RMINetworkAcceptor_Stub(java.rmi.server.RemoteRef ref)
           
 
Method Summary
 boolean acceptConnection(CADConnection $param_CADConnection_1)
          Method for accepting connections
 void closeConnection(CADConnection $param_CADConnection_1)
          Close a connection.
 void recieveData(FieldSet $param_FieldSet_1)
          Method for recieving data from a NetworkConnector
 EmergencyVehicule registerNewEmergencyVehicle()
          Ask to CAC to register a new EmergencyVehicle in its Persistent Data storage returns the newly create EmergencyVehicule
 void updateWorldMap(AbstractMap $param_AbstractMap_1)
          Update the Map ued by the Main Server.
 
Methods inherited from class java.rmi.server.RemoteStub
setRef
 
Methods inherited from class java.rmi.server.RemoteObject
equals, getRef, hashCode, toString, toStub
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Constructor Detail

RMINetworkAcceptor_Stub

public RMINetworkAcceptor_Stub()

RMINetworkAcceptor_Stub

public RMINetworkAcceptor_Stub(java.rmi.server.RemoteRef ref)
Method Detail

acceptConnection

public boolean acceptConnection(CADConnection $param_CADConnection_1)
                         throws java.rmi.RemoteException
Description copied from interface: NetworkAcceptor
Method for accepting connections

Specified by:
acceptConnection in interface NetworkAcceptor
Returns:
true if connection is accepted false if connection is not accepted
java.rmi.RemoteException

closeConnection

public void closeConnection(CADConnection $param_CADConnection_1)
                     throws java.rmi.RemoteException
Description copied from interface: NetworkAcceptor
Close a connection. Dump it

Specified by:
closeConnection in interface NetworkAcceptor
Parameters:
$param_CADConnection_1 - a CADConnection object
java.rmi.RemoteException

recieveData

public void recieveData(FieldSet $param_FieldSet_1)
                 throws java.rmi.RemoteException
Description copied from interface: NetworkAcceptor
Method for recieving data from a NetworkConnector

Specified by:
recieveData in interface NetworkAcceptor
java.rmi.RemoteException

registerNewEmergencyVehicle

public EmergencyVehicule registerNewEmergencyVehicle()
                                              throws PersistentDataException,
                                                     java.rmi.RemoteException
Description copied from interface: NetworkAcceptor
Ask to CAC to register a new EmergencyVehicle in its Persistent Data storage returns the newly create EmergencyVehicule

Specified by:
registerNewEmergencyVehicle in interface NetworkAcceptor
PersistentDataException
java.rmi.RemoteException

updateWorldMap

public void updateWorldMap(AbstractMap $param_AbstractMap_1)
                    throws java.rmi.RemoteException
Description copied from interface: NetworkAcceptor
Update the Map ued by the Main Server. For example if a new road has been built

Specified by:
updateWorldMap in interface NetworkAcceptor
java.rmi.RemoteException

Logo

With the help of www.sourceforge.net and www.info.ucl.ac.be