Version 1.2 (June 2013)
 All Classes Namespaces Files Functions Variables Pages
Public Member Functions | List of all members
utils.Jfilter Class Reference

Used in simulation initialisation to ensure onky XML files are read as protocol files and previous results files are excluded. More...

Inheritance diagram for utils.Jfilter:

Public Member Functions

 Jfilter (String extension)
 Initialised the file extension filter and sets the extension to the specified argument. More...
 
boolean accept (File directory, String filename)
 Used to determine if a file should be excluded from the filter or whether the file name is acceptable. More...
 

Detailed Description

Used in simulation initialisation to ensure onky XML files are read as protocol files and previous results files are excluded.

Used in simulation initialisation to ensure onky XML files are read as protocol files and previous results files are excluded. This can occur when a simulation is being restarted

Constructor & Destructor Documentation

utils.Jfilter.Jfilter ( String  extension)

Initialised the file extension filter and sets the extension to the specified argument.

Initialised the file extension filter and sets the extension to the specified argument

Parameters
extensionThe file extension that should be filtered

Member Function Documentation

boolean utils.Jfilter.accept ( File  directory,
String  filename 
)

Used to determine if a file should be excluded from the filter or whether the file name is acceptable.

Used to determine if a file should be excluded from the filter or whether the file name is acceptable

Parameters
directoryThe directory of files being filtered
filenameThe filename being checked against the filter
Returns
Boolean value noting whether or not the file ends with the extension

The documentation for this class was generated from the following file: