Changeset 5247 for branches/OKBJavaConnector
- Timestamp:
- 01/08/11 13:38:14 (14 years ago)
- Location:
- branches/OKBJavaConnector/HLOKBWebClient/src/main/java/at/hl/okb
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/OKBJavaConnector/HLOKBWebClient/src/main/java/at/hl/okb/IECJConnector.java
r5244 r5247 3 3 import java.util.List; 4 4 import java.util.Map; 5 6 import at.hl.wsclient.okb.AlgorithmParameter;7 5 8 6 /** … … 22 20 * @throws Exception 23 21 */ 24 public Map<String,AlgorithmParameter> initializeAlgorithm(String algorithmName, String algorithmClassId,25 String platformId, Iterable<String> algorithmParameterName) throws Exception;22 // public Map<String,AlgorithmParameter> initializeAlgorithm(String algorithmName, String algorithmClassId, 23 // String platformId, Iterable<String> algorithmParameterName) throws Exception; 26 24 27 25 /** … … 38 36 * @throws Exception 39 37 */ 40 public void initialize(String algorithm, String platform, String problem , Map<String, Object> algoParams, Map<String,Object> problemParams, Object paramFile) throws Exception;38 public void initialize(String algorithm, String platform, String problem) throws Exception; //, Map<String, Object> algoParams, Map<String,Object> problemParams, Object paramFile) throws Exception; 41 39 42 40 /** … … 45 43 * @throws Exception 46 44 */ 47 public void result(List<Object> resultList) throws Exception; 45 public void result(List<Object> resultList, Map<String, Object> algoParams, Map<String, Object> problemParams, 46 Object paramFile) throws Exception; 48 47 } -
branches/OKBJavaConnector/HLOKBWebClient/src/main/java/at/hl/okb/impl/ECJ19ConnectorImpl.java
r5245 r5247 10 10 import at.hl.okb.wsclient.OKBClientTest; 11 11 import at.hl.okb.wsclient.OKBServiceClient; 12 import at.hl.wsclient.okb.Algorithm; 12 13 import at.hl.wsclient.okb.AlgorithmParameter; 13 14 … … 33 34 * java.lang.String, java.util.Map, java.util.Map, java.lang.Object) 34 35 */ 35 public void initialize(String algorithm, String platform, String problem, 36 Map<String, Object> algoParams, Map<String, Object> problemParams, 37 Object paramFile) throws Exception { 36 @Override 37 public void initialize(String algorithmName, String platformName, String problemName) throws Exception { 38 38 // TODO Auto-generated method stub 39 39 40 Long platformId = okbClient.getPlatformId( platform);40 Long platformId = okbClient.getPlatformId(algorithmName); 41 41 if (platformId == null) 42 throw new Exception("Platform " + platform+ " not found!");42 throw new Exception("Platform " + algorithmName + " not found!"); 43 43 44 Long algorithmId = okbClient.getAlgorithmId(algorithm );44 Long algorithmId = okbClient.getAlgorithmId(algorithmName, platformId); 45 45 if (algorithmId == null) 46 throw new Exception("Algorithm " + algorithm + " not found!");46 throw new Exception("Algorithm " + algorithmName + " for Platform" + platformName + " not found!"); 47 47 48 Long problemId = okbClient.getProblemId(problem );48 Long problemId = okbClient.getProblemId(problemName); 49 49 if (problemId == null) 50 throw new Exception("Proble " + problem + " not found!");50 throw new Exception("Proble " + problemName + " not found!"); 51 51 52 okbClient.checkAlgoParamsExists(algorithmId, algoParams);52 //okbClient.checkAlgoParamsExists(algorithmId, algoParams); 53 53 // check problemParams(problemParams) 54 54 … … 64 64 * @see at.hl.okb.IECJConnector#result(java.util.List) 65 65 */ 66 public void result(List<Object> resultList) throws Exception { 66 @Override 67 public void result(List<Object> resultList, Map<String, Object> algoParams, Map<String, Object> problemParams, 68 Object paramFile) throws Exception { 67 69 // TODO Auto-generated method stub 68 70 71 //create Experiment if algoparams empty and problemparams empty (in HL) 72 //create missing Params in Algo and Problem (if not exits for experiment) 73 //create Datatype if missing 74 69 75 } 70 76 71 @Override 72 public Map<String, AlgorithmParameter> initializeAlgorithm( 73 String algorithmName, String algorithmClassName, String platformName, 74 Iterable<String> algorithmParameterName) throws Exception { 75 76 /*Long platformId = okbClient.getPlatformId(platformName); 77 if (platformId==null) 78 throw new Exception("Platform " + platformName + " not found!"); 79 80 okbClient.getAlgorithm(algorithmName, Long.valueOf(algorithmClassId), platformId) 81 82 if (okbClient.getAlgorithmClassId(algorithmName)==null) 83 throw new Exception("Algorithm " + algorithmName + " not found in HL!"); 84 85 86 */ 87 return null; 88 89 } 77 // @Override 78 // public Map<String, AlgorithmParameter> initializeAlgorithm( 79 // String algorithmName, String algorithmClassName, String platformName, 80 // Iterable<String> algorithmParameterName) throws Exception { 81 // 82 // Long platformId = okbClient.getPlatformId(platformName); 83 // if (platformId==null) 84 // throw new Exception("Platform " + platformName + " not found in HL!"); 85 // 86 //// Long algorithmClassId = okbClient.getAlgorithmClassId(algorithmClassName); 87 //// if (algorithmClassId==null) 88 //// throw new Exception("AlgorithmClass " + platformName + " not found in HL!"); 89 // 90 // Long algorithmId = okbClient.getAlgorithmId(algorithmName, /*algorithmClassId*/ platformId); 91 // if (algorithmId==null) 92 // throw new Exception("Algorithm " + algorithmName + " not found in HL!"); 93 // 94 // 95 // 96 // return null; 97 // 98 // } 90 99 }
Note: See TracChangeset
for help on using the changeset viewer.