1 | package at.hl.okb;
|
---|
2 |
|
---|
3 | import java.util.List;
|
---|
4 | import java.util.Map;
|
---|
5 |
|
---|
6 | /**
|
---|
7 | * Interface for ECJ Connector
|
---|
8 | * @author HolperM
|
---|
9 | *
|
---|
10 | */
|
---|
11 | public interface IECJConnector {
|
---|
12 |
|
---|
13 | /**
|
---|
14 | * checks if algorithm exists and returns AlgorithmParameterMap with AlgorithmParamName, AlgorithParamType
|
---|
15 | * @param algorithmName
|
---|
16 | * @param algorithmClassId
|
---|
17 | * @param platformId
|
---|
18 | * @param algorithParameterName
|
---|
19 | * @return
|
---|
20 | * @throws Exception
|
---|
21 | */
|
---|
22 | // public Map<String,AlgorithmParameter> initializeAlgorithm(String algorithmName, String algorithmClassId,
|
---|
23 | // String platformId, Iterable<String> algorithmParameterName) throws Exception;
|
---|
24 |
|
---|
25 | /**
|
---|
26 | * Does some logical Check against HL
|
---|
27 | * create missing Datatypes (if not found)
|
---|
28 | * saves algorithmParams, problemParams into HL
|
---|
29 | *
|
---|
30 | * @param algorithm Name of the Algorithm
|
---|
31 | * @param platform Name of the Platform
|
---|
32 | * @param problem Name of the Problem
|
---|
33 | * @param algoParams map<AlgoParamname, Paramvalue> (as JavaType)
|
---|
34 | * @param problemParams map<problemParamName, Paramvalue> (as JavaType)
|
---|
35 | * @param paramFile as Object (will be saved as BLOB)
|
---|
36 | * @throws Exception
|
---|
37 | */
|
---|
38 | public void initialize(String algorithm, String platform, String problem) throws Exception; //, Map<String, Object> algoParams, Map<String,Object> problemParams, Object paramFile) throws Exception;
|
---|
39 |
|
---|
40 | /**
|
---|
41 | * delivers Results to HL
|
---|
42 | * @param resultList
|
---|
43 | * @throws Exception
|
---|
44 | */
|
---|
45 | public void result(List<Object> resultList, Map<String, Object> algoParams, Map<String, Object> problemParams,
|
---|
46 | Object paramFile) throws Exception;
|
---|
47 | }
|
---|