Start line:  
End line:  

Snippet Preview

Snippet HTML Code

Stack Overflow Questions
 package jadex.bdi.cmsagent;
 
Suspend a component.
public class CMSSuspendComponentPlan extends Plan
{
The body method is called on the instatiated plan instance from the scheduler.
	public void body()
	{
		IGoal sag = createGoal("cms_suspend_component");
		sag.getParameter("componentidentifier").setValue(sa.getComponentIdentifier());
		getParameter("result").setValue(new Done(sa));
	}
New to GrepCode? Check out our FAQ X