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
-
RoomBookingRole()
-
-
bookRoom(Appointment, RoomEquipment)
- Used for booking a room for a special appointment.
-
cancelRoom(Appointment)
- Used for canceling a room for given appointment.
-
destroy()
- unregister at rra channel.
-
init()
- register at rra channel.
RoomBookingRole
public RoomBookingRole()
init
public void init()
- register at rra channel.
- Overrides:
- init in class AgentRole
destroy
public void destroy()
- unregister at rra channel.
- Overrides:
- destroy in class AgentRole
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.
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