Free cookie consent management tool by TermsFeed Policy Generator

Ignore:
Timestamp:
12/10/10 20:20:08 (14 years ago)
Author:
mholper
Message:

some Methods in OKBServiceClient implemented #1218

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/OKBJavaConnector/HLOKBWebClient/src/main/java/at/hl/okb/wsclient/OKBServiceClient.java

    r5084 r5085  
    22
    33import java.util.ArrayList;
     4import java.util.HashMap;
    45import java.util.List;
    56import java.util.Map;
     7import java.util.Set;
    68
    79import at.hl.wsclient.okb.Algorithm;
     
    6264
    6365  public void checkAlgoParamsExists(Long algorithmId,
    64       Map<String, Object> algoParams) {
     66      Map<String, Object> ecjAlgoParams) {
    6567   
    6668    List<String> missingParams = new ArrayList<String>();
    6769   
    68     ArrayOfAlgorithmParameter allAlgoParams = port.getAlgorithmParameters(algorithmId);
     70    ArrayOfAlgorithmParameter hlAlgoParams = port.getAlgorithmParameters(algorithmId);
     71    Map<String, Object> hlAlgoParamMap = new HashMap<String, Object>();
     72   
     73    for (AlgorithmParameter algoParam:hlAlgoParams.getAlgorithmParameter()) {
     74      hlAlgoParamMap.put(algoParam.getName().getValue(), null); //value hangs on Experiments
     75    }
    6976   
    7077   
    71     for (AlgorithmParameter algoParam:allAlgoParams.getAlgorithmParameter()) {
    72 //      algoParam.
    73 //      if (algoParam.getName().getValue()==)
     78    String[] ecjparamNames = (String[]) ecjAlgoParams.keySet().toArray();
     79   
     80    for (int i=0;i<ecjparamNames.length;i++) {
     81      if (!hlAlgoParamMap.containsKey(ecjparamNames[i])) {
     82        missingParams.add(new String(ecjparamNames[i]));
     83      }
    7484    }
    7585   
Note: See TracChangeset for help on using the changeset viewer.