public static ScopDatabase getSCOP ( String version , boolean forceLocalData ) { if ( version == null ) { version = defaultVersion ; } ScopDatabase scop = versionedScopDBs . get ( version ) ; if ( forceLocalData ) { // Use a local installation if ( scop == null || ! ( scop instanceof LocalScopDatabase ) ) { logger . info ( "Creating new {}, version {}" , BerkeleyScopInstallation . class . getSimpleName ( ) , version ) ; BerkeleyScopInstallation berkeley = new BerkeleyScopInstallation ( ) ; berkeley . setScopVersion ( version ) ; versionedScopDBs . put ( version , berkeley ) ; return berkeley ; } return scop ; } else { // Use a remote installation if ( scop == null ) { logger . info ( "Creating new {}, version {}" , RemoteScopInstallation . class . getSimpleName ( ) , version ) ; scop = new RemoteScopInstallation ( ) ; scop . setScopVersion ( version ) ; versionedScopDBs . put ( version , scop ) ; } return scop ; } }
Gets an instance of the specified scop version .