
jason.asSemantics.GoalListener Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of jason Show documentation
Show all versions of jason Show documentation
Jason is a fully-fledged interpreter for an extended version of AgentSpeak, a BDI agent-oriented logic programming language.
package jason.asSemantics;
import jason.asSyntax.Trigger;
/** call-back interface to be notified about events on goals */
public interface GoalListener {
public enum GoalStates { started, suspended, resumed, finished, failed } ;
public enum FinishStates { achieved, unachieved, dropped } ;
/** method called when a new goal is produced by operator ! */
public void goalStarted(Event goal);
/** method called when a goal is (un)successfully finished */
public void goalFinished(Trigger goal, FinishStates result);
/** method called when a goal is failed */
public void goalFailed(Trigger goal);
/** method called when a goal is suspended (waiting action on the environment or due to internal actions like .wait and .suspend) */
public void goalSuspended(Trigger goal, String reason);
/** called when a suspended goal is resumed */
public void goalResumed(Trigger goal);
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy