Package jadex.bdiv3.testcases.beliefs
Class GetterSetterBeliefBDI
- java.lang.Object
-
- jadex.bdiv3.testcases.beliefs.GetterSetterBeliefBDI
-
public class GetterSetterBeliefBDI extends java.lang.ObjectAgent that has a getter setter belief.
-
-
Field Summary
Fields Modifier and Type Field Description protected IInternalAccessagentThe agent.protected intnumberThe number field.
-
Constructor Summary
Constructors Constructor Description GetterSetterBeliefBDI()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidbody()The agent body.voiddestroy(IInternalAccess agent)Called when agent is killed.intgetNumber()Get the number.protected voidplan()voidsetNumber(int number)Set the number.
-
-
-
Field Detail
-
agent
protected IInternalAccess agent
The agent.
-
number
protected int number
The number field.
-
-
Method Detail
-
getNumber
public int getNumber()
Get the number.- Returns:
- The number.
-
setNumber
public void setNumber(int number)
Set the number.- Parameters:
number- The number to set.
-
body
public void body()
The agent body.
-
destroy
public void destroy(IInternalAccess agent)
Called when agent is killed.
-
plan
protected void plan()
-
-