sbrt.shell.text.math
Interface LinearCombTermFormat<V>

Type Parameters:
V - the variable type.
All Superinterfaces:
Format, Formatter<LinearComb.Term<? extends V>>, Parser<LinearComb.Term<? extends V>>, SimpleFormat<LinearComb.Term<? extends V>>
All Known Implementing Classes:
LinCombTermFormatV1, LinCombTermFormatV2

public interface LinearCombTermFormat<V>
extends SimpleFormat<LinearComb.Term<? extends V>>

This interface is used to represent the formats of terms from linear combinations.

Author:
This interface was written and documented by Jeremiah Wright while in the Wagner lab.

Method Summary
 java.lang.String format(LinearComb.Term<? extends V> term)
          Returns a formatted string representation of the provided term.
 LinearComb.Term<V> parse(java.lang.String term)
          Parses the provided string and returns its corresponding term.
 
Methods inherited from interface sbrt.shell.text.Formatter
format
 

Method Detail

format

java.lang.String format(LinearComb.Term<? extends V> term)
Returns a formatted string representation of the provided term.

Parameters:
term - the term to be formatted.
Returns:
a formatted string representation of the provided term.

parse

LinearComb.Term<V> parse(java.lang.String term)
Parses the provided string and returns its corresponding term.

Specified by:
parse in interface Parser<LinearComb.Term<? extends V>>
Parameters:
term - the string to be parsed.
Returns:
the term corresponding to the provided string.