Fairness.Publishers
Class BitForBitPublisher

java.lang.Object
  extended by Fairness.Publishers.Publisher
      extended by Fairness.Publishers.BitForBitPublisher

public class BitForBitPublisher
extends Publisher

BitForBitPublisher implements a publisher that sets the tax equal to the income (the standard SplitStream approach).

This class is not used in the current implementation as taxation was not implemented.


Constructor Summary
BitForBitPublisher(int availableStripes)
          Constructs a BitForBitPublisher.
 
Method Summary
protected  int getTaxImpl(int r)
          Implements precisely the getTax method, except that the child class can assume the preconditions on r have been checked.
 
Methods inherited from class Fairness.Publishers.Publisher
getAvailableStripes, getTax
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

BitForBitPublisher

public BitForBitPublisher(int availableStripes)
Constructs a BitForBitPublisher.

Parameters:
availableStripes - number of stripes the content is broken up into
Method Detail

getTaxImpl

protected int getTaxImpl(int r)
Implements precisely the getTax method, except that the child class can assume the preconditions on r have been checked.

Specified by:
getTaxImpl in class Publisher
See Also:
Publisher.getTax(int)