JWS-113 Commented Jpred entries in the datamodel, runner and webservices java source...
[jabaws.git] / webservices / compbio / ws / client / ServicesUtil.java
index 9873875..0e862d4 100644 (file)
@@ -5,6 +5,7 @@ import java.io.File;
 import compbio.engine.client.ConfExecutable;\r
 import compbio.engine.client.Executable;\r
 import compbio.runner.conservation.AACon;\r
+//import compbio.runner.predictors.Jpred;\r
 import compbio.runner.disorder.Disembl;\r
 import compbio.runner.disorder.GlobPlot;\r
 import compbio.runner.disorder.IUPred;\r
@@ -14,6 +15,8 @@ import compbio.runner.msa.ClustalW;
 import compbio.runner.msa.Mafft;\r
 import compbio.runner.msa.Muscle;\r
 import compbio.runner.msa.Probcons;\r
+import compbio.runner.msa.MSAprobs;\r
+import compbio.runner.msa.GLprobs;\r
 import compbio.runner.msa.Tcoffee;\r
 import compbio.runner.structure.RNAalifold;\r
 \r
@@ -30,10 +33,12 @@ public class ServicesUtil {
                return null;\r
        }\r
 \r
-       public static Class<? extends Executable<?>> getServiceImpl(Services service) {\r
+       private static Class<? extends Executable<?>> getServiceImpl(Services service) {\r
                switch (service) {\r
                        case AAConWS :\r
                                return AACon.class;\r
+//                     case JpredWS :\r
+//                             return Jpred.class;\r
                        case ClustalOWS :\r
                                return ClustalO.class;\r
                        case ClustalWS :\r
@@ -46,6 +51,10 @@ public class ServicesUtil {
                                return Tcoffee.class;\r
                        case ProbconsWS :\r
                                return Probcons.class;\r
+                       case MSAprobsWS :\r
+                               return MSAprobs.class;\r
+                       case GLprobsWS :\r
+                               return GLprobs.class;\r
                        case DisemblWS :\r
                                return Disembl.class;\r
                        case GlobPlotWS :\r
@@ -57,14 +66,11 @@ public class ServicesUtil {
                        case RNAalifoldWS :\r
                                return RNAalifold.class;\r
                        default :\r
-                               throw new RuntimeException(\r
-                                               "Unknown web service implementation class for service: "\r
-                                                               + service);\r
+                               throw new RuntimeException("Unknown web service implementation class for service: " + service);\r
                }\r
        }\r
 \r
-       public static Class<? extends Executable<?>> getRunnerByJobDirectory(\r
-                       File jobdir) {\r
+       public static Class<? extends Executable<?>> getRunnerByJobDirectory(File jobdir) {\r
                Services service = getServiceByRunnerName(getRunnerNameByJobDirectory(jobdir));\r
                return getServiceImpl(service);\r
        }\r
@@ -85,8 +91,7 @@ public class ServicesUtil {
 \r
        private static Services getServiceByRunnerName(String name) {\r
                for (Services service : Services.values()) {\r
-                       String runnerName = getServiceImpl(service).getSimpleName()\r
-                                       .toLowerCase();\r
+                       String runnerName = getServiceImpl(service).getSimpleName().toLowerCase();\r
                        name = name.trim().toLowerCase();\r
                        if (name.startsWith(runnerName)) {\r
                                return service;\r