<h2>org.das2.fsm.FileStorageModelOld</h2><p>Represents a method for storing data sets in a set of files by time.  The
 client provides a regex for the files and how each group of the regex is
 interpreted as a time digit.  The model can then be used to provide the set
 of files that cover a time range, etc.</p>
<h2>FileStorageModelOld( <a href='http://www-pw.physics.uiowa.edu/~jbf/autoplot/doc/org/das2/fsm/FileStorageModelOld.html'>org.das2.fsm.FileStorageModelOld</a> parent, <a href='http://www-pw.physics.uiowa.edu/~jbf/autoplot/doc/org/das2/util/filesystem/FileSystem.html'>org.das2.util.filesystem.FileSystem</a> root, <a href='https://docs.oracle.com/javase/8/docs/api/java/lang/String.html'>String</a> regex, <a href='http://www-pw.physics.uiowa.edu/~jbf/autoplot/doc/org/das2/fsm/FileStorageModelOld/FieldHandler.html'>org.das2.fsm.FileStorageModelOld.FieldHandler[]</a> handlers )</h2>
<p></p>

<hr>
<a name="StartYear4"></a>
<h2>StartYear4</h2>
<p></p>

<hr>
<a name="StartYear2"></a>
<h2>StartYear2</h2>
<p></p>

<hr>
<a name="StartMonth"></a>
<h2>StartMonth</h2>
<p></p>

<hr>
<a name="StartMonthName"></a>
<h2>StartMonthName</h2>
<p></p>

<hr>
<a name="StartDay"></a>
<h2>StartDay</h2>
<p></p>

<hr>
<a name="StartDoy"></a>
<h2>StartDoy</h2>
<p></p>

<hr>
<a name="StartHour"></a>
<h2>StartHour</h2>
<p></p>

<hr>
<a name="StartMinute"></a>
<h2>StartMinute</h2>
<p></p>

<hr>
<a name="StartSecond"></a>
<h2>StartSecond</h2>
<p></p>

<hr>
<a name="EndYear4"></a>
<h2>EndYear4</h2>
<p></p>

<hr>
<a name="EndYear2"></a>
<h2>EndYear2</h2>
<p></p>

<hr>
<a name="EndMonth"></a>
<h2>EndMonth</h2>
<p></p>

<hr>
<a name="EndMonthName"></a>
<h2>EndMonthName</h2>
<p></p>

<hr>
<a name="EndDay"></a>
<h2>EndDay</h2>
<p></p>

<hr>
<a name="EndDoy"></a>
<h2>EndDoy</h2>
<p></p>

<hr>
<a name="EndHour"></a>
<h2>EndHour</h2>
<p></p>

<hr>
<a name="EndMinute"></a>
<h2>EndMinute</h2>
<p></p>

<hr>
<a name="EndSecond"></a>
<h2>EndSecond</h2>
<p></p>

<hr>
<a name="Ignore"></a>
<h2>Ignore</h2>
<p></p>

<hr>
<a name="calculateNameFor"></a>
<h2>calculateNameFor</h2>
calculateNameFor( <a href='http://www-pw.physics.uiowa.edu/~jbf/autoplot/doc/org/das2/datum/Datum.html'>Datum</a> start ) &rarr; <a href='https://docs.oracle.com/javase/8/docs/api/java/lang/String.html'>String</a>

<p>return the name that this time will fall into.</p>

<h3>Parameters</h3>
start - a Datum

<h3>Returns:</h3>
the internal name of the file.
<br><br>
<a href="https://github.com/autoplot/dev/search?q=calculateNameFor&unscoped_q=calculateNameFor">[search for examples]</a>
 <a href="https://github.com/autoplot/documentation/tree/master/javadoc/org/das2/fsm/FileStorageModelOld.md">[view on GitHub]</a>
 <a href="http://www-pw.physics.uiowa.edu/~jbf/autoplot/javadoc2018/org/das2/fsm/FileStorageModelOld.html#calculateNameFor">[view on old javadoc]</a>
 <a href="https://saturn.physics.uiowa.edu/svn/das2/dasCore/community/autoplot2011/trunk/dasCore/src/org/das2/fsm/FileStorageModelOld.java">[view source]</a>
<br>
<br>
<hr>
<a name="containsFile"></a>
<h2>containsFile</h2>
containsFile( <a href='https://docs.oracle.com/javase/8/docs/api/java/io/File.html'>java.io.File</a> file ) &rarr; boolean

<p>returns true if the file came (or could come) from this FileStorageModel.</p>

