jadex.bdi.planlib.watchdog.NotifyAdminPlan Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of jadex-applications-applib-bdi Show documentation
Show all versions of jadex-applications-applib-bdi Show documentation
The Jadex applib BDI package contains ready to use functionalities for BDI agents mostly in form of modules called capabilities.
The newest version!
package jadex.bdi.planlib.watchdog;
import jadex.bdiv3.runtime.IGoal;
import jadex.bdiv3.runtime.impl.GoalFailureException;
import jadex.bdiv3x.runtime.Plan;
/**
* Notify the human admin of some agent in case of problems.
*/
public class NotifyAdminPlan extends Plan
{
/**
* The body method is called on the
* instatiated plan instance from the scheduler.
*/
public void body()
{
ObservationDescription desc = (ObservationDescription)getParameter("description").getValue();
boolean success = false;
ContactData[] contacts = desc.getContacts();
for(int i=0; i
© 2015 - 2025 Weber Informatics LLC | Privacy Policy