|
||||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objecttapeutils.Parameters
tapeutils.zx81.TapeConverterParameters
This class holds the parameters for conversion.
Constructor Summary | |
---|---|
TapeConverterParameters()
Default constructor. |
|
TapeConverterParameters(java.util.Properties props)
Constructor. |
|
TapeConverterParameters(java.lang.String fileName,
java.util.Properties props)
Constructor given a file name and properties. |
|
TapeConverterParameters(TapeConverterParameters shared)
Constructor. |
Method Summary | |
---|---|
void |
fileNamesUpdated()
Inform this object that one or more of the file names has been updated. |
ZX81SampleAnalyzerParameters[] |
getAnalyzerParameters()
Get the analyzer parameters. |
int |
getBeginIndex()
|
int |
getBeginIndex(boolean[] isDefault)
|
int |
getChannel()
|
int |
getChannel(boolean[] isDefault)
|
java.io.File |
getConfigFile()
Get the configuration file. |
ZX81SampleAnalyzerParameters |
getDefaults()
Get the default parameters for the sample analyzer. |
java.lang.String[] |
getFileNames()
Get the file names. |
boolean |
getInvert()
|
boolean |
getInvert(boolean[] isDefault)
|
int |
getMinSecondsGap()
|
int |
getMinSecondsGap(boolean[] isDefault)
|
int |
getNumExpectedFiles()
|
int |
getNumExpectedFiles(boolean[] isDefault)
|
int |
getNumFiles()
Get the number of files. |
java.lang.String[] |
getPFileNames(boolean knownOnly)
Get the file names as .P files. |
java.lang.String |
getRootName()
Get the root name of the sample. |
void |
initialize()
Initialize the parameters from the current properties object. |
void |
loadConfigFile(java.io.File configFile)
Initialise the parameters from the configuration file. |
void |
sampleSaved(java.io.File newFile)
Handle the siutation where the sample is saved to a new name. |
void |
saveConfigFile(java.io.File configFile)
Save the parameters to the configuration file. |
boolean |
setBeginIndex(int newValue)
|
boolean |
setChannel(int newValue)
|
void |
setConfigFile(java.io.File configFile)
Updates the configuration file name without reloading the properties. |
void |
setFileNames(java.lang.String fileNames)
Set the file names. |
boolean |
setInvert(boolean newValue)
|
boolean |
setMinSecondsGap(int newValue)
|
boolean |
setNumExpectedFiles(int newValue)
|
void |
setNumFiles(int numFiles)
Set the number of files actually in the sample. |
void |
setSampleFileName(java.lang.String sampleFileName,
boolean initialize)
Set the sample file name. |
Methods inherited from class tapeutils.Parameters |
---|
getValue, getValue, init, setValue, updatePropertyKeyRoot |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public TapeConverterParameters()
public TapeConverterParameters(TapeConverterParameters shared)
shared
- public TapeConverterParameters(java.util.Properties props)
props
- public TapeConverterParameters(java.lang.String fileName, java.util.Properties props)
fileName
- props
- Method Detail |
public void setSampleFileName(java.lang.String sampleFileName, boolean initialize)
sampleFileName
- initialize
- public void sampleSaved(java.io.File newFile)
Duplicate the parameters for the sample under the new name if none exist under that name.
newFile
- The new filepublic void setConfigFile(java.io.File configFile)
configFile
- public void loadConfigFile(java.io.File configFile) throws java.io.IOException
configFile
-
java.io.IOException
- An error occurred reading the config file.public void saveConfigFile(java.io.File configFile) throws java.io.IOException
configFile
-
java.io.IOException
- An error occurred reading the config file.public void initialize()
public void setFileNames(java.lang.String fileNames)
fileNames
- The file names.public void fileNamesUpdated()
The analyzers are assumed to already be in sync with the properties object so no re-initialization is done.
public void setNumFiles(int numFiles)
numFiles
- The number of files.public java.lang.String getRootName()
public int getNumFiles()
public java.lang.String[] getFileNames()
public java.lang.String[] getPFileNames(boolean knownOnly)
The "known" file names consist of either the set of file names specified in the config file, or just the root name.
knownOnly
- Only return the known file names.
public java.io.File getConfigFile()
public ZX81SampleAnalyzerParameters getDefaults()
public ZX81SampleAnalyzerParameters[] getAnalyzerParameters()
public boolean setInvert(boolean newValue)
newValue
-
public boolean setChannel(int newValue)
newValue
-
public boolean setBeginIndex(int newValue)
newValue
-
public boolean setMinSecondsGap(int newValue)
newValue
-
public boolean setNumExpectedFiles(int newValue)
newValue
-
public boolean getInvert()
public boolean getInvert(boolean[] isDefault)
isDefault
-
public int getChannel()
public int getChannel(boolean[] isDefault)
isDefault
-
public int getBeginIndex()
public int getBeginIndex(boolean[] isDefault)
isDefault
-
public int getMinSecondsGap()
public int getMinSecondsGap(boolean[] isDefault)
isDefault
-
public int getNumExpectedFiles()
public int getNumExpectedFiles(boolean[] isDefault)
isDefault
-
|
||||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |