org.csapi.jr.se.cs
Class ReserveAmountResEvent

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

public final class ReserveAmountResEvent
extends java.util.EventObject

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

See Also:
Serialized Form

Field Summary
 
Fields inherited from class java.util.EventObject
source
 
Constructor Summary
ReserveAmountResEvent(java.lang.Object source, ChargingPrice reservedAmount, int sessionTimeLeft)
          Constructor for the ReserveAmountResEvent Event.
 
Method Summary
 ChargingPrice getReservedAmount()
          This method is used to retrieve the parameter value of 'reservedAmount' passed up from the Gateway in it's call to the reserveAmountRes() 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 reserveAmountRes() 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

ReserveAmountResEvent

public ReserveAmountResEvent(java.lang.Object source,
                             ChargingPrice reservedAmount,
                             int sessionTimeLeft)
Constructor for the ReserveAmountResEvent Event.

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

getReservedAmount

public ChargingPrice getReservedAmount()
This method is used to retrieve the parameter value of 'reservedAmount' passed up from the Gateway in it's call to the reserveAmountRes() method, used on the creation of this event.

Returns:
The value of 'reservedAmount' 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 reserveAmountRes() method, used on the creation of this event.

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