-
Notifications
You must be signed in to change notification settings - Fork 5
/
FlatDirectoryHierarchy.java
41 lines (35 loc) · 1.07 KB
/
FlatDirectoryHierarchy.java
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
/*
* © 2021. TU Dortmund University,
* Institute of Energy Systems, Energy Efficiency and Energy Economics,
* Research group Distribution grid planning and operation
*/
package edu.ie3.datamodel.io.naming;
import edu.ie3.datamodel.exceptions.FileException;
import edu.ie3.datamodel.models.UniqueEntity;
import java.util.Optional;
/** Default directory hierarchy for input models */
public class FlatDirectoryHierarchy implements FileHierarchy {
/**
* Gives empty sub directory.
*
* @param cls Class to define the sub directory for
* @param fileSeparator The file separator to use
* @return An Option to the regarding sub directory as a string
*/
@Override
public Optional<String> getSubDirectory(Class<? extends UniqueEntity> cls, String fileSeparator) {
return Optional.empty();
}
/**
* Gives the baseDirectory, which is Empty.
*
* @return An Option to the base directory as a string
*/
@Override
public Optional<String> getBaseDirectory() {
return Optional.empty();
}
@Override
public void validate() throws FileException {
}
}