public class GoalEvent
extends java.lang.Object
implements jade.content.AgentAction
| Modifier and Type | Field and Description |
|---|---|
protected Goal |
goal |
protected GoalStatus |
status |
| Constructor and Description |
|---|
GoalEvent()
Default constructor.
|
GoalEvent(Goal goal)
Creates a new goal event with a goal.
|
GoalEvent(Goal goal,
GoalStatus status)
Creates a new goal event with a goal.
|
| Modifier and Type | Method and Description |
|---|---|
Goal |
getGoal()
Returns the goal associated with this event.
|
GoalStatus |
getStatus()
Returns the goal status.
|
boolean |
isGoalAdded()
Indicates if this goal event is a goal added event.
|
void |
setGoal(Goal goal)
Sets the goal associated with this event.
|
void |
setStatus(GoalStatus status)
Sets the goal status.
|
java.lang.String |
toString() |
protected Goal goal
protected GoalStatus status
public GoalEvent()
public GoalEvent(Goal goal)
goal - the goal of this event.public GoalEvent(Goal goal, GoalStatus status)
goal - the goal of this event.status - the goal status.public Goal getGoal()
public GoalStatus getStatus()
public boolean isGoalAdded()
public void setGoal(Goal goal)
goal - the goal to set.public void setStatus(GoalStatus status)
status - the status to set.public java.lang.String toString()
toString in class java.lang.ObjectObject.toString()