public static void startMockJadexAgent ( String agent_name , String agent_path , MockConfiguration configuration , BeastTestCase story ) { story . startAgent ( agent_name , agent_path ) ; story . sendMessageToAgent ( agent_name , SFipa . INFORM , configuration ) ; story . setExecutionTime ( 2000 ) ; // To get time to execute the DF rename goal }
This method is used to launch mock agents . First it creates them with the generic df_service_name \ mock_agent \ and then the method sends to the agent a message with the new df_service_name and its behaviour .