|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectbr.pucrio.inf.les.bdijade.event.BeliefEvent
public class BeliefEvent
This class represents an event performed over a belief.
| Nested Class Summary | |
|---|---|
static class |
BeliefEvent.Action
This enumeration represents the set of possible actions that can be performed over a belief. |
| Field Summary | |
|---|---|
private BeliefEvent.Action |
action
|
private java.lang.Object |
args
|
private Belief<?> |
belief
|
private static long |
serialVersionUID
|
| Constructor Summary | |
|---|---|
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. |
|
| Method Summary | |
|---|---|
BeliefEvent.Action |
getAction()
|
java.lang.Object |
getArgs()
|
Belief<?> |
getBelief()
|
void |
setAction(BeliefEvent.Action action)
|
void |
setArgs(java.lang.Object args)
|
void |
setBelief(Belief<?> belief)
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
private static final long serialVersionUID
private BeliefEvent.Action action
private java.lang.Object args
private Belief<?> belief
| Constructor Detail |
|---|
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.| Method Detail |
|---|
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
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||