<h3>Parameters</h3>
file - a File

<h3>Returns:</h3>
boolean

<br><br>
<a href="https://github.com/autoplot/dev/search?q=containsFile&unscoped_q=containsFile">[search for examples]</a>
 <a href="https://github.com/autoplot/documentation/tree/master/javadoc/org/das2/fsm/FileStorageModelOld.md">[view on GitHub]</a>
 <a href="http://www-pw.physics.uiowa.edu/~jbf/autoplot/javadoc2018/org/das2/fsm/FileStorageModelOld.html#containsFile">[view on old javadoc]</a>
 <a href="https://saturn.physics.uiowa.edu/svn/das2/dasCore/community/autoplot2011/trunk/dasCore/src/org/das2/fsm/FileStorageModelOld.java">[view source]</a>
<br>
<br>
<hr>
<a name="create"></a>
<h2>create</h2>
create( <a href='http://www-pw.physics.uiowa.edu/~jbf/autoplot/doc/org/das2/util/filesystem/FileSystem.html'>org.das2.util.filesystem.FileSystem</a> root, <a href='https://docs.oracle.com/javase/8/docs/api/java/lang/String.html'>String</a> regex, int[] digitList ) &rarr; <a href='http://www-pw.physics.uiowa.edu/~jbf/autoplot/doc/org/das2/fsm/FileStorageModelOld.html'>org.das2.fsm.FileStorageModelOld</a>

<p></p>

<h3>Parameters</h3>
root - a FileSystem
<br>
regex - a String
<br>
digitList - an int[]

<h3>Returns:</h3>
org.das2.fsm.FileStorageModelOld

<br><br>
<a href="https://github.com/autoplot/dev/search?q=create&unscoped_q=create">[search for examples]</a>
 <a href="https://github.com/autoplot/documentation/tree/master/javadoc/org/das2/fsm/FileStorageModelOld.md">[view on GitHub]</a>
 <a href="http://www-pw.physics.uiowa.edu/~jbf/autoplot/javadoc2018/org/das2/fsm/FileStorageModelOld.html#create">[view on old javadoc]</a>
 <a href="https://saturn.physics.uiowa.edu/svn/das2/dasCore/community/autoplot2011/trunk/dasCore/src/org/das2/fsm/FileStorageModelOld.java">[view source]</a>
<br>
<br>
create( <a href='http://www-pw.physics.uiowa.edu/~jbf/autoplot/doc/org/das2/util/filesystem/FileSystem.html'>org.das2.util.filesystem.FileSystem</a> root, <a href='https://docs.oracle.com/javase/8/docs/api/java/lang/String.html'>String</a> template ) &rarr; <a href='http://www-pw.physics.uiowa.edu/~jbf/autoplot/doc/org/das2/fsm/FileStorageModelOld.html'>org.das2.fsm.FileStorageModelOld</a><br>
<hr>
<a name="getFileFor"></a>
<h2>getFileFor</h2>
getFileFor( <a href='https://docs.oracle.com/javase/8/docs/api/java/lang/String.html'>String</a> name, <a href='http://www-pw.physics.uiowa.edu/~jbf/autoplot/doc/org/das2/util/monitor/ProgressMonitor.html'>ProgressMonitor</a> monitor ) &rarr; <a href='https://docs.oracle.com/javase/8/docs/api/java/io/File.html'>java.io.File</a>

<p>retrieve the file for the name.</p>

<h3>Parameters</h3>
name - a String
<br>
monitor - a ProgressMonitor

<h3>Returns:</h3>
java.io.File

<br><br>
<a href="https://github.com/autoplot/dev/search?q=getFileFor&unscoped_q=getFileFor">[search for examples]</a>
 <a href="https://github.com/autoplot/documentation/tree/master/javadoc/org/das2/fsm/FileStorageModelOld.md">[view on GitHub]</a>
 <a href="http://www-pw.physics.uiowa.edu/~jbf/autoplot/javadoc2018/org/das2/fsm/FileStorageModelOld.html#getFileFor">[view on old javadoc]</a>
 <a href="https://saturn.physics.uiowa.edu/svn/das2/dasCore/community/autoplot2011/trunk/dasCore/src/org/das2/fsm/FileStorageModelOld.java">[view source]</a>
<br>
<br>
<hr>
<a name="getFileSystem"></a>
<h2>getFileSystem</h2>
getFileSystem(  ) &rarr; <a href='http://www-pw.physics.uiowa.edu/~jbf/autoplot/doc/org/das2/util/filesystem/FileSystem.html'>org.das2.util.filesystem.FileSystem</a>

