Package jadex.bdiv3.testcases.plans
Class WaitBDI
- java.lang.Object
-
- jadex.bdiv3.testcases.plans.WaitBDI
-
public class WaitBDI extends java.lang.Object
Agent that tests plan waiting for fact added and removed.
-
-
Field Summary
Fields Modifier and Type Field Description protected IInternalAccess
agent
protected java.util.List<java.lang.String>
names
protected TestReport[]
tr
-
Constructor Summary
Constructors Constructor Description WaitBDI()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected void
addName(java.lang.String name)
Add a name.void
body()
The agent body.void
destroy(IInternalAccess agent)
Called when agent is killed.protected void
removeName(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
-
agent
protected IInternalAccess agent
-
names
protected java.util.List<java.lang.String> names
-
tr
protected TestReport[] tr
-
-
Method Detail
-
body
public void body()
The agent body.
-
destroy
public void destroy(IInternalAccess agent)
Called when agent is killed.
-
addName
protected void addName(java.lang.String name)
Add a name.- Parameters:
name
- The name.
-
removeName
protected void removeName(java.lang.String name)
Remove a name.- Parameters:
name
- The name.
-
waitPlan
protected IFuture<java.lang.Void> waitPlan(jadex.bdiv3.runtime.impl.RPlan rplan)
Plan that waits for addition and removal of a name.
-
-