|
||||||||||
| 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.AbstractReceiverPlan
jadex.bdi.planlib.protocols.contractnet.CNPReceiverPlan
public class CNPReceiverPlan
Receive a contract net protocol (cnp) and answer it.
| Nested Class Summary |
|---|
| Nested classes/interfaces inherited from class jadex.bdi.runtime.Plan |
|---|
Plan.SyncResultListener |
| Field Summary |
|---|
| Fields inherited from class jadex.bdi.runtime.Plan |
|---|
lis |
| Fields inherited from class jadex.bdi.runtime.impl.AbstractPlan |
|---|
interpreter, planinit |
| Constructor Summary | |
|---|---|
CNPReceiverPlan()
|
|
| Method Summary | |
|---|---|
void |
body()
The body method is called on the instatiated plan instance from the scheduler. |
java.lang.Object |
executeTask(java.lang.Object proposal,
java.lang.Object proposal_info,
IComponentIdentifier initiator)
Execute the task. |
protected java.lang.String |
getShortProtocolName()
Get protocol abbrev name. |
protected boolean |
isIterated()
Test if it is the iterated contract-net version. |
java.lang.Object[] |
makeProposal(java.lang.Object cfp,
IComponentIdentifier initiator)
Make a proposal based on the task description. |
| Methods inherited from class jadex.bdi.planlib.protocols.AbstractReceiverPlan |
|---|
failed, passed |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public CNPReceiverPlan()
| Method Detail |
|---|
public void body()
body in class Planprotected boolean isIterated()
protected java.lang.String getShortProtocolName()
public java.lang.Object[] makeProposal(java.lang.Object cfp,
IComponentIdentifier initiator)
cfp - The cfp including the task to execute.
public java.lang.Object executeTask(java.lang.Object proposal,
java.lang.Object proposal_info,
IComponentIdentifier initiator)
proposal - The proposal.proposal_info - The proposal info.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||