public static void finish ( ) { // Terminate the extensions first for ( JillExtension extension : GlobalState . eventHandlers ) { extension . finish ( ) ; } // Now shut down the threads Program . shutdownIntentionSelectionThreads ( ) ; // Finish the agents long t0 = System . currentTimeMillis ( ) ; for ( int i = 0 ; i < GlobalState . agents . size ( ) ; i ++ ) { // Get the agent Agent agent = ( Agent ) GlobalState . agents . get ( i ) ; // Terminate the agent agent . finish ( ) ; } // Close the writer if ( writer != null ) { writer . close ( ) ; } long t1 = System . currentTimeMillis ( ) ; logger . info ( "Terminated " + GlobalState . agents . size ( ) + agentsIn + Log . formattedDuration ( t0 , t1 ) ) ; }
Termiantes the Jill engine .