All Packages  Class Hierarchy  This Package  Previous  Next  Index

Class cia.agent.rra.RoomBookingRole

java.lang.Object
   |
   +----cia.agent.AgentRole
           |
           +----cia.agent.rra.RoomBookingRole

public class RoomBookingRole
extends AgentRole
See Also:
RoomReservationAgent

Constructor Index

 o RoomBookingRole()

Method Index

 o bookRoom(Appointment, RoomEquipment)
Used for booking a room for a special appointment.
 o cancelRoom(Appointment)
Used for canceling a room for given appointment.
 o destroy()
unregister at rra channel.
 o init()
register at rra channel.

Constructors

 o RoomBookingRole
 public RoomBookingRole()

Methods

 o init
 public void init()
register at rra channel.

Overrides:
init in class AgentRole
 o destroy
 public void destroy()
unregister at rra channel.

Overrides:
destroy in class AgentRole
 o bookRoom
 public RoomURL bookRoom(Appointment date,
                         RoomEquipment equipment)
Used for booking a room for a special appointment. Therefore the first room of the search-domain fullfilling all requirements is selected.

Parameters:
equipment - the requirements to the room. date the date for which a room is searched for.
Returns:
a special RoomURL in case of success, null otherwise.
 o cancelRoom
 public void cancelRoom(Appointment date)
Used for canceling a room for given appointment.

Parameters:
date - the appointment which is to be canceled.

All Packages  Class Hierarchy  This Package  Previous  Next  Index