|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectjadex.bdi.runtime.impl.AbstractPlan
jadex.bdi.runtime.Plan
jadex.bdi.planlib.protocols.AbstractInitiatorPlan
jadex.bdi.planlib.protocols.dutchauction.DAInitiatorPlan
public class DAInitiatorPlan
This plan implements the initiator of the "FIPA Dutch Auction Interaction Protocol Specification" (XC00032 - Experimental) A dutch auction is one where the auctioneer starts with a high start price and continually lowers it until the first bidder accepts the price.
| Nested Class Summary |
|---|
| Nested classes/interfaces inherited from class jadex.bdi.runtime.Plan |
|---|
Plan.SyncResultListener |
| Field Summary | |
|---|---|
protected IMessageEvent |
start
The initial message. |
| Fields inherited from class jadex.bdi.runtime.Plan |
|---|
lis |
| Fields inherited from class jadex.bdi.runtime.impl.AbstractPlan |
|---|
interpreter, planinit |
| Constructor Summary | |
|---|---|
DAInitiatorPlan()
|
|
| Method Summary | |
|---|---|
protected void |
announceAuction(java.lang.Object auctiondesc,
java.util.List receivers,
java.lang.String convid)
Announce the planned auction. |
protected void |
announceAuctionEnd(java.util.List receivers,
java.lang.String convid,
java.lang.Object winning_offer,
IComponentIdentifier winner)
Announce the end of the auction to all participants that did not leave the auction. |
void |
body()
The plan body. |
protected java.lang.Object[] |
decideIteration(java.lang.Object cfp_info,
java.lang.Object[] history)
Decide about the next iteration. |
protected void |
evaluateAuctionResults(AuctionDescription auctiondesc,
java.lang.Object cfp_info,
java.lang.Object[] history,
IComponentIdentifier winner,
java.lang.Object winning_offer)
Evaluate the auction results and decide about participation. |
protected IMessageEvent |
getInitialMessage()
Get the initial message. |
protected void |
sendCFP(java.lang.Object cfp,
java.lang.String convid,
java.util.List receivers)
Send cfps to all receivers. |
protected void |
waitForAuctionStart(AuctionDescription auctiondesc,
java.util.List receivers)
Wait for the auction start time. |
protected IComponentIdentifier |
waitForProposals(java.lang.Object cfp,
long roundtimeout,
java.util.List receivers)
Wait for proposals of participants. |
| Methods inherited from class jadex.bdi.planlib.protocols.AbstractInitiatorPlan |
|---|
aborted, getTimeout |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Field Detail |
|---|
protected IMessageEvent start
| Constructor Detail |
|---|
public DAInitiatorPlan()
| Method Detail |
|---|
public void body()
body in class Plan
protected void announceAuction(java.lang.Object auctiondesc,
java.util.List receivers,
java.lang.String convid)
auctiondesc - the auction description.receivers - The receivers.convid - The conversation id.
protected void waitForAuctionStart(AuctionDescription auctiondesc,
java.util.List receivers)
auctiondesc - The auction description.receivers - The receivers.
protected void sendCFP(java.lang.Object cfp,
java.lang.String convid,
java.util.List receivers)
cfp - The cfp.convid - The conversation id.receivers - The receivers.
protected java.lang.Object[] decideIteration(java.lang.Object cfp_info,
java.lang.Object[] history)
cfp_info - The cfp info.history - The history.
protected IComponentIdentifier waitForProposals(java.lang.Object cfp,
long roundtimeout,
java.util.List receivers)
cfp - the cfp.roundtimeout - The round timeout.receivers - The receivers.
protected void evaluateAuctionResults(AuctionDescription auctiondesc,
java.lang.Object cfp_info,
java.lang.Object[] history,
IComponentIdentifier winner,
java.lang.Object winning_offer)
auctiondesc - The auction description.cfp_info - The cfp info.history - The historz of cfps.winner - the winner.winning_offer - The winning offer.
protected void announceAuctionEnd(java.util.List receivers,
java.lang.String convid,
java.lang.Object winning_offer,
IComponentIdentifier winner)
receivers - The receivers.convid - The conversation id.winning_offer - The winning offer.protected IMessageEvent getInitialMessage()
getInitialMessage in class AbstractInitiatorPlan
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||