Class EAReceiverPlan
- java.lang.Object
-
- jadex.bdiv3x.runtime.Plan
-
- jadex.bdi.planlib.protocols.AbstractReceiverPlan
-
- jadex.bdi.planlib.protocols.englishauction.EAReceiverPlan
-
public class EAReceiverPlan extends AbstractReceiverPlan
This plan implements the receiver of the "FIPA Dutch Auction Interaction Protocol Specification" (XC00032 - Experimental). An English auction is one where bidders continuously can increase the current offer until no one is willing to increase any more.
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from class jadex.bdiv3x.runtime.Plan
Plan.PlanWaitAbstraction
-
-
Constructor Summary
Constructors Constructor Description EAReceiverPlan()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
body()
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.AbstractReceiverPlan
failed, passed
-
Methods inherited from class jadex.bdiv3x.runtime.Plan
aborted, 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
-
body
public void body()
The plan body.- Overrides:
body
in classAbstractReceiverPlan
-
decideParticipation
protected 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).
-
handleCFP
protected 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).
-
-