|
|||||||||
| 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.CombiAcceptingPolicy
edu.cuny.cat.market.accepting.TighterCombiAcceptingPolicy
public class TighterCombiAcceptingPolicy
A compound accepting policy that will only accept a shout if and only if all its sub accepting policies accept the shout.
| Field Summary |
|---|
| Fields inherited from class edu.cuny.cat.market.accepting.CombiAcceptingPolicy |
|---|
P_DEF_BASE, P_NUM, policies |
| Fields inherited from class edu.cuny.cat.market.AuctioneerPolicy |
|---|
auctioneer |
| Constructor Summary | |
|---|---|
TighterCombiAcceptingPolicy()
|
|
| Method Summary | |
|---|---|
void |
check(Shout oldShout,
Shout newShout)
checks whether newShout is acceptable or not to replace
oldShout. |
| Methods inherited from class edu.cuny.cat.market.accepting.CombiAcceptingPolicy |
|---|
addPolicy, eventOccurred, getPolicy, policyIterator, reset, setAuctioneer, setup, toString |
| Methods inherited from class edu.cuny.cat.market.AuctioneerPolicy |
|---|
getAuctioneer, initialize |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public TighterCombiAcceptingPolicy()
| Method Detail |
|---|
public void check(Shout oldShout,
Shout newShout)
throws IllegalShoutException
ShoutAcceptingPolicynewShout is acceptable or not to replace
oldShout. If not, an IllegalShoutException is thrown.
check in class ShoutAcceptingPolicyoldShout - the shout to be replaced; if null, no shout is replaced.newShout - the new shout to replace the old one
IllegalShoutException
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||