org.cb.jset.server
Class JSetRemoteGameImpl

java.lang.Object
  extended byjava.rmi.server.RemoteObject
      extended byjava.rmi.server.RemoteServer
          extended byjava.rmi.server.UnicastRemoteObject
              extended byorg.cb.jset.server.JSetRemoteGameImpl
All Implemented Interfaces:
java.rmi.Remote, RemoteSetGame, java.io.Serializable

public class JSetRemoteGameImpl
extends java.rmi.server.UnicastRemoteObject
implements RemoteSetGame

An implementation of a remote Game.

Contains several inner classes that act as wrappers, allowing to transparently use remote implementations locally.

Version:
$Id: JSetRemoteGameImpl.java 130 2004-04-15 05:18:07Z jerome $
Author:
jerome@coffeebreaks.org - last modified by $LastChangedBy: jerome $
See Also:
Serialized Form

Field Summary
 
Fields inherited from class java.rmi.server.RemoteObject
ref
 
Method Summary
 RemoteSetGameConnection connect(RemoteSetGamePlayer player)
           
 int getCurrentNbPlayers()
           
 int getID()
           
 int getMaxNbPlayers()
           
 java.lang.String getName()
           
 
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
 

Method Detail

getName

public java.lang.String getName()
                         throws java.rmi.RemoteException
Specified by:
getName in interface RemoteSetGame
Returns:
the game name
Throws:
java.rmi.RemoteException - upon communication related exception on this remote call
See Also:
SetGame.getName()

getCurrentNbPlayers

public int getCurrentNbPlayers()
                        throws java.rmi.RemoteException
Specified by:
getCurrentNbPlayers in interface RemoteSetGame
Returns:
the current number of players
Throws:
java.rmi.RemoteException - upon communication related exception on this remote call
See Also:
SetGame.getCurrentNbPlayers()

getMaxNbPlayers

public int getMaxNbPlayers()
                    throws java.rmi.RemoteException
Specified by:
getMaxNbPlayers in interface RemoteSetGame
Returns:
the max number of players
Throws:
java.rmi.RemoteException - upon communication related exception on this remote call
See Also:
SetGame.getMaxNbPlayers()

connect

public RemoteSetGameConnection connect(RemoteSetGamePlayer player)
                                throws java.rmi.RemoteException
Specified by:
connect in interface RemoteSetGame
Parameters:
player - the remote player
Returns:
the remote game connection
Throws:
java.rmi.RemoteException - upon communication related exception on this remote call
See Also:
SetGame.connect(org.cb.jset.SetGamePlayer)

getID

public int getID()
          throws java.rmi.RemoteException
Specified by:
getID in interface RemoteSetGame
Returns:
the game id
Throws:
java.rmi.RemoteException - upon communication related exception on this remote call
See Also:
SetGame.getID()


Copyright © 2004 CoffeeBreaks. All Rights Reserved.