Class DAReceiverPlan
- java.lang.Object
- 
- jadex.bdiv3x.runtime.Plan
- 
- jadex.bdi.planlib.protocols.AbstractReceiverPlan
- 
- jadex.bdi.planlib.protocols.dutchauction.DAReceiverPlan
 
 
 
- 
 public class DAReceiverPlan extends AbstractReceiverPlan This plan implements the receiver 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.bdiv3x.runtime.PlanPlan.PlanWaitAbstraction
 
- 
 - 
Constructor SummaryConstructors Constructor Description DAReceiverPlan()
 - 
Method SummaryAll Methods Instance Methods Concrete Methods Modifier and Type Method Description voidbody()The plan body.protected java.lang.Object[]decideParticipation(AuctionDescription auctiondesc, IComponentIdentifier initiator)Decide about participation.protected java.lang.Object[]handleCFP(IMessageEvent cfp, AuctionDescription auctiondesc, java.lang.Object auctioninfo, java.util.List offers)Handle a cfp message.- 
Methods inherited from class jadex.bdi.planlib.protocols.AbstractReceiverPlanfailed, passed
 - 
Methods inherited from class jadex.bdiv3x.runtime.Planaborted, checkNotInAtomic, createExpression, createGoal, createInternalEvent, createMessageEvent, dispatchInternalEvent, dispatchSubgoal, dispatchSubgoalAndWait, dispatchSubgoalAndWait, dispatchTopLevelGoal, endAtomic, fail, fail, fail, getAgent, getBeliefbase, getClock, getComponentDescription, getComponentIdentifier, getComponentName, getDispatchedElement, getEventbase, getException, getExpression, getExpressionbase, getExternalAccess, getGoalbase, getLogger, getParameter, getParameters, getParameterSet, getParameterSets, getPlanbase, getPlanElement, getReason, getRPlan, getScope, getTime, getWaitqueue, hasParameter, hasParameterSet, killAgent, sendMessage, sendMessageAndWait, sendMessageAndWait, startAtomic, toString, waitFor, waitForCondition, waitForCondition, waitForCondition, waitForConditionInline, waitForConditionInline, waitForEver, waitForFactAdded, waitForFactAdded, waitForFactChanged, waitForFactChanged, waitForFactRemoved, waitForFactRemoved, waitForGoalFinished, waitForGoalFinished, waitForGoalFinished, waitForGoalFinished, waitForInternalEvent, waitForInternalEvent, waitForMessageEvent, waitForMessageEvent, waitForReply, waitForReply, waitForReply, waitForReply, waitForTick
 
- 
 
- 
- 
- 
Method Detail- 
bodypublic void body() The plan body.- Overrides:
- bodyin class- AbstractReceiverPlan
 
 - 
decideParticipationprotected java.lang.Object[] decideParticipation(AuctionDescription auctiondesc, IComponentIdentifier initiator) Decide about participation. If the goal is not handled participation is true.- Parameters:
- auctiondesc- The auction description.
- Returns:
- The participation state (Boolean) and the local auction info (Object).
 
 - 
handleCFPprotected java.lang.Object[] handleCFP(IMessageEvent cfp, AuctionDescription auctiondesc, java.lang.Object auctioninfo, java.util.List offers) Handle a cfp message.- Parameters:
- auctiondesc- The auction description.
- Returns:
- The participation state (Boolean) and the local auction info (Object).
 
 
- 
 
-