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 event.
|
BeliefEvent(Belief<?,?> belief,
BeliefEvent.Action action)
Creates a belief event.
|
BeliefEvent(Belief<?,?> belief,
BeliefEvent.Action action,
java.lang.Object args)
Creates a belief event.
|
| Modifier and Type | Method and Description |
|---|---|
BeliefEvent.Action |
getAction()
Returns the action performed.
|
java.lang.Object |
getArgs()
Returns arguments associated with the action performed.
|
Belief<?,?> |
getBelief()
Returns the belief over which the event has occurred.
|
void |
setAction(BeliefEvent.Action action)
Sets the action performed.
|
void |
setArgs(java.lang.Object args)
Sets the arguments associated with the action performed.
|
void |
setBelief(Belief<?,?> belief)
Sets the belief over which the event has occurred.
|
java.lang.String |
toString() |
public BeliefEvent()
public BeliefEvent(Belief<?,?> belief)
belief - the belief over which the event has occurred.public BeliefEvent(Belief<?,?> belief, BeliefEvent.Action action)
belief - the belief over which the event has occurred.action - the action performed.public BeliefEvent(Belief<?,?> belief, BeliefEvent.Action action, java.lang.Object args)
belief - the belief over which the event has occurred.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 set.public void setArgs(java.lang.Object args)
args - the args to set.public void setBelief(Belief<?,?> belief)
belief - the belief to set.public java.lang.String toString()
toString in class java.lang.ObjectObject.toString()