-
Notifications
You must be signed in to change notification settings - Fork 5
/
IdCoordinateSourceMock.groovy
56 lines (45 loc) · 1.31 KB
/
IdCoordinateSourceMock.groovy
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
/*
* © 2023. TU Dortmund University,
* Institute of Energy Systems, Energy Efficiency and Energy Economics,
* Research group Distribution grid planning and operation
*/
package edu.ie3.datamodel.io.source
import edu.ie3.datamodel.io.factory.timeseries.IdCoordinateFactory
import edu.ie3.util.geo.CoordinateDistance
import org.locationtech.jts.geom.Point
import tech.units.indriya.ComparableQuantity
import javax.measure.quantity.Length
import java.util.stream.Stream
class IdCoordinateSourceMock extends IdCoordinateSource {
IdCoordinateSourceMock() {
super(null)
}
@Override
Stream<Map<String, String>> extractSourceData() {
return null
}
@Override
Optional<Point> getCoordinate(int id) {
return Optional.empty()
}
@Override
Collection<Point> getCoordinates(int ... ids) {
return Collections.emptyList()
}
@Override
Optional<Integer> getId(Point coordinate) {
return Optional.empty()
}
@Override
Collection<Point> getAllCoordinates() {
return Collections.emptyList()
}
@Override
List<CoordinateDistance> getNearestCoordinates(Point coordinate, int n) {
return Collections.emptyList()
}
@Override
List<CoordinateDistance> getClosestCoordinates(Point coordinate, int n, ComparableQuantity<Length> distance) {
return Collections.emptyList()
}
}