Package repast.simphony.batch.ssh
Class OutputFinder
java.lang.Object
repast.simphony.batch.ssh.OutputFinder
- Direct Known Subclasses:
LocalOutputFinder
,RemoteOutputFinderCopier
Base class for classes that find simphony model output. This works with
String rather than files because the remote ssh files are gathered as lists
of strings.
- Author:
- Nick Collier
-
Nested Class Summary
-
Field Summary
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionvoid
addPattern
(OutputPattern pattern) Adds the specified pattern to the list of patterns used to find output.void
addPatterns
(Collection<OutputPattern> patterns) Adds all the OutputPatterns in the collection as patterns to find.protected List<MatchedFiles>
createMatches
(boolean useWindowsSeparators) protected void
Looks through the list of String filenames for the one that ends with the param map suffix.
-
Field Details
-
logger
protected static org.apache.log4j.Logger logger
-
-
Constructor Details
-
OutputFinder
public OutputFinder()
-
-
Method Details
-
addPattern
Adds the specified pattern to the list of patterns used to find output.- Parameters:
outputFileName
- the name into which all the output the matches the specified pattern is aggregated.pattern
- the pattern to match
-
addPatterns
Adds all the OutputPatterns in the collection as patterns to find.- Parameters:
patterns
- the patterns to add
-
createMatches
-
findFiles
Looks through the list of String filenames for the one that ends with the param map suffix. Then finds the output that matches that and adds both those files to the instance parameter.- Parameters:
allFiles
-instance
-
-