public class BeliefEvent
extends java.lang.Object
implements jade.content.AgentAction
| Modifier and Type | Class and Description |
|---|---|
static class |
BeliefEvent.Action
This enumeration represents the set of possible actions that can be
performed over a belief.
|
| Constructor and Description |
|---|
BeliefEvent()
Default constructor.
|
BeliefEvent(Belief<?> belief)
Creates a Belief Changed.
|
BeliefEvent(Belief<?> belief,
BeliefEvent.Action action)
Creates a Belief Changed.
|
BeliefEvent(Belief<?> belief,
BeliefEvent.Action action,
java.lang.Object args)
Creates a Belief Changed.
|
| Modifier and Type | Method and Description |
|---|---|
BeliefEvent.Action |
getAction() |
java.lang.Object |
getArgs() |
Belief<?> |
getBelief() |
void |
setAction(BeliefEvent.Action action) |
void |
setArgs(java.lang.Object args) |
void |
setBelief(Belief<?> belief) |
public BeliefEvent()
public BeliefEvent(Belief<?> belief)
belief - the belief that has changed.public BeliefEvent(Belief<?> belief, BeliefEvent.Action action)
belief - the belief that has changed.action - the action performed.public BeliefEvent(Belief<?> belief, BeliefEvent.Action action, java.lang.Object args)
belief - the belief that has changed.action - the action performed.args - an argument passed for this action.public BeliefEvent.Action getAction()
public java.lang.Object getArgs()
public Belief<?> getBelief()
public void setAction(BeliefEvent.Action action)
action - the action to setpublic void setArgs(java.lang.Object args)
args - the args to setpublic void setBelief(Belief<?> belief)
belief - the belief to set