<p></p>

<h3>Returns:</h3>
org.das2.util.filesystem.FileSystem

<br><br>
<a href="https://github.com/autoplot/dev/search?q=getFileSystem&unscoped_q=getFileSystem">[search for examples]</a>
 <a href="https://github.com/autoplot/documentation/tree/master/javadoc/org/das2/fsm/FileStorageModelOld.md">[view on GitHub]</a>
 <a href="http://www-pw.physics.uiowa.edu/~jbf/autoplot/javadoc2018/org/das2/fsm/FileStorageModelOld.html#getFileSystem">[view on old javadoc]</a>
 <a href="https://saturn.physics.uiowa.edu/svn/das2/dasCore/community/autoplot2011/trunk/dasCore/src/org/das2/fsm/FileStorageModelOld.java">[view source]</a>
<br>
<br>
<hr>
<a name="getFilenameFor"></a>
<h2>getFilenameFor</h2>
getFilenameFor( <a href='http://www-pw.physics.uiowa.edu/~jbf/autoplot/doc/org/das2/datum/Datum.html'>Datum</a> start, <a href='http://www-pw.physics.uiowa.edu/~jbf/autoplot/doc/org/das2/datum/Datum.html'>Datum</a> end ) &rarr; <a href='https://docs.oracle.com/javase/8/docs/api/java/lang/String.html'>String</a>

<p></p>

<h3>Parameters</h3>
start - a Datum
<br>
end - a Datum

<h3>Returns:</h3>
java.lang.String

<br><br>
<a href="https://github.com/autoplot/dev/search?q=getFilenameFor&unscoped_q=getFilenameFor">[search for examples]</a>
 <a href="https://github.com/autoplot/documentation/tree/master/javadoc/org/das2/fsm/FileStorageModelOld.md">[view on GitHub]</a>
 <a href="http://www-pw.physics.uiowa.edu/~jbf/autoplot/javadoc2018/org/das2/fsm/FileStorageModelOld.html#getFilenameFor">[view on old javadoc]</a>
 <a href="https://saturn.physics.uiowa.edu/svn/das2/dasCore/community/autoplot2011/trunk/dasCore/src/org/das2/fsm/FileStorageModelOld.java">[view source]</a>
<br>
<br>
<hr>
<a name="getFilesFor"></a>
<h2>getFilesFor</h2>
getFilesFor( <a href='http://www-pw.physics.uiowa.edu/~jbf/autoplot/doc/org/das2/datum/DatumRange.html'>DatumRange</a> targetRange ) &rarr; <a href='https://docs.oracle.com/javase/8/docs/api/java/io/File.html'>java.io.File[]</a>

<p></p>

<h3>Parameters</h3>
targetRange - a DatumRange

<h3>Returns:</h3>
java.io.File[]

<br><br>
<a href="https://github.com/autoplot/dev/search?q=getFilesFor&unscoped_q=getFilesFor">[search for examples]</a>
 <a href="https://github.com/autoplot/documentation/tree/master/javadoc/org/das2/fsm/FileStorageModelOld.md">[view on GitHub]</a>
 <a href="http://www-pw.physics.uiowa.edu/~jbf/autoplot/javadoc2018/org/das2/fsm/FileStorageModelOld.html#getFilesFor">[view on old javadoc]</a>
 <a href="https://saturn.physics.uiowa.edu/svn/das2/dasCore/community/autoplot2011/trunk/dasCore/src/org/das2/fsm/FileStorageModelOld.java">[view source]</a>
<br>
<br>
getFilesFor( <a href='http://www-pw.physics.uiowa.edu/~jbf/autoplot/doc/org/das2/datum/DatumRange.html'>DatumRange</a> targetRange, <a href='http://www-pw.physics.uiowa.edu/~jbf/autoplot/doc/org/das2/util/monitor/ProgressMonitor.html'>ProgressMonitor</a> monitor ) &rarr; <a href='https://docs.oracle.com/javase/8/docs/api/java/io/File.html'>java.io.File[]</a><br>
<hr>
<a name="getNameFor"></a>
<h2>getNameFor</h2>
getNameFor( <a href='https://docs.oracle.com/javase/8/docs/api/java/io/File.html'>java.io.File</a> file ) &rarr; <a href='https://docs.oracle.com/javase/8/docs/api/java/lang/String.html'>String</a>

