sbrt.shell.text.math
Interface MathExprFormat<E extends MathExpr<V>,V>

Type Parameters:
E - the expression type.
V - the variable type.
All Superinterfaces:
Format, Formatter<E>, Parser<E>, SimpleFormat<E>
All Known Subinterfaces:
LinearCombFormat<V>
All Known Implementing Classes:
LinearCombFormatV1, LinearCombFormatV2

public interface MathExprFormat<E extends MathExpr<V>,V>
extends SimpleFormat<E>

This interface is used to represent formats for linear combinations.

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

Method Summary
 java.lang.String format(E expression)
          Returns a formatted string representation of the provided linear combination.
 E parse(java.lang.String expression)
          Parses the provided string and returns its corresponding linear combination.
 
Methods inherited from interface sbrt.shell.text.Formatter
format
 

Method Detail

format

java.lang.String format(E expression)
Returns a formatted string representation of the provided linear combination.

Parameters:
expression - the linear combination to be formatted.
Returns:
a formatted string representation of the provided linear combination.

parse

E parse(java.lang.String expression)
Parses the provided string and returns its corresponding linear combination.

Specified by:
parse in interface Parser<E extends MathExpr<V>>
Parameters:
expression - the string to be parsed.
Returns:
the linear combination corresponding to the provided string.