org.csapi.jr.se.cs
Class ReserveUnitResEvent

java.lang.Object
  extended byjava.util.EventObject
      extended byorg.csapi.jr.se.cs.ReserveUnitResEvent
All Implemented Interfaces:
java.io.Serializable

public final class ReserveUnitResEvent
extends java.util.EventObject

Event created by an activity object to indicate that a Gateway originated call to the reserveUnitRes() method on the callback interface has occurred.

See Also:
Serialized Form

Field Summary
 
Fields inherited from class java.util.EventObject
source
 
Constructor Summary
ReserveUnitResEvent(java.lang.Object source, Volume[] reservedUnits, int sessionTimeLeft)
          Constructor for the ReserveUnitResEvent Event.
 
Method Summary
 Volume[] getReservedUnits()
          This method is used to retrieve the parameter value of 'reservedUnits' passed up from the Gateway in it's call to the reserveUnitRes() method, used on the creation of this event.
 int getSessionTimeLeft()
          This method is used to retrieve the parameter value of 'sessionTimeLeft' passed up from the Gateway in it's call to the reserveUnitRes() method, used on the creation of this event.
 
Methods inherited from class java.util.EventObject
getSource, toString
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

ReserveUnitResEvent

public ReserveUnitResEvent(java.lang.Object source,
                           Volume[] reservedUnits,
                           int sessionTimeLeft)
Constructor for the ReserveUnitResEvent Event.

Parameters:
source - Reference to the object firing the event.
Method Detail

getReservedUnits

public Volume[] getReservedUnits()
This method is used to retrieve the parameter value of 'reservedUnits' passed up from the Gateway in it's call to the reserveUnitRes() method, used on the creation of this event.

Returns:
The value of 'reservedUnits' used on creation of this event.

getSessionTimeLeft

public int getSessionTimeLeft()
This method is used to retrieve the parameter value of 'sessionTimeLeft' passed up from the Gateway in it's call to the reserveUnitRes() method, used on the creation of this event.

Returns:
The value of 'sessionTimeLeft' used on creation of this event.