blob: 89ee61c8c733cee5291864984b73c808d989cbaf (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
|
/*
* SPDX-FileCopyrightText: 2023 The Refinery Authors <https://refinery.tools/>
*
* SPDX-License-Identifier: EPL-2.0
*/
package tools.refinery.store.dse.transition;
public interface ObjectiveValue {
double get(int index);
int getSize();
static ObjectiveValue of(double v1) {
return new ObjectiveValues.ObjectiveValue1(v1);
}
static ObjectiveValue of(double v1, double v2) {
return new ObjectiveValues.ObjectiveValue2(v1,v2);
}
static ObjectiveValue of(double[] v) {
return new ObjectiveValues.ObjectiveValueN(v);
}
}
|