Free cookie consent management tool by TermsFeed Policy Generator

Ignore:
Timestamp:
11/27/10 11:16:22 (14 years ago)
Author:
mholper
Message:

added some Implementation as Ids

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  
    1010 */
    1111public 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;
    1326
     27  /**
     28   * delivers Results to HL
     29   * @param resultList
     30   * @throws Exception
     31   */
    1432  public void result(List<Object> resultList) throws Exception;
    1533}
  • branches/OKBJavaConnector/HLOKBWebClient/src/main/java/at/hl/okb/impl/ECJ19ConnectorImpl.java

    r4961 r4963  
    88
    99import at.hl.okb.IECJConnector;
     10import at.hl.okb.wsclient.OKBServiceClient;
    1011
    1112/**
     
    1415 */
    1516public class ECJ19ConnectorImpl implements IECJConnector {
    16 
     17 
     18  private OKBServiceClient okbClient = null;
     19 
    1720  /**
    1821   *
    1922   */
    2023  public ECJ19ConnectorImpl() {
    21     // TODO Auto-generated constructor stub
     24    this.okbClient = new OKBServiceClient();
    2225  }
    2326
     
    2528   * @see at.hl.okb.IECJConnector#initialize(java.lang.String, java.lang.String, java.util.Map, java.util.Map, java.lang.Object)
    2629   */
    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,
    2932      Object paramFile) throws Exception {
    3033    // TODO Auto-generated method stub
    3134   
     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)
    3255  }
    3356
Note: See TracChangeset for help on using the changeset viewer.