| 
|||||||||
| 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
public abstract class ShoutAcceptingPolicy
A shout-accepting policy determines whether a shout should be accepted or not.
Default Base
| accepting | 
| Field Summary | |
|---|---|
static java.lang.String | 
P_DEF_BASE
 | 
| Fields inherited from class edu.cuny.cat.market.AuctioneerPolicy | 
|---|
auctioneer | 
| Constructor Summary | |
|---|---|
ShoutAcceptingPolicy()
 | 
|
| Method Summary | |
|---|---|
abstract  void | 
check(Shout oldShout,
      Shout newShout)
checks whether newShout is acceptable or not to replace
 oldShout. | 
| 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 | 
| Field Detail | 
|---|
public static final java.lang.String P_DEF_BASE
| Constructor Detail | 
|---|
public ShoutAcceptingPolicy()
| Method Detail | 
|---|
public abstract void check(Shout oldShout,
                           Shout newShout)
                    throws IllegalShoutException
newShout is acceptable or not to replace
 oldShout. If not, an IllegalShoutException is thrown.
oldShout - 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 | ||||||||