Class User

java.lang.Object
  |
  +--java.rmi.server.RemoteObject
        |
        +--java.rmi.server.RemoteServer
              |
              +--java.rmi.server.UnicastRemoteObject
                    |
                    +--User
All Implemented Interfaces:
java.rmi.Remote, java.io.Serializable, UserInterface

public class User
extends java.rmi.server.UnicastRemoteObject
implements UserInterface

Users are able to create and destroy meeting places(it has created).

See Also:
Serialized Form

Fields inherited from class java.rmi.server.RemoteObject
ref
 
Constructor Summary
User(UserGUI userGUI)
          Construcor of a new User.
 
Method Summary
 boolean createMP(java.lang.String s)
          Creates a new meeting place.
 boolean destroyMP(int i)
          Destroys a meeting place.
 java.util.Vector exploreInformationCenter()
          Explore the information center in order to get information about existing meeting places.
 java.lang.String getID()
          Returns the users ID.
 MeetingPlaceInterface getmpi(int i)
          Returns the MeetingPlace in list at nr (i).
 boolean notifyUser(java.lang.String s)
          Notifyes the user.
 boolean registerAtMP(int i)
          Register at a meeting place(enter).
 boolean unregisterAtMP()
          Unregister at a meeting place(leave).
 
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

User

public User(UserGUI userGUI)
     throws java.rmi.RemoteException
Construcor of a new User.
Parameters:
name - the Users name.
Method Detail

createMP

public boolean createMP(java.lang.String s)
Creates a new meeting place.
Returns:
true if succeded, false if not.

destroyMP

public boolean destroyMP(int i)
Destroys a meeting place.
Returns:
true if succeded, false if not.

registerAtMP

public boolean registerAtMP(int i)
Register at a meeting place(enter).

unregisterAtMP

public boolean unregisterAtMP()
Unregister at a meeting place(leave).

getmpi

public MeetingPlaceInterface getmpi(int i)
Returns the MeetingPlace in list at nr (i).
Returns:
the Meetingplace at place i.

getID

public java.lang.String getID()
Returns the users ID.
Specified by:
getID in interface UserInterface
Returns:
the users ID.

notifyUser

public boolean notifyUser(java.lang.String s)
Notifyes the user.
Specified by:
notifyUser in interface UserInterface

exploreInformationCenter

public java.util.Vector exploreInformationCenter()
Explore the information center in order to get information about existing meeting places.