Package repast.simphony.batch.ssh
Class OutputFinder
- java.lang.Object
-
- repast.simphony.batch.ssh.OutputFinder
-
- Direct Known Subclasses:
LocalOutputFinder
,RemoteOutputFinderCopier
public abstract class OutputFinder extends Object
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
Nested Classes Modifier and Type Class Description protected static class
OutputFinder.Instance
-
Field Summary
Fields Modifier and Type Field Description protected static org.apache.log4j.Logger
logger
-
Constructor Summary
Constructors Constructor Description OutputFinder()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
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
findFiles(List<MatchedFiles> matchers, List<String> allFiles, String instanceDir)
Looks through the list of String filenames for the one that ends with the param map suffix.
-
-
-
Method Detail
-
addPattern
public void addPattern(OutputPattern pattern)
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
public void addPatterns(Collection<OutputPattern> patterns)
Adds all the OutputPatterns in the collection as patterns to find.- Parameters:
patterns
- the patterns to add
-
createMatches
protected List<MatchedFiles> createMatches(boolean useWindowsSeparators)
-
findFiles
protected void findFiles(List<MatchedFiles> matchers, List<String> allFiles, String instanceDir)
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
-
-
-