|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectsbrt.shell.text.fba.FbaOptFileLineFormatV1
public final class FbaOptFileLineFormatV1
This class is a concrete implementation of FbaOptFileLineFormat.
Constructor Summary | |
---|---|
FbaOptFileLineFormatV1(Fluxome fluxome)
Constructs a new FBA optimization file line format. |
Method Summary | |
---|---|
java.lang.String |
formatKey(java.lang.String key)
Returns a formatted string representation of the provided key. |
java.lang.String |
formatKeys(java.util.Set<? extends java.lang.String> keys)
Returns a formatted string representation of the provided set of keys. |
java.lang.String |
formatPair(java.util.Map.Entry<? extends java.lang.String,? extends java.lang.Double> entry)
Returns a formatted string representation of the provided map entry. |
java.lang.String |
formatPair(java.lang.String key,
java.lang.Double value)
Returns a string representation of the provided key-value pair. |
java.lang.String |
formatValue(java.lang.Double value)
Returns a formatted string representation of the provided value. |
java.lang.String |
formatValues(java.util.List<? extends java.lang.Double> values)
Returns a string representation of the provided list of values. |
java.lang.String |
formatValues(java.util.Map<? extends java.lang.String,? extends java.lang.Double> map)
Returns a string representation of the values in the provided map formatted as a list. |
DoubleFormatV1 |
getDoubleFormat()
Returns the format used for doubles. |
Fluxome |
getFluxome()
Returns the fluxome used to verify reaction names. |
java.lang.String |
getObjValueHeader()
Returns the header used to indicate the value of the objective function. |
boolean |
isObjValueHeader(java.lang.String s)
Indicates if the provided string is the header used to indicate the value of the objective function. |
java.util.LinkedHashSet<java.lang.String> |
parseAllKeys(java.lang.String allKeys)
Parses the provided string and returns its corresponding set of keys. |
java.util.Map<java.lang.String,java.lang.Double> |
parseAllPairs(java.lang.String allkeys,
java.lang.String allValues)
Parses the provided set of keys and list of values and returns a corresponding map of variable-value pairs. |
java.util.Map<java.lang.String,java.lang.Double> |
parseAllValues(java.util.LinkedHashSet<? extends java.lang.String> allkeys,
java.lang.String allValues)
Parses the provided string of values and returns a corresponding map of variable-value pairs using the provided set of keys. |
java.util.List<java.lang.Double> |
parseAllValues(java.lang.String allValues)
Parses the provided string and returns its corresponding list of values. |
java.lang.String |
parseKey(java.lang.String key)
Parses the provided string and returns its corresponding key. |
java.util.Map.Entry<java.lang.String,java.lang.Double> |
parsePair(java.lang.String mapEntry)
Parses the provided map entry string, and returns its corresponding map entry. |
java.lang.Double |
parseValue(java.lang.String value)
Parses the provided string and returns its corresponding value. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public FbaOptFileLineFormatV1(Fluxome fluxome)
fluxome
- the fluxome used to verify reaction
names.Method Detail |
---|
public boolean isObjValueHeader(java.lang.String s)
isObjValueHeader
in interface FbaOptFileLineFormat
s
- the string to compare.
true
if the provided string is equal
to the string returned by getObjValueHeader();
false
otherwise.public java.lang.String getObjValueHeader()
getObjValueHeader
in interface FbaOptFileLineFormat
public DoubleFormatV1 getDoubleFormat()
public Fluxome getFluxome()
getFluxome
in interface FbaOptFileLineFormat
public java.lang.String formatKey(java.lang.String key)
formatKey
in interface MapFormat<java.lang.String,java.lang.Double>
key
- the key to be formatted.
public java.lang.String formatValue(java.lang.Double value)
formatValue
in interface MapFormat<java.lang.String,java.lang.Double>
value
- the value to be formatted.
public java.lang.String formatKeys(java.util.Set<? extends java.lang.String> keys)
formatKeys
in interface MapFormat<java.lang.String,java.lang.Double>
keys
- the set of keys to be formatted.
public java.lang.String formatValues(java.util.List<? extends java.lang.Double> values)
formatValues
in interface MapFormat<java.lang.String,java.lang.Double>
values
- the list of values to be formatted.
public java.lang.String formatValues(java.util.Map<? extends java.lang.String,? extends java.lang.Double> map)
java.util.Map
for further details.
formatValues
in interface MapFormat<java.lang.String,java.lang.Double>
map
- keys mapped to their respective values.
public java.lang.String formatPair(java.lang.String key, java.lang.Double value)
formatPair
in interface MapFormat<java.lang.String,java.lang.Double>
key
- the key.value
- the value.
public java.lang.String formatPair(java.util.Map.Entry<? extends java.lang.String,? extends java.lang.Double> entry)
formatPair
in interface MapFormat<java.lang.String,java.lang.Double>
entry
- the map entry.
public java.lang.String parseKey(java.lang.String key)
parseKey
in interface MapFormat<java.lang.String,java.lang.Double>
key
- a string representation of a key.
public java.lang.Double parseValue(java.lang.String value)
parseValue
in interface MapFormat<java.lang.String,java.lang.Double>
value
- a string representation of a value.
public java.util.Map.Entry<java.lang.String,java.lang.Double> parsePair(java.lang.String mapEntry)
parsePair
in interface MapFormat<java.lang.String,java.lang.Double>
mapEntry
- the string representation of a
single map entry.
public java.util.LinkedHashSet<java.lang.String> parseAllKeys(java.lang.String allKeys)
parseAllKeys
in interface MapFormat<java.lang.String,java.lang.Double>
allKeys
- a string representation of a set
of keys.
public java.util.List<java.lang.Double> parseAllValues(java.lang.String allValues)
parseAllValues
in interface MapFormat<java.lang.String,java.lang.Double>
allValues
- a string representation of a list
of values.
public java.util.Map<java.lang.String,java.lang.Double> parseAllValues(java.util.LinkedHashSet<? extends java.lang.String> allkeys, java.lang.String allValues)
parseAllValues
in interface MapFormat<java.lang.String,java.lang.Double>
allkeys
- the set of keys with which
to associate the parsed values.allValues
- a string representation of a list
of values.
public java.util.Map<java.lang.String,java.lang.Double> parseAllPairs(java.lang.String allkeys, java.lang.String allValues)
parseAllPairs
in interface MapFormat<java.lang.String,java.lang.Double>
allkeys
- a string representation of a set
of keys.allValues
- a string representation of a list of
values.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |