-
Notifications
You must be signed in to change notification settings - Fork 19
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
35 changed files
with
727 additions
and
357 deletions.
There are no files selected for viewing
30 changes: 30 additions & 0 deletions
30
iidm-xml-import-export/src/main/java/eu/itesla_project/iidm/xml/Anonymizer.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,30 @@ | ||
/** | ||
* Copyright (c) 2016, RTE (http://www.rte-france.com) | ||
* This Source Code Form is subject to the terms of the Mozilla Public | ||
* License, v. 2.0. If a copy of the MPL was not distributed with this | ||
* file, You can obtain one at http://mozilla.org/MPL/2.0/. | ||
*/ | ||
package eu.itesla_project.iidm.xml; | ||
|
||
import eu.itesla_project.iidm.network.Country; | ||
|
||
import java.io.BufferedReader; | ||
import java.io.BufferedWriter; | ||
|
||
/** | ||
* @author Geoffroy Jamgotchian <geoffroy.jamgotchian at rte-france.com> | ||
*/ | ||
public interface Anonymizer { | ||
|
||
String anonymizeString(String str); | ||
|
||
String deanonymizeString(String str); | ||
|
||
Country anonymizeCountry(Country country); | ||
|
||
Country deanonymizeCountry(Country country); | ||
|
||
void read(BufferedReader reader); | ||
|
||
void write(BufferedWriter writer); | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
45 changes: 45 additions & 0 deletions
45
iidm-xml-import-export/src/main/java/eu/itesla_project/iidm/xml/FakeAnonymizer.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,45 @@ | ||
/** | ||
* Copyright (c) 2016, RTE (http://www.rte-france.com) | ||
* This Source Code Form is subject to the terms of the Mozilla Public | ||
* License, v. 2.0. If a copy of the MPL was not distributed with this | ||
* file, You can obtain one at http://mozilla.org/MPL/2.0/. | ||
*/ | ||
package eu.itesla_project.iidm.xml; | ||
|
||
import eu.itesla_project.iidm.network.Country; | ||
|
||
import java.io.BufferedReader; | ||
import java.io.BufferedWriter; | ||
|
||
/** | ||
* @author Geoffroy Jamgotchian <geoffroy.jamgotchian at rte-france.com> | ||
*/ | ||
public class FakeAnonymizer implements Anonymizer { | ||
@Override | ||
public String anonymizeString(String str) { | ||
return str; | ||
} | ||
|
||
@Override | ||
public String deanonymizeString(String str) { | ||
return str; | ||
} | ||
|
||
@Override | ||
public Country anonymizeCountry(Country country) { | ||
return country; | ||
} | ||
|
||
@Override | ||
public Country deanonymizeCountry(Country country) { | ||
return country; | ||
} | ||
|
||
@Override | ||
public void read(BufferedReader reader) { | ||
} | ||
|
||
@Override | ||
public void write(BufferedWriter writer) { | ||
} | ||
} |
Oops, something went wrong.