public interface ChargingInstance
Modifier and Type | Interface and Description |
---|---|
static class |
ChargingInstance.ChargingType
Identifies the type of the Charging: reserved or immediate charging.
|
static class |
ChargingInstance.Instruction
Type of charging instructions.
|
static class |
ChargingInstance.State
Represents the current state of a ChargingInstance, an instance is in the
Initial state prior to processing CCA-I, Mid state after processing CCA-I
and Final state after credit finalisation is instructed.
|
Modifier and Type | Method and Description |
---|---|
void |
clearInstruction()
Clears any pending charging instruction
|
ChargingInstance.State |
getChargingState()
The current state of charging instance
|
ChargingInstance.ChargingType |
getChargingType()
The type of charging instance
|
java.lang.String |
getName()
Returns the name assigned to the charging instance, must be unique for the Charging manager instance.
|
ChargingInstance.Instruction |
getPendingChargingInstruction()
Determine if this charging instance has any pending charging instruction.
|
ReportingReason |
getPendingReportingReason()
Determine if this charging instance has any pending reporting reason.
|
SessionCounters |
getSessionCounters()
SessionCounters for the charging instance.
|
boolean |
isCreditCheckInProgress()
Indicates whether or not there is a credit check currently in progress.
|
boolean |
isSuspended()
Returns true iff this ChargingInstance is currently suspended.
|
void |
resume(boolean autoUpdateCounters)
On calling resume all session counters associated with this charging instance will have the cumulativeSuspendedDuration
field updated if autoUpdateCounters is true.
|
void |
suspend()
The SuspensionStartTime field for all counters in this instance will be set to the current time.
|
java.lang.String getName()
ChargingInstance.ChargingType getChargingType()
ChargingInstance.State getChargingState()
SessionCounters getSessionCounters()
ChargingInstance.Instruction getPendingChargingInstruction()
ReportingReason getPendingReportingReason()
void clearInstruction()
void suspend()
void resume(boolean autoUpdateCounters)
autoUpdateCounters
- false if intending to manually update cumulativeSuspendedDuration, true for automatic updating of cumulativeSuspendedDuration
in all associated session countersboolean isSuspended()
boolean isCreditCheckInProgress()
Copyright © OpenCloud. All Rights Reserved.