|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectedu.cuny.cat.market.AuctioneerPolicy
edu.cuny.cat.market.accepting.ShoutAcceptingPolicy
edu.cuny.cat.market.accepting.SelfBeatingAcceptingPolicy
public class SelfBeatingAcceptingPolicy
An accepting policy with which a new shout must beat its trader's standing shout to be acceptable.
| Field Summary |
|---|
| Fields inherited from class edu.cuny.cat.market.accepting.ShoutAcceptingPolicy |
|---|
P_DEF_BASE |
| Fields inherited from class edu.cuny.cat.market.AuctioneerPolicy |
|---|
auctioneer |
| Constructor Summary | |
|---|---|
SelfBeatingAcceptingPolicy()
|
|
| Method Summary | |
|---|---|
void |
check(Shout oldShout,
Shout newShout)
implements the rule that a new shout must improve over its old peer. |
| Methods inherited from class edu.cuny.cat.market.AuctioneerPolicy |
|---|
eventOccurred, getAuctioneer, initialize, reset, setAuctioneer, setup, toString |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public SelfBeatingAcceptingPolicy()
| Method Detail |
|---|
public void check(Shout oldShout,
Shout newShout)
throws IllegalShoutException
check in class ShoutAcceptingPolicyoldShout - the shout to be replaced; if null, no shout is replaced.newShout - the new shout to replace the old one
IllegalShoutExceptionShoutAcceptingPolicy.check(edu.cuny.cat.core.Shout,
edu.cuny.cat.core.Shout)
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||