Start line:  
End line:  

Snippet Preview

Snippet HTML Code

Stack Overflow Questions
 package jadex.bdi.planlib.df;
Register on a remote platform.
public class DFRemoteRegisterPlan extends Plan
The body method is called on the instantiated plan instance from the scheduler.
	public void body()
//		System.out.println("df register");
		DFRegister re = new DFRegister();
		Number lt = (Number)getParameter("leasetime").getValue();
		// When AID is omitted, enter self. Hack???
		if(desc.getName()==null || lt!=null)
			IComponentIdentifier	biddesc.getName()!=null ? desc.getName() : getScope().getComponentIdentifier();
			Date	leasetimelt==null ? desc.getLeaseTime() : new Date(getTime()+lt.longValue());
			descnew DFComponentDescription(biddesc.getServices(), desc.getProtocols(), desc.getOntologies(), desc.getLanguages(), leasetime);
		IGoal req = createGoal("rp_initiate");
New to GrepCode? Check out our FAQ X