Skip to content

Commit

Permalink
added dtf aware constructor in CsvResultEntitySource
Browse files Browse the repository at this point in the history
  • Loading branch information
johanneshiry committed Jul 9, 2021
1 parent b8b4447 commit 3ca7269
Showing 1 changed file with 12 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -54,6 +54,18 @@ public CsvResultEntitySource(
this.connectorResultFactory = new ConnectorResultFactory();
}

public CsvResultEntitySource(
String csvSep, String folderPath, FileNamingStrategy fileNamingStrategy, String dtfPattern) {
super(csvSep, folderPath, fileNamingStrategy);

// init factories
this.systemParticipantResultFactory = new SystemParticipantResultFactory(dtfPattern);
this.thermalResultFactory = new ThermalResultFactory(dtfPattern);
this.switchResultFactory = new SwitchResultFactory(dtfPattern);
this.nodeResultFactory = new NodeResultFactory(dtfPattern);
this.connectorResultFactory = new ConnectorResultFactory(dtfPattern);
}

// Grid
@Override
public Set<NodeResult> getNodeResults() {
Expand Down

0 comments on commit 3ca7269

Please sign in to comment.