org.csapi.jr.se.cs
Class CreditUnitResEvent

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

public final class CreditUnitResEvent
extends java.util.EventObject

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

See Also:
Serialized Form

Field Summary
 
Fields inherited from class java.util.EventObject
source
 
Constructor Summary
CreditUnitResEvent(java.lang.Object source, Volume[] creditedVolumes, Volume[] reservedUnitsLeft)
          Constructor for the CreditUnitResEvent Event.
 
Method Summary
 Volume[] getCreditedVolumes()
          This method is used to retrieve the parameter value of 'creditedVolumes' passed up from the Gateway in it's call to the creditUnitRes() method, used on the creation of this event.
 Volume[] getReservedUnitsLeft()
          This method is used to retrieve the parameter value of 'reservedUnitsLeft' passed up from the Gateway in it's call to the creditUnitRes() 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

CreditUnitResEvent

public CreditUnitResEvent(java.lang.Object source,
                          Volume[] creditedVolumes,
                          Volume[] reservedUnitsLeft)
Constructor for the CreditUnitResEvent Event.

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

getCreditedVolumes

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

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

getReservedUnitsLeft

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

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