Package repast.simphony.batch.ssh
Class MatchedFiles
java.lang.Object
repast.simphony.batch.ssh.MatchedFiles
A collection of files that match some specified file pattern.
- Author:
- Nick Collier
- See Also:
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidaddAllFiles(Collection<File> files) Adds all the files as matched files.voidAdds the specified file as a match.voidaggregateOutput(String outputDir) Aggregates all the files into this MatchedFiles output file written to the specified directory.getFiles()Gets a List of the matched files.Gets the OutputPattern associated with this MatchedFiles.booleanisEmpty()Gets whether or not this MatchedFiles collection has any files.booleanGets whether or not the path matches this MatchedFiles pattern.
-
Constructor Details
-
MatchedFiles
-
-
Method Details
-
isEmpty
public boolean isEmpty()Gets whether or not this MatchedFiles collection has any files.- Returns:
- true if this has no files, otherwise false.
-
getPattern
Gets the OutputPattern associated with this MatchedFiles.- Returns:
-
matches
Gets whether or not the path matches this MatchedFiles pattern.- Parameters:
path-- Returns:
- true if there is a match otherwise false.
-
addFile
Adds the specified file as a match.- Parameters:
file-
-
getFiles
Gets a List of the matched files.- Returns:
- a List of the matched files.
-
addAllFiles
Adds all the files as matched files.- Parameters:
files-
-
aggregateOutput
Aggregates all the files into this MatchedFiles output file written to the specified directory.- Parameters:
outputDir-- Throws:
IOException
-