Package jadex.bdi.testcases.misc
Class LeakerPlan
- java.lang.Object
-
- jadex.bdiv3x.runtime.Plan
-
- jadex.bdi.testcases.misc.LeakerPlan
-
public class LeakerPlan extends Plan
Test memory consumption.
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from class jadex.bdiv3x.runtime.Plan
Plan.PlanWaitAbstraction
-
-
Constructor Summary
Constructors Constructor Description LeakerPlan()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
body()
Create a new plan.void
runTests(int testno, int runs, boolean dispatch)
The body method is called on the instantiated plan instance from the scheduler.protected long
sleeper(long start)
protected void
testGoalCreation(int num, boolean dispatch)
Test if the goal creation consumes memory.protected void
testInternalEventCreation(int num, boolean dispatch)
Test if the internal event creation consumes memory.protected void
testMessageCreation(int num, boolean send)
Test if the message creation consumes memory.-
Methods inherited from class jadex.bdiv3x.runtime.Plan
aborted, checkNotInAtomic, createExpression, createGoal, createInternalEvent, createMessageEvent, dispatchInternalEvent, dispatchSubgoal, dispatchSubgoalAndWait, dispatchSubgoalAndWait, dispatchTopLevelGoal, endAtomic, fail, fail, fail, failed, 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, passed, 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
-
runTests
public void runTests(int testno, int runs, boolean dispatch)
The body method is called on the instantiated plan instance from the scheduler.
-
testGoalCreation
protected void testGoalCreation(int num, boolean dispatch)
Test if the goal creation consumes memory.
-
testInternalEventCreation
protected void testInternalEventCreation(int num, boolean dispatch)
Test if the internal event creation consumes memory.
-
testMessageCreation
protected void testMessageCreation(int num, boolean send)
Test if the message creation consumes memory.
-
sleeper
protected long sleeper(long start)
-
-