Changeset 4963
- Timestamp:
- 11/27/10 11:16:22 (14 years ago)
- Location:
- branches/OKBJavaConnector/HLOKBWebClient/src
- Files:
-
- 3 added
- 1 deleted
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/OKBJavaConnector/HLOKBWebClient/src/main/java/at/hl/okb/IECJConnector.java
r4961 r4963 10 10 */ 11 11 public interface IECJConnector { 12 public void initialize(String algorithm, String platform, Map<String, String> algoParams, Map<String,String>problemParams, Object paramFile) throws Exception; 12 /** 13 * Does some logical Check against HL 14 * create missing Datatypes (if not found) 15 * saves algorithmParams, problemParams into HL 16 * 17 * @param algorithm Name of the Algorithm 18 * @param platform Name of the Platform 19 * @param problem Name of the Problem 20 * @param algoParams map<AlgoParamname, Paramvalue> (as JavaType) 21 * @param problemParams map<problemParamName, Paramvalue> (as JavaType) 22 * @param paramFile as Object (will be saved as BLOB) 23 * @throws Exception 24 */ 25 public void initialize(String algorithm, String platform, String problem, Map<String, Object> algoParams, Map<String,Object> problemParams, Object paramFile) throws Exception; 13 26 27 /** 28 * delivers Results to HL 29 * @param resultList 30 * @throws Exception 31 */ 14 32 public void result(List<Object> resultList) throws Exception; 15 33 } -
branches/OKBJavaConnector/HLOKBWebClient/src/main/java/at/hl/okb/impl/ECJ19ConnectorImpl.java
r4961 r4963 8 8 9 9 import at.hl.okb.IECJConnector; 10 import at.hl.okb.wsclient.OKBServiceClient; 10 11 11 12 /** … … 14 15 */ 15 16 public class ECJ19ConnectorImpl implements IECJConnector { 16 17 18 private OKBServiceClient okbClient = null; 19 17 20 /** 18 21 * 19 22 */ 20 23 public ECJ19ConnectorImpl() { 21 // TODO Auto-generated constructor stub24 this.okbClient = new OKBServiceClient(); 22 25 } 23 26 … … 25 28 * @see at.hl.okb.IECJConnector#initialize(java.lang.String, java.lang.String, java.util.Map, java.util.Map, java.lang.Object) 26 29 */ 27 public void initialize(String algorithm, String platform, 28 Map<String, String> algoParams, Map<String, String> problemParams,30 public void initialize(String algorithm, String platform, String problem, 31 Map<String, Object> algoParams, Map<String, Object> problemParams, 29 32 Object paramFile) throws Exception { 30 33 // TODO Auto-generated method stub 31 34 35 Long platformId = okbClient.getPlatformId(platform); 36 if (platformId==null) 37 throw new Exception("Platform " + platform + " not found!"); 38 39 Long algorithmId = okbClient.getAlgorithmId(algorithm); 40 if (algorithmId==null) 41 throw new Exception("Algorithm " + algorithm + " not found!"); 42 43 Long problemId = okbClient.getProblemId(problem); 44 if (problemId==null) 45 throw new Exception("Proble " + problem + " not found!"); 46 47 okbClient.checkAlgoParamsExists(algorithmId, algoParams); 48 //check problemParams(problemParams) 49 50 51 //add AlgorithmParams(Algorithmid, Platformid, algoParams,paramfile) 52 //addProblemParams(problemId, Platformid, problemParams) 53 54 //port.addAlgorithmParameter(dto) 32 55 } 33 56
Note: See TracChangeset
for help on using the changeset viewer.