Merge branch 'JABAWS_Release_2_0'
[jabaws.git] / runner / compbio / pipeline / _jpred / PScore.java
diff --git a/runner/compbio/pipeline/_jpred/PScore.java b/runner/compbio/pipeline/_jpred/PScore.java
deleted file mode 100644 (file)
index b752a17..0000000
+++ /dev/null
@@ -1,60 +0,0 @@
-/* Copyright (c) 2011 Peter Troshin\r
- *  \r
- *  JAva Bioinformatics Analysis Web Services (JABAWS) @version: 2.0     \r
- * \r
- *  This library is free software; you can redistribute it and/or modify it under the terms of the\r
- *  Apache License version 2 as published by the Apache Software Foundation\r
- * \r
- *  This library is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without\r
- *  even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the Apache \r
- *  License for more details.\r
- * \r
- *  A copy of the license is in apache_license.txt. It is also available here:\r
- * @see: http://www.apache.org/licenses/LICENSE-2.0.txt\r
- * \r
- * Any republication or derived work distributed in source code form\r
- * must include this copyright and license notice.\r
- */\r
-package compbio.pipeline._jpred;\r
-\r
-public class PScore {\r
-\r
-       String name; \r
-       String otherName;\r
-       double score; \r
-       \r
-       \r
-       @Override\r
-       public boolean equals(Object obj) {\r
-               if(obj==null) { \r
-                       return false; \r
-               }\r
-               if(!(obj instanceof PScore)) { \r
-                       return false; \r
-               }\r
-               PScore pscore = (PScore)obj; \r
-               if(Double.compare(score, pscore.score)!=0) {\r
-                       return false; \r
-               }\r
-               if(!this.name.equalsIgnoreCase(pscore.name)) {\r
-                       return false; \r
-               }\r
-               if(!this.otherName.equalsIgnoreCase(pscore.otherName)) {\r
-                       return false; \r
-               }\r
-               return true;\r
-       }\r
-       \r
-       @Override\r
-       public int hashCode() {\r
-               return new Double((name.hashCode() * otherName.hashCode()*45)/score).intValue();\r
-       }\r
-       \r
-       @Override\r
-       public String toString() {\r
-               String value = "Name: " + name + "\n";\r
-               value += "OtherName: " + otherName+ "\n";\r
-               value += "Score: " + score+ "\n";\r
-               return value;\r
-       }\r
-}\r