API Docs for: 1.0

Class ComparisonData

Class defined in: src/js/model.js:1240

Defines an object which holds the data of a comparison of two Ord instances.

ComparisonData( firstOpnd, secondOpnd )
src/js/model.js:1240
Parameters:
  • firstOpnd <Ord>
  • secondOpnd <Ord>
DocumentFragment getDataAsHTML( )
src/js/model.js:1293

Returns: <DocumentFragment> A DocumentFragment with child nodes containing the values of the registers and the relation between them.
Array of Ord getOpnds( )
src/js/model.js:1282

Returns an array with the two operands (as Ord instances). The left operand is placed at (array-)index 0, the right operand at index 1.


Returns: <Array of Ord> the Array
Number / null getResult( )
src/js/model.js:1269

Returns the result value if valid or null


Returns: <Number / null> the compare value
opnd1 The first operand <Ord>
src/js/model.js:1249
opnd2 The second operand <Ord>
src/js/model.js:1254
result <Number first operand>
src/js/model.js:1262