Extends
Classes
Members
exp_abx :boolean
Allow expressions of type A op B = X
- boolean
exp_axbc :boolean
Allow expressions of type A x B = C
- boolean
exp_axc :boolean
Allow expressions of type A op X = C
- boolean
exp_caxb :boolean
Allow inverse expressions, like C = A op B
- boolean
exp_xbc :boolean
Allow expressions of type X op B = C
- boolean
numericContent :boolean
This AutoContentProvider manages numeric expressions, so text literals should be
converted to numbers for comparisions, taking in account the
number format of the current locale (dot or comma as decimal separator)
- boolean
opA :module:automation/arith/Arith.Operator
First operator
- module:automation/arith/Arith.
Operator
opB :module:automation/arith/Arith.Operator
Second operator
- module:automation/arith/Arith.
Operator
opCond :string
Sorting of the operands in commutative operations. Possible values are: 'AGB' (A greater than B),
'BGA' (B greater tan A) and 'INDIF' (default)
- string
resultCarry :boolean
Allow carry operations
- boolean
resultLimInf :number
Lower limit of the result
- number
resultLimSup :number
Upper limit of the result
- number
resultNoDup :boolean
Avoid operations with the same result
- boolean
resultOrder :string
Type of sorting of results. Possible values are: 'NOSORT', 'SORTASC' and 'SORTDESC'
- string
use_add :boolean
Allow additions
- boolean
use_div :boolean
Allow divides
- boolean
use_mult :boolean
Allow multiplications
- boolean
use_subst :boolean
Allow subtractions
- boolean
Methods
genNum(n, op, limInf2, limSup2) → {boolean}
Fills the n
parameter (an Num
) with a value in accordance with the
specifications of op
(an Operator
), between two limits.
Name | Type | Description |
---|---|---|
n | module:automation/arith/Arith. | The number |
op | module:automation/arith/Arith. | The operator |
limInf2 | number | Lower limit |
limSup2 | number | Upper limit |
true
if all was OK
- Type:
- boolean
genOp(o) → {boolean}
Fills the provided Operator
with real values
Name | Type | Description |
---|---|---|
o | module:automation/arith/Arith. | The operator to use to generate the operation |
true
if all was OK
- Type:
- boolean
generateContent(nRows, nCols, content, useIds) → {boolean}
Builds an ActiveBagContentKit
and generates the automatized content.
Name | Type | Description |
---|---|---|
nRows | number | Number of rows to be processed |
nCols | number | Number of columns to be processed |
content | Array.<module:boxes/ActiveBagContent.ActiveBagContent> | Array with one or more containers of |
useIds | boolean | When |
true
if the process was OK.false
otherwise.
- Type:
- boolean
getAttributes() → {object}
Gets a object with the basic attributes needed to rebuild this instance excluding functions,
parent references, constants and also attributes retaining the default value.
The resulting object is commonly usued to serialize elements in JSON format.
- The resulting object, with minimal attrributes
- Type:
- object
init()
Initializes the content provider
process(kit) → {boolean}
Fills the provided ActiveBagContentKit with randomly generated operations
Name | Type | Description |
---|---|---|
kit | module:automation/AutoContentProvider. | The composite object to be filled with data. |
true
if all was OK
- Type:
- boolean
setAttributes(data) → {object}
Reads the properties of this Arith object from a dataset
Name | Type | Description |
---|---|---|
data | object | The data object to be parsed |
- Type:
- object
setProperties($xml)
Loads the object settings from a specific JQuery XML element
Name | Type | Description |
---|---|---|
$xml | external:jQuery | The XML element to parse |
- Source
(static) DecFormat(val, dec, pre) → {string}
Formats the number with a fixed number of decimals, optionally filling the result with leading
zeroes to have a fixed number of digits.
Name | Type | Description |
---|---|---|
val | number | The value to format |
dec | number | Number of decimals |
pre | number | Minimal number of digits before dot. |
- Source
- Type:
- string
(static) Operator#getAttributes() → {object}
Gets a object with the basic attributes needed to rebuild this instance excluding functions,
parent references, constants and also attributes retaining the default value.
The resulting object is commonly usued to serialize elements in JSON format.
- The resulting object, with minimal attrributes
- Type:
- object
(static) Operator#setAttributes(data) → {module:automation/arith/Arith.Arith}
Reads the properties of this operator from a dataset
Name | Type | Description |
---|---|---|
data | object | The data object to be parsed |
(static) Operator#setProperties($xml)
Loads Operator settings from a specific JQuery XML element
Name | Type | Description |
---|---|---|
$xml | external:jQuery | The XML element to parse |