org.csapi.jr.se.cs
Class ReserveAmountResEvent
java.lang.Object
java.util.EventObject
org.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
| Fields inherited from class java.util.EventObject |
source |
|
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 |
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.
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.