|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectsbrt.shell.io.fba.SerFbaOptOutputFile<F>
F
- the fluxome type.public class SerFbaOptOutputFile<F extends Fluxome>
This class is used to write output files containing FBA optimization data as serialized maps.
SmoFile
Constructor Summary | |
---|---|
SerFbaOptOutputFile(java.lang.String fileName,
FileFormat fileFormat,
java.util.Set<java.lang.String> filterKeys,
FbaOptFileLineFormat fbaFormat)
Constructs a new serialized FBA optimization output file. |
Method Summary | |
---|---|
void |
addData(FbaOptimizer.Results results)
Writes the appropriate values in the provided FbaOptimizer.Results to this file. |
void |
addData(java.util.Map<java.lang.String,java.lang.Double> results)
Writes the appropriate values in the provided map to this file. |
void |
breakPoint()
Does nothing. |
void |
close()
Closes this file. |
java.lang.String |
getCanonicalName()
Returns the canonical name of this file. |
FbaOptFileLineFormat |
getFbaOptFileLineFormat()
Returns the FBA optimization file line format used to supply a header object for objective values. |
java.util.Set<java.lang.String> |
getFilterKeys()
Returns the set of keys whose values will be written to this output file when results are added. |
java.lang.String |
getName()
Returns the canonical name of this file. |
java.lang.String |
getOriginalName()
Returns the provided name of this file. |
boolean |
isClosed()
Indicates if this file has already been closed. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Methods inherited from interface sbrt.kernel.io.ResultsManager |
---|
addData |
Constructor Detail |
---|
public SerFbaOptOutputFile(java.lang.String fileName, FileFormat fileFormat, java.util.Set<java.lang.String> filterKeys, FbaOptFileLineFormat fbaFormat)
fileName
- the name of the file to create.fileFormat
- the format of the file to create.filterKeys
- a set of valid keys that will appear
in the file. This set can consist of reaction names and the
objective function header.fbaFormat
- the map format used to supply a
header object for objective values.Method Detail |
---|
public FbaOptFileLineFormat getFbaOptFileLineFormat()
getFbaOptFileLineFormat
in interface FbaOptOutputFile<F extends Fluxome>
FbaOptFileLineFormat.getObjValueHeader()
public java.util.Set<java.lang.String> getFilterKeys()
null
if every value in an added set of
results will be written to this file.public void addData(FbaOptimizer.Results results)
FbaOptimizer.Results
to this file.
The appropriates values are those returned by
getFilterKeys().
results
- the results to write to this file.
java.lang.IllegalArgumentException
- if the provided
results object does not contain all the variables in the
set returned by getFilterKeys().
java.lang.IllegalStateException
- if close()
has already been called.public void addData(java.util.Map<java.lang.String,java.lang.Double> results)
results
- the results vector to write to this file.
java.lang.IllegalArgumentException
- if the provided
map does not contain all the keys in the
set returned by getFilterKeys().
java.lang.IllegalStateException
- if close()
has already been called.public void close()
close
in interface ResultsManager<FbaOptimizer.Results>
close
in interface SbrtFile
public final java.lang.String getName()
getName
in interface ResultsManager<FbaOptimizer.Results>
public final java.lang.String getOriginalName()
getOriginalName
in interface SbrtFile
public final java.lang.String getCanonicalName()
getCanonicalName
in interface SbrtFile
File.getCanonicalPath()
public boolean isClosed()
isClosed
in interface ResultsManager<FbaOptimizer.Results>
isClosed
in interface SbrtFile
true
if this file is closed;
false
othewise.ResultsManager.close()
public void breakPoint()
breakPoint
in interface ResultsManager<FbaOptimizer.Results>
java.lang.IllegalStateException
- if close()
has already been called.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |