jadex.bdi.cmsagent.CMSShutdownPlatformPlan Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of jadex-applib-bdi Show documentation
Show all versions of jadex-applib-bdi Show documentation
The Jadex applib BDI package contain
ready to use functionalities for
BDI agents mostly in form of modules
called capabilities.
package jadex.bdi.cmsagent;
import jadex.bdi.runtime.Plan;
import jadex.bridge.fipa.CMSShutdownPlatform;
import jadex.bridge.fipa.Done;
/**
* Isuue a platform shutdown.
*/
public class CMSShutdownPlatformPlan extends Plan
{
/**
* The body method is called on the
* instatiated plan instance from the scheduler.
*/
public void body()
{
CMSShutdownPlatform sd = (CMSShutdownPlatform)getParameter("action").getValue();
dispatchSubgoalAndWait(createGoal("cms_shutdown_platform"));
getParameter("result").setValue(new Done(sd));
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy