Class MeetingPlace

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

public class MeetingPlace
extends java.rmi.server.UnicastRemoteObject
implements MeetingPlaceInterface

A meeting place, created and destroyed by User.

See Also:
Serialized Form

Fields inherited from class java.rmi.server.RemoteObject
ref
 
Constructor Summary
MeetingPlace(UserInterface creator, InformationCenterInterface ici, java.lang.String name)
          Constructor of a new meeting place.
 
Method Summary
 boolean delItem(ItemInterface item)
          Removes an Item.
 java.lang.String getName()
          Return the name of the meetingplace.
 boolean register()
          Register this at the information center.
 boolean registerUser(UserInterface user)
          Register a User at this.
 java.util.Vector showItemList()
          Shows the list of stored items.
 boolean storeItem(ItemInterface item)
          Stores an Item.
 boolean unregister(UserInterface usr)
          Unregister this at the information center.
 boolean unregisterUser(UserInterface user)
          Unregister a User at this.
 
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

MeetingPlace

public MeetingPlace(UserInterface creator,
                    InformationCenterInterface ici,
                    java.lang.String name)
             throws java.rmi.RemoteException
Constructor of a new meeting place.
Parameters:
creator - the User who creates the meeting place.
ici - the InformationCenterInterface.
Name - the name of the MeetingPlace.
Method Detail

register

public boolean register()
Register this at the information center.
Specified by:
register in interface MeetingPlaceInterface

unregister

public boolean unregister(UserInterface usr)
Unregister this at the information center.
Specified by:
unregister in interface MeetingPlaceInterface

registerUser

public boolean registerUser(UserInterface user)
Register a User at this.
Specified by:
registerUser in interface MeetingPlaceInterface
Parameters:
user - the User to register.

unregisterUser

public boolean unregisterUser(UserInterface user)
Unregister a User at this.
Specified by:
unregisterUser in interface MeetingPlaceInterface
Parameters:
user - the User to unregister.

showItemList

public java.util.Vector showItemList()
Shows the list of stored items.
Specified by:
showItemList in interface MeetingPlaceInterface
Returns:
the Item vector.

storeItem

public boolean storeItem(ItemInterface item)
Stores an Item.
Specified by:
storeItem in interface MeetingPlaceInterface
Parameters:
item - the Item to store.

delItem

public boolean delItem(ItemInterface item)
Removes an Item.
Specified by:
delItem in interface MeetingPlaceInterface
Parameters:
item - the item to remove.

getName

public java.lang.String getName()
Return the name of the meetingplace.
Specified by:
getName in interface MeetingPlaceInterface
Returns:
the name of the meetingplace.