public static WAMResolvingNativeMachine getInstance ( SymbolTableImpl < Integer , String , Object > symbolTable ) throws ImplementationUnavailableException { try { if ( ! libraryLoadAttempted ) { libraryLoadAttempted = true ; System . loadLibrary ( "aima_native" ) ; libraryFound = true ; } if ( libraryFound ) { return new WAMResolvingNativeMachine ( symbolTable ) ; } else { throw new ImplementationUnavailableException ( "The native library could not be found." , null , null , null ) ; } } catch ( UnsatisfiedLinkError e ) { libraryFound = false ; throw new ImplementationUnavailableException ( "The native library could not be found." , e , null , null ) ; } }
Creates an instance of this machine loading and checking for availability of the native implementation library as required .