phonebill.phonelog
Class PhonePriceRule

java.lang.Object
  |
  +--phonebill.phonelog.PhonePriceRule

class PhonePriceRule
extends java.lang.Object

This class defines a single rule for phone call pricing.


Field Summary
 int day
           
 double discount
           
static java.lang.String header
           
 int msecs
           
 int msecsDiscount
           
 double price
           
 
Constructor Summary
PhonePriceRule(int day, int msecs, double price)
           
PhonePriceRule(int day, int msecs, double price, int msecsDiscount, double discount)
           
 
Method Summary
 java.lang.String toString()
           
 
Methods inherited from class java.lang.Object
, clone, equals, finalize, getClass, hashCode, notify, notifyAll, registerNatives, wait, wait, wait
 

Field Detail

header

public static final java.lang.String header

day

public final int day

msecs

public final int msecs

price

public final double price

msecsDiscount

public final int msecsDiscount

discount

public final double discount
Constructor Detail

PhonePriceRule

public PhonePriceRule(int day,
                      int msecs,
                      double price,
                      int msecsDiscount,
                      double discount)

PhonePriceRule

public PhonePriceRule(int day,
                      int msecs,
                      double price)
Method Detail

toString

public java.lang.String toString()
Overrides:
toString in class java.lang.Object