|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.ObjectFairness.Publishers.Publisher
Fairness.Publishers.BitForBitPublisher
public class BitForBitPublisher
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 |
---|
public BitForBitPublisher(int availableStripes)
availableStripes
- number of stripes the content is broken up intoMethod Detail |
---|
protected int getTaxImpl(int r)
getTaxImpl
in class Publisher
Publisher.getTax(int)
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |