Packageedu.stanford.covertlab.util
Classpublic class MathML

Contains functions for (very limited) conversion between actionscript infix mathematical formulae and MathML. An intermediate representation (actionscript object representation of prefix notation) is used in the conversion.

Supports the following variable and numeric types:

variable<ci>
float<cn>
integer<cn>
boolean<cn>

Supports the following operators:

+<plus>
-<minus>
/td><times>
/<divide>
^<power>
%<quotient>
!<not>
||<or>
&&<and>

Supports the following relations

==<eq> (overloaded with assignment operator)
!=<neq>
><gt>
<<lt>
>=<geq>
<=<leq>

Supports assignment

=<eq> (overloaded with equality relation)

See http://www.w3.org/TR/MathML2/ for complete definition of MathML specification.

Used by the CellML and SBML export methods of the network manager class.

See also

edu.stanford.covertlab.networkanalyzer.manager.NetworkManager


Public Methods
 MethodDefined by
  
infix2MathML(infix:String, numberProperties:String = ""):String
[static]
MathML
  
mathML2infix(mathML:String):String
[static]
MathML
Protected Methods
 MethodDefined by
  
infix2Prefix(infix:String):Object
[static]
MathML
  
mathML2Prefix(xml:XML):Object
[static]
MathML
  
prefix2Infix(prefix:Object):String
[static]
MathML
  
prefix2MathML(prefix:Object, numberProperties:String = ""):String
[static]
MathML
Method detail
infix2MathML()method
public static function infix2MathML(infix:String, numberProperties:String = ""):StringParameters
infix:String
 
numberProperties:String (default = "")

Returns
String
infix2Prefix()method 
protected static function infix2Prefix(infix:String):ObjectParameters
infix:String

Returns
Object
mathML2infix()method 
public static function mathML2infix(mathML:String):StringParameters
mathML:String

Returns
String
mathML2Prefix()method 
protected static function mathML2Prefix(xml:XML):ObjectParameters
xml:XML

Returns
Object
prefix2Infix()method 
protected static function prefix2Infix(prefix:Object):StringParameters
prefix:Object

Returns
String
prefix2MathML()method 
protected static function prefix2MathML(prefix:Object, numberProperties:String = ""):StringParameters
prefix:Object
 
numberProperties:String (default = "")

Returns
String