Free cookie consent management tool by TermsFeed Policy Generator

Changeset 5245


Ignore:
Timestamp:
01/08/11 12:34:50 (14 years ago)
Author:
mholper
Message:

added initializeAlgorithm #1218

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/OKBJavaConnector/HLOKBWebClient/src/main/java/at/hl/okb/impl/ECJ19ConnectorImpl.java

    r4963 r5245  
    88
    99import at.hl.okb.IECJConnector;
     10import at.hl.okb.wsclient.OKBClientTest;
    1011import at.hl.okb.wsclient.OKBServiceClient;
     12import at.hl.wsclient.okb.AlgorithmParameter;
    1113
    1214/**
    1315 * @author HolperM
    14  *
     16 * 
    1517 */
    1618public class ECJ19ConnectorImpl implements IECJConnector {
    17  
     19
    1820  private OKBServiceClient okbClient = null;
    19  
     21
    2022  /**
    2123   *
     
    2527  }
    2628
    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)
    2934   */
    3035  public void initialize(String algorithm, String platform, String problem,
     
    3237      Object paramFile) throws Exception {
    3338    // TODO Auto-generated method stub
    34    
     39
    3540    Long platformId = okbClient.getPlatformId(platform);
    36     if (platformId==null)
     41    if (platformId == null)
    3742      throw new Exception("Platform " + platform + " not found!");
    38    
     43
    3944    Long algorithmId = okbClient.getAlgorithmId(algorithm);
    40     if (algorithmId==null)
     45    if (algorithmId == null)
    4146      throw new Exception("Algorithm " + algorithm + " not found!");
    42    
     47
    4348    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!");
    4651
    4752    okbClient.checkAlgoParamsExists(algorithmId, algoParams);
    48     //check problemParams(problemParams)
    49    
     53    // check problemParams(problemParams)
    5054
    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)
    5559  }
    5660
    57   /* (non-Javadoc)
     61  /*
     62   * (non-Javadoc)
     63   *
    5864   * @see at.hl.okb.IECJConnector#result(java.util.List)
    5965   */
     
    6369  }
    6470
     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  }
    6590}
Note: See TracChangeset for help on using the changeset viewer.