Free cookie consent management tool by TermsFeed Policy Generator

Changeset 5250


Ignore:
Timestamp:
01/08/11 13:55:23 (13 years ago)
Author:
mholper
Message:

added some changed in Impl #1218

File:
1 edited

Legend:

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

    r5247 r5250  
    77import java.util.Map;
    88
     9import com.sun.codemodel.writer.PrologCodeWriter;
     10
     11import at.hl.okb.ECJConnectorState;
    912import at.hl.okb.IECJConnector;
    1013import at.hl.okb.wsclient.OKBClientTest;
     
    2730    this.okbClient = new OKBServiceClient();
    2831  }
     32 
    2933
    30   /*
    31    * (non-Javadoc)
    32    *
    33    * @see at.hl.okb.IECJConnector#initialize(java.lang.String,
    34    * java.lang.String, java.util.Map, java.util.Map, java.lang.Object)
    35    */
    3634  @Override
    37   public void initialize(String algorithmName, String platformName, String problemName) throws Exception {
    38     // TODO Auto-generated method stub
     35  public ECJConnectorState initialize(String algorithmName, String platformName, String problemName) throws Exception {
    3936
    4037    Long platformId = okbClient.getPlatformId(algorithmName);
     
    4946    if (problemId == null)
    5047      throw new Exception("Proble " + problemName + " not found!");
    51 
    52     //okbClient.checkAlgoParamsExists(algorithmId, algoParams);
    53     // check problemParams(problemParams)
    54 
    55     // add AlgorithmParams(Algorithmid, Platformid, algoParams,paramfile)
    56     // addProblemParams(problemId, Platformid, problemParams)
    57 
    58     // port.addAlgorithmParameter(dto)
     48   
     49    return new ECJConnectorState(platformId,algorithmId,problemId);
    5950  }
    6051
    61   /*
    62    * (non-Javadoc)
    63    *
    64    * @see at.hl.okb.IECJConnector#result(java.util.List)
    65    */
    6652  @Override
    67   public void result(List<Object> resultList, Map<String, Object> algoParams, Map<String, Object> problemParams,
     53  public void result(ECJConnectorState state, List<Object> resultList, Map<String, Object> algoParams, Map<String, Object> problemParams,
    6854      Object paramFile) throws Exception {
    6955    // TODO Auto-generated method stub
    7056   
    71     //create Experiment if algoparams empty and problemparams empty (in HL)
     57
     58    //create Experiment if algoparams not exists in HL and problemparams not exits (in HL)
    7259    //create missing Params in Algo and Problem (if not exits for experiment)
    7360    //create Datatype if missing
Note: See TracChangeset for help on using the changeset viewer.