org.csapi.jr.se.dsc
Class ChargePerVolume

java.lang.Object
  |
  +--org.csapi.jr.se.dsc.ChargePerVolume
All Implemented Interfaces:
java.io.Serializable

public final class ChargePerVolume
extends java.lang.Object
implements java.io.Serializable

Defines the Sequence of Data Elements that specify the time based charging information. The volume is the sum of uplink and downlink transfer data volumes.

See Also:
Serialized Form

Constructor Summary
ChargePerVolume()
          Creates a new ChargePerVolume instance.
ChargePerVolume(int _initialCharge, int _currentChargePerKilobyte, int _nextChargePerKilobyte)
          Creates a new ChargePerVolume instance.
 
Method Summary
 boolean equals(java.lang.Object o)
          Indicates whether some other object is 'equal to' this one.
 int getCurrentChargePerKilobyte()
          This method returns a currentChargePerKilobyte.
 int getInitialCharge()
          This method returns a initialCharge.
 int getNextChargePerKilobyte()
          This method returns a nextChargePerKilobyte.
 int hashCode()
          Returns a hashcode value for the object.
 void setCurrentChargePerKilobyte(int currentChargePerKilobyte)
          This method sets a currentChargePerKilobyte.
 void setInitialCharge(int initialCharge)
          This method sets a initialCharge.
 void setNextChargePerKilobyte(int nextChargePerKilobyte)
          This method sets a nextChargePerKilobyte.
 
Methods inherited from class java.lang.Object
getClass, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ChargePerVolume

public ChargePerVolume()
Creates a new ChargePerVolume instance.


ChargePerVolume

public ChargePerVolume(int _initialCharge,
                       int _currentChargePerKilobyte,
                       int _nextChargePerKilobyte)
Creates a new ChargePerVolume instance.

Parameters:
_initialCharge - Initial charge amount (in currency units * 0.0001).
_currentChargePerKilobyte - Current tariff (in currency units * 0.0001).
_nextChargePerKilobyte - Next tariff (in currency units * 0.0001) after tariff switch. Only used in setAdviceOfCharge().
Method Detail

getInitialCharge

public int getInitialCharge()
This method returns a initialCharge.

Returns:
a int value

getCurrentChargePerKilobyte

public int getCurrentChargePerKilobyte()
This method returns a currentChargePerKilobyte.

Returns:
a int value

getNextChargePerKilobyte

public int getNextChargePerKilobyte()
This method returns a nextChargePerKilobyte.

Returns:
a int value

setInitialCharge

public void setInitialCharge(int initialCharge)
This method sets a initialCharge.


setCurrentChargePerKilobyte

public void setCurrentChargePerKilobyte(int currentChargePerKilobyte)
This method sets a currentChargePerKilobyte.


setNextChargePerKilobyte

public void setNextChargePerKilobyte(int nextChargePerKilobyte)
This method sets a nextChargePerKilobyte.


equals

public boolean equals(java.lang.Object o)
Indicates whether some other object is 'equal to' this one.

Overrides:
equals in class java.lang.Object

hashCode

public int hashCode()
Returns a hashcode value for the object.

Overrides:
hashCode in class java.lang.Object