Package jadex.bdiv3.testcases.plans
Class WaitBDI
- java.lang.Object
- 
- jadex.bdiv3.testcases.plans.WaitBDI
 
- 
 public class WaitBDI extends java.lang.ObjectAgent that tests plan waiting for fact added and removed.
- 
- 
Field SummaryFields Modifier and Type Field Description protected IInternalAccessagentprotected java.util.List<java.lang.String>namesprotected TestReport[]tr
 - 
Constructor SummaryConstructors Constructor Description WaitBDI()
 - 
Method SummaryAll Methods Instance Methods Concrete Methods Modifier and Type Method Description protected voidaddName(java.lang.String name)Add a name.voidbody()The agent body.voiddestroy(IInternalAccess agent)Called when agent is killed.protected voidremoveName(java.lang.String name)Remove a name.protected IFuture<java.lang.Void>waitPlan(jadex.bdiv3.runtime.impl.RPlan rplan)Plan that waits for addition and removal of a name.
 
- 
- 
- 
Field Detail- 
agentprotected IInternalAccess agent 
 - 
namesprotected java.util.List<java.lang.String> names 
 - 
trprotected TestReport[] tr 
 
- 
 - 
Method Detail- 
bodypublic void body() The agent body.
 - 
destroypublic void destroy(IInternalAccess agent) Called when agent is killed.
 - 
addNameprotected void addName(java.lang.String name) Add a name.- Parameters:
- name- The name.
 
 - 
removeNameprotected void removeName(java.lang.String name) Remove a name.- Parameters:
- name- The name.
 
 - 
waitPlanprotected IFuture<java.lang.Void> waitPlan(jadex.bdiv3.runtime.impl.RPlan rplan) Plan that waits for addition and removal of a name.
 
- 
 
-