<p>Need a way to recover the model name of a file.  The returned File from getFilesFor can be anywhere,
 so it would be good to provide a way to get it back into a FSM name.</p>

<h3>Parameters</h3>
file - a File

<h3>Returns:</h3>
java.lang.String

<br><br>
<a href="https://github.com/autoplot/dev/search?q=getNameFor&unscoped_q=getNameFor">[search for examples]</a>
 <a href="https://github.com/autoplot/documentation/tree/master/javadoc/org/das2/fsm/FileStorageModelOld.md">[view on GitHub]</a>
 <a href="http://www-pw.physics.uiowa.edu/~jbf/autoplot/javadoc2018/org/das2/fsm/FileStorageModelOld.html#getNameFor">[view on old javadoc]</a>
 <a href="https://saturn.physics.uiowa.edu/svn/das2/dasCore/community/autoplot2011/trunk/dasCore/src/org/das2/fsm/FileStorageModelOld.java">[view source]</a>
<br>
<br>
<hr>
<a name="getNamesFor"></a>
<h2>getNamesFor</h2>
getNamesFor( <a href='http://www-pw.physics.uiowa.edu/~jbf/autoplot/doc/org/das2/datum/DatumRange.html'>DatumRange</a> targetRange ) &rarr; <a href='https://docs.oracle.com/javase/8/docs/api/java/lang/String.html'>String[]</a>

<p></p>

<h3>Parameters</h3>
targetRange - restrict search to range.  May be null, in which case all names are returned.

<h3>Returns:</h3>
java.lang.String[]

<br><br>
<a href="https://github.com/autoplot/dev/search?q=getNamesFor&unscoped_q=getNamesFor">[search for examples]</a>
 <a href="https://github.com/autoplot/documentation/tree/master/javadoc/org/das2/fsm/FileStorageModelOld.md">[view on GitHub]</a>
 <a href="http://www-pw.physics.uiowa.edu/~jbf/autoplot/javadoc2018/org/das2/fsm/FileStorageModelOld.html#getNamesFor">[view on old javadoc]</a>
 <a href="https://saturn.physics.uiowa.edu/svn/das2/dasCore/community/autoplot2011/trunk/dasCore/src/org/das2/fsm/FileStorageModelOld.java">[view source]</a>
<br>
<br>
getNamesFor( <a href='http://www-pw.physics.uiowa.edu/~jbf/autoplot/doc/org/das2/datum/DatumRange.html'>DatumRange</a> targetRange, <a href='http://www-pw.physics.uiowa.edu/~jbf/autoplot/doc/org/das2/util/monitor/ProgressMonitor.html'>ProgressMonitor</a> monitor ) &rarr; <a href='https://docs.oracle.com/javase/8/docs/api/java/lang/String.html'>String[]</a><br>
<hr>
<a name="getParentRegex"></a>
<h2>getParentRegex</h2>
getParentRegex( <a href='https://docs.oracle.com/javase/8/docs/api/java/lang/String.html'>String</a> regex ) &rarr; <a href='https://docs.oracle.com/javase/8/docs/api/java/lang/String.html'>String</a>

<p></p>

<h3>Parameters</h3>
regex - a String

<h3>Returns:</h3>
java.lang.String

<br><br>
<a href="https://github.com/autoplot/dev/search?q=getParentRegex&unscoped_q=getParentRegex">[search for examples]</a>
 <a href="https://github.com/autoplot/documentation/tree/master/javadoc/org/das2/fsm/FileStorageModelOld.md">[view on GitHub]</a>
 <a href="http://www-pw.physics.uiowa.edu/~jbf/autoplot/javadoc2018/org/das2/fsm/FileStorageModelOld.html#getParentRegex">[view on old javadoc]</a>
 <a href="https://saturn.physics.uiowa.edu/svn/das2/dasCore/community/autoplot2011/trunk/dasCore/src/org/das2/fsm/FileStorageModelOld.java">[view source]</a>
<br>
<br>
<hr>
<a name="getRangeFor"></a>
<h2>getRangeFor</h2>
getRangeFor( <a href='https://docs.oracle.com/javase/8/docs/api/java/lang/String.html'>String</a> name ) &rarr; <a href='http://www-pw.physics.uiowa.edu/~jbf/autoplot/doc/org/das2/datum/DatumRange.html'>DatumRange</a>

<p></p>

<h3>Parameters</h3>
name - a String

<h3>Returns:</h3>
org.das2.datum.DatumRange

<br><br>
<a href="https://github.com/autoplot/dev/search?q=getRangeFor&unscoped_q=getRangeFor">[search for examples]</a>
 <a href="https://github.com/autoplot/documentation/tree/master/javadoc/org/das2/fsm/FileStorageModelOld.md">[view on GitHub]</a>
 <a href="http://www-pw.physics.uiowa.edu/~jbf/autoplot/javadoc2018/org/das2/fsm/FileStorageModelOld.html#getRangeFor">[view on old javadoc]</a>
 <a href="https://saturn.physics.uiowa.edu/svn/das2/dasCore/community/autoplot2011/trunk/dasCore/src/org/das2/fsm/FileStorageModelOld.java">[view source]</a>
<br>
<br>
<hr>
<a name="getRepresentativeFile"></a>
<h2>getRepresentativeFile</h2>
getRepresentativeFile( <a href='http://www-pw.physics.uiowa.edu/~jbf/autoplot/doc/org/das2/util/monitor/ProgressMonitor.html'>ProgressMonitor</a> monitor ) &rarr; <a href='https://docs.oracle.com/javase/8/docs/api/java/lang/String.html'>String</a>

<p>this is introduced to support discovery, where we just need one file to
 get started.  Before, there was code that would list all files, then use
 just the first one.  This may return a skeleton file, but getFileFor() must
 return a result.
 This implementation does the same as getNames(), but stops after finding a file.</p>

<h3>Parameters</h3>
monitor - a ProgressMonitor

<h3>Returns:</h3>
null if no file is found
<br><br>
<a href="https://github.com/autoplot/dev/search?q=getRepresentativeFile&unscoped_q=getRepresentativeFile">[search for examples]</a>
 <a href="https://github.com/autoplot/documentation/tree/master/javadoc/org/das2/fsm/FileStorageModelOld.md">[view on GitHub]</a>
 <a href="http://www-pw.physics.uiowa.edu/~jbf/autoplot/javadoc2018/org/das2/fsm/FileStorageModelOld.html#getRepresentativeFile">[view on old javadoc]</a>
 <a href="https://saturn.physics.uiowa.edu/svn/das2/dasCore/community/autoplot2011/trunk/dasCore/src/org/das2/fsm/FileStorageModelOld.java">[view source]</a>
<br>
<br>
<hr>
<a name="setFileWidth"></a>
<h2>setFileWidth</h2>
setFileWidth( int multiplier, char digitCode ) &rarr; void

<p>specify each file's width when the implicit width is not correct.  For
 example, files are stored with a tag for the starting day, but actually
 span a week.  The width must be an integer multiple of one year, month,
 day, hour, minute, or second.</p>

<h3>Parameters</h3>
multiplier - an int
<br>
digitCode - 'Y', 'm', 'd', 'H', etc.

<h3>Returns:</h3>
void (returns nothing)

<br><br>
<a href="https://github.com/autoplot/dev/search?q=setFileWidth&unscoped_q=setFileWidth">[search for examples]</a>
 <a href="https://github.com/autoplot/documentation/tree/master/javadoc/org/das2/fsm/FileStorageModelOld.md">[view on GitHub]</a>
 <a href="http://www-pw.physics.uiowa.edu/~jbf/autoplot/javadoc2018/org/das2/fsm/FileStorageModelOld.html#setFileWidth">[view on old javadoc]</a>
 <a href="https://saturn.physics.uiowa.edu/svn/das2/dasCore/community/autoplot2011/trunk/dasCore/src/org/das2/fsm/FileStorageModelOld.java">[view source]</a>
<br>
<br>
<hr>
<a name="toString"></a>
<h2>toString</h2>
toString(  ) &rarr; <a href='https://docs.oracle.com/javase/8/docs/api/java/lang/String.html'>String</a>

<p></p>

<h3>Returns:</h3>
java.lang.String

<br><br>
<a href="https://github.com/autoplot/dev/search?q=toString&unscoped_q=toString">[search for examples]</a>
 <a href="https://github.com/autoplot/documentation/tree/master/javadoc/org/das2/fsm/FileStorageModelOld.md">[view on GitHub]</a>
 <a href="http://www-pw.physics.uiowa.edu/~jbf/autoplot/javadoc2018/org/das2/fsm/FileStorageModelOld.html#toString">[view on old javadoc]</a>
 <a href="https://saturn.physics.uiowa.edu/svn/das2/dasCore/community/autoplot2011/trunk/dasCore/src/org/das2/fsm/FileStorageModelOld.java">[view source]</a>
<br>
<br>