org.csapi.jr.se.cs
Interface ChargingSession

All Superinterfaces:
CsapiInterface, java.io.Serializable, Service

public interface ChargingSession
extends Service

This interface represents a ChargingSession.


Field Summary
 
Fields inherited from interface org.csapi.jr.se.Service
IN_SERVICE_STATE, OUT_OF_SERVICE_STATE
 
Method Summary
 void addChargingSessionListener(org.csapi.jr.se.cs.ChargingSessionListener chargingSessionListener)
          Adds a ChargingSessionListener which is interested in events generated by the ChargingSession.
 void creditAmountReq(org.csapi.jr.se.cs.ApplicationDescription applicationDescription, org.csapi.jr.se.cs.ChargingPrice amount, boolean closeReservation)
          Invokes the creditAmountReq() method on the Parlay Gateway.
 void creditUnitReq(org.csapi.jr.se.cs.ApplicationDescription applicationDescription, org.csapi.jr.se.cs.Volume[] volumes, boolean closeReservation)
          Invokes the creditUnitReq() method on the Parlay Gateway.
 void debitAmountReq(org.csapi.jr.se.cs.ApplicationDescription applicationDescription, org.csapi.jr.se.cs.ChargingPrice amount, boolean closeReservation)
          Invokes the debitAmountReq() method on the Parlay Gateway.
 void debitUnitReq(org.csapi.jr.se.cs.ApplicationDescription applicationDescription, org.csapi.jr.se.cs.Volume[] volumes, boolean closeReservation)
          Invokes the debitUnitReq() method on the Parlay Gateway.
 void directCreditAmountReq(org.csapi.jr.se.cs.ApplicationDescription applicationDescription, org.csapi.jr.se.cs.ChargingParameter[] chargingParameters, org.csapi.jr.se.cs.ChargingPrice amount)
          Invokes the directCreditAmountReq() method on the Parlay Gateway.
 void directCreditUnitReq(org.csapi.jr.se.cs.ApplicationDescription applicationDescription, org.csapi.jr.se.cs.ChargingParameter[] chargingParameters, org.csapi.jr.se.cs.Volume[] volumes)
          Invokes the directCreditUnitReq() method on the Parlay Gateway.
 void directDebitAmountReq(org.csapi.jr.se.cs.ApplicationDescription applicationDescription, org.csapi.jr.se.cs.ChargingParameter[] chargingParameters, org.csapi.jr.se.cs.ChargingPrice amount)
          Invokes the directDebitAmountReq() method on the Parlay Gateway.
 void directDebitUnitReq(org.csapi.jr.se.cs.ApplicationDescription applicationDescription, org.csapi.jr.se.cs.ChargingParameter[] chargingParameters, org.csapi.jr.se.cs.Volume[] volumes)
          Invokes the directDebitUnitReq() method on the Parlay Gateway.
 void extendLifeTimeReq()
          Invokes the extendLifeTimeReq() method on the Parlay Gateway.
 org.csapi.jr.se.cs.ChargingPrice getAmountLeft()
          Invokes the getAmountLeft() method on the Parlay Gateway.
 org.csapi.jr.se.cs.ChargingManager getChargingManager()
          Returns a reference to the ChargingManager responsible for creation of the ChargingSession.
 int getLifeTimeLeft()
          Invokes the getLifeTimeLeft() method on the Parlay Gateway.
 org.csapi.jr.se.cs.Volume[] getUnitLeft()
          Invokes the getUnitLeft() method on the Parlay Gateway.
 void rateReq(org.csapi.jr.se.cs.ChargingParameter[] chargingParameters)
          Invokes the rateReq() method on the Parlay Gateway.
 void release()
          Invokes the release() method on the Parlay Gateway.
 void removeChargingSessionListener(org.csapi.jr.se.cs.ChargingSessionListener chargingSessionListener)
          Removes a ChargingSessionListener which is no longer interested in events generated by the ChargingSession.
 void reserveAmountReq(org.csapi.jr.se.cs.ApplicationDescription applicationDescription, org.csapi.jr.se.cs.ChargingParameter[] chargingParameters, org.csapi.jr.se.cs.ChargingPrice preferredAmount, org.csapi.jr.se.cs.ChargingPrice minimumAmount)
          Invokes the reserveAmountReq() method on the Parlay Gateway.
 void reserveUnitReq(org.csapi.jr.se.cs.ApplicationDescription applicationDescription, org.csapi.jr.se.cs.ChargingParameter[] chargingParameters, org.csapi.jr.se.cs.Volume[] volumes)
          Invokes the reserveUnitReq() method on the Parlay Gateway.
 
Methods inherited from interface org.csapi.jr.se.Service
addServiceStateChangeListener, getServiceState, removeServiceStateChangeListener, setCallback
 

Method Detail

addChargingSessionListener

public void addChargingSessionListener(org.csapi.jr.se.cs.ChargingSessionListener chargingSessionListener)
Adds a ChargingSessionListener which is interested in events generated by the ChargingSession.

Parameters:
chargingSessionListener - A reference to the ChargingSessionListener which is to be added as a listener.

removeChargingSessionListener

public void removeChargingSessionListener(org.csapi.jr.se.cs.ChargingSessionListener chargingSessionListener)
Removes a ChargingSessionListener which is no longer interested in events generated by the ChargingSession.

Parameters:
chargingSessionListener - A reference to the ChargingSessionListener which is to be removed as a listener.

getChargingManager

public org.csapi.jr.se.cs.ChargingManager getChargingManager()
Returns a reference to the ChargingManager responsible for creation of the ChargingSession.

Returns:
A reference to the ChargingManager responsible for creation of the ChargingSession.

creditAmountReq

public void creditAmountReq(org.csapi.jr.se.cs.ApplicationDescription applicationDescription,
                            org.csapi.jr.se.cs.ChargingPrice amount,
                            boolean closeReservation)
                     throws PlatformException,
                            CommonException,
                            InvalidAmountException,
                            InvalidCurrencyException,
                            InvalidRequestNumberException
Invokes the creditAmountReq() method on the Parlay Gateway.

PlatformException
CommonException
InvalidAmountException
InvalidCurrencyException
InvalidRequestNumberException

creditUnitReq

public void creditUnitReq(org.csapi.jr.se.cs.ApplicationDescription applicationDescription,
                          org.csapi.jr.se.cs.Volume[] volumes,
                          boolean closeReservation)
                   throws PlatformException,
                          CommonException,
                          InvalidVolumeException,
                          InvalidRequestNumberException
Invokes the creditUnitReq() method on the Parlay Gateway.

PlatformException
CommonException
InvalidVolumeException
InvalidRequestNumberException

debitAmountReq

public void debitAmountReq(org.csapi.jr.se.cs.ApplicationDescription applicationDescription,
                           org.csapi.jr.se.cs.ChargingPrice amount,
                           boolean closeReservation)
                    throws PlatformException,
                           CommonException,
                           InvalidAmountException,
                           InvalidCurrencyException,
                           InvalidRequestNumberException
Invokes the debitAmountReq() method on the Parlay Gateway.

PlatformException
CommonException
InvalidAmountException
InvalidCurrencyException
InvalidRequestNumberException

debitUnitReq

public void debitUnitReq(org.csapi.jr.se.cs.ApplicationDescription applicationDescription,
                         org.csapi.jr.se.cs.Volume[] volumes,
                         boolean closeReservation)
                  throws PlatformException,
                         CommonException,
                         InvalidVolumeException,
                         InvalidRequestNumberException
Invokes the debitUnitReq() method on the Parlay Gateway.

PlatformException
CommonException
InvalidVolumeException
InvalidRequestNumberException

directCreditAmountReq

public void directCreditAmountReq(org.csapi.jr.se.cs.ApplicationDescription applicationDescription,
                                  org.csapi.jr.se.cs.ChargingParameter[] chargingParameters,
                                  org.csapi.jr.se.cs.ChargingPrice amount)
                           throws PlatformException,
                                  CommonException,
                                  InvalidAmountException,
                                  InvalidCurrencyException,
                                  InvalidRequestNumberException
Invokes the directCreditAmountReq() method on the Parlay Gateway.

PlatformException
CommonException
InvalidAmountException
InvalidCurrencyException
InvalidRequestNumberException

directCreditUnitReq

public void directCreditUnitReq(org.csapi.jr.se.cs.ApplicationDescription applicationDescription,
                                org.csapi.jr.se.cs.ChargingParameter[] chargingParameters,
                                org.csapi.jr.se.cs.Volume[] volumes)
                         throws PlatformException,
                                CommonException,
                                InvalidVolumeException,
                                InvalidRequestNumberException
Invokes the directCreditUnitReq() method on the Parlay Gateway.

PlatformException
CommonException
InvalidVolumeException
InvalidRequestNumberException

directDebitAmountReq

public void directDebitAmountReq(org.csapi.jr.se.cs.ApplicationDescription applicationDescription,
                                 org.csapi.jr.se.cs.ChargingParameter[] chargingParameters,
                                 org.csapi.jr.se.cs.ChargingPrice amount)
                          throws PlatformException,
                                 CommonException,
                                 InvalidAmountException,
                                 InvalidCurrencyException,
                                 InvalidRequestNumberException
Invokes the directDebitAmountReq() method on the Parlay Gateway.

PlatformException
CommonException
InvalidAmountException
InvalidCurrencyException
InvalidRequestNumberException

directDebitUnitReq

public void directDebitUnitReq(org.csapi.jr.se.cs.ApplicationDescription applicationDescription,
                               org.csapi.jr.se.cs.ChargingParameter[] chargingParameters,
                               org.csapi.jr.se.cs.Volume[] volumes)
                        throws PlatformException,
                               CommonException,
                               InvalidVolumeException,
                               InvalidRequestNumberException
Invokes the directDebitUnitReq() method on the Parlay Gateway.

PlatformException
CommonException
InvalidVolumeException
InvalidRequestNumberException

extendLifeTimeReq

public void extendLifeTimeReq()
                       throws PlatformException,
                              CommonException
Invokes the extendLifeTimeReq() method on the Parlay Gateway.

PlatformException
CommonException

getAmountLeft

public org.csapi.jr.se.cs.ChargingPrice getAmountLeft()
                                               throws PlatformException,
                                                      CommonException
Invokes the getAmountLeft() method on the Parlay Gateway.

PlatformException
CommonException

getLifeTimeLeft

public int getLifeTimeLeft()
                    throws PlatformException,
                           CommonException
Invokes the getLifeTimeLeft() method on the Parlay Gateway.

PlatformException
CommonException

getUnitLeft

public org.csapi.jr.se.cs.Volume[] getUnitLeft()
                                        throws PlatformException,
                                               CommonException
Invokes the getUnitLeft() method on the Parlay Gateway.

PlatformException
CommonException

rateReq

public void rateReq(org.csapi.jr.se.cs.ChargingParameter[] chargingParameters)
             throws PlatformException,
                    CommonException
Invokes the rateReq() method on the Parlay Gateway.

PlatformException
CommonException

release

public void release()
             throws PlatformException,
                    CommonException,
                    InvalidRequestNumberException
Invokes the release() method on the Parlay Gateway.

PlatformException
CommonException
InvalidRequestNumberException

reserveAmountReq

public void reserveAmountReq(org.csapi.jr.se.cs.ApplicationDescription applicationDescription,
                             org.csapi.jr.se.cs.ChargingParameter[] chargingParameters,
                             org.csapi.jr.se.cs.ChargingPrice preferredAmount,
                             org.csapi.jr.se.cs.ChargingPrice minimumAmount)
                      throws PlatformException,
                             CommonException,
                             InvalidAmountException,
                             InvalidCurrencyException,
                             InvalidRequestNumberException
Invokes the reserveAmountReq() method on the Parlay Gateway.

PlatformException
CommonException
InvalidAmountException
InvalidCurrencyException
InvalidRequestNumberException

reserveUnitReq

public void reserveUnitReq(org.csapi.jr.se.cs.ApplicationDescription applicationDescription,
                           org.csapi.jr.se.cs.ChargingParameter[] chargingParameters,
                           org.csapi.jr.se.cs.Volume[] volumes)
                    throws PlatformException,
                           CommonException,
                           InvalidVolumeException,
                           InvalidRequestNumberException
Invokes the reserveUnitReq() method on the Parlay Gateway.

PlatformException
CommonException
InvalidVolumeException
InvalidRequestNumberException