public IPlan [ ] getAgentPlans ( final String agent_name , Connector connector ) { ( ( IExternalAccess ) connector . getAgentsExternalAccess ( agent_name ) ) . scheduleStep ( new IComponentStep < Plan > ( ) { public IFuture < Plan > execute ( IInternalAccess ia ) { IBDIInternalAccess bia = ( IBDIInternalAccess ) ia ; plans = bia . getPlanbase ( ) . getPlans ( ) ; return null ; } } ) . get ( new ThreadSuspendable ( ) ) ; return plans ; }
This method prints plan information of an agent through its external access . It can be used to check the correct behaviour of the agent .