Changeset 5245 for branches/OKBJavaConnector/HLOKBWebClient/src/main
- Timestamp:
- 01/08/11 12:34:50 (14 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/OKBJavaConnector/HLOKBWebClient/src/main/java/at/hl/okb/impl/ECJ19ConnectorImpl.java
r4963 r5245 8 8 9 9 import at.hl.okb.IECJConnector; 10 import at.hl.okb.wsclient.OKBClientTest; 10 11 import at.hl.okb.wsclient.OKBServiceClient; 12 import at.hl.wsclient.okb.AlgorithmParameter; 11 13 12 14 /** 13 15 * @author HolperM 14 * 16 * 15 17 */ 16 18 public class ECJ19ConnectorImpl implements IECJConnector { 17 19 18 20 private OKBServiceClient okbClient = null; 19 21 20 22 /** 21 23 * … … 25 27 } 26 28 27 /* (non-Javadoc) 28 * @see at.hl.okb.IECJConnector#initialize(java.lang.String, java.lang.String, java.util.Map, java.util.Map, java.lang.Object) 29 /* 30 * (non-Javadoc) 31 * 32 * @see at.hl.okb.IECJConnector#initialize(java.lang.String, 33 * java.lang.String, java.util.Map, java.util.Map, java.lang.Object) 29 34 */ 30 35 public void initialize(String algorithm, String platform, String problem, … … 32 37 Object paramFile) throws Exception { 33 38 // TODO Auto-generated method stub 34 39 35 40 Long platformId = okbClient.getPlatformId(platform); 36 if (platformId ==null)41 if (platformId == null) 37 42 throw new Exception("Platform " + platform + " not found!"); 38 43 39 44 Long algorithmId = okbClient.getAlgorithmId(algorithm); 40 if (algorithmId ==null)45 if (algorithmId == null) 41 46 throw new Exception("Algorithm " + algorithm + " not found!"); 42 47 43 48 Long problemId = okbClient.getProblemId(problem); 44 if (problemId ==null)45 throw new Exception("Proble " + problem + " not found!"); 49 if (problemId == null) 50 throw new Exception("Proble " + problem + " not found!"); 46 51 47 52 okbClient.checkAlgoParamsExists(algorithmId, algoParams); 48 //check problemParams(problemParams) 49 53 // check problemParams(problemParams) 50 54 51 // add AlgorithmParams(Algorithmid, Platformid, algoParams,paramfile)52 // addProblemParams(problemId, Platformid, problemParams)53 54 // port.addAlgorithmParameter(dto)55 // add AlgorithmParams(Algorithmid, Platformid, algoParams,paramfile) 56 // addProblemParams(problemId, Platformid, problemParams) 57 58 // port.addAlgorithmParameter(dto) 55 59 } 56 60 57 /* (non-Javadoc) 61 /* 62 * (non-Javadoc) 63 * 58 64 * @see at.hl.okb.IECJConnector#result(java.util.List) 59 65 */ … … 63 69 } 64 70 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 } 65 90 }
Note: See TracChangeset
for help on using the changeset viewer.