Constructor
new DefBoolean(val)
Default value
Parameters:
Name | Type | Description |
---|---|---|
val |
Boolean | The value |
- Source:
Members
OP_AND
Signifies an AND operation
- Source:
OP_OR
Signifies an OR operation
- Source:
Methods
compute(createInfo) → {Object}
Creates the boolean value
Parameters:
Name | Type | Description |
---|---|---|
createInfo |
CreateInfo | The creation info |
- Source:
Returns:
The boolean value of type TYPE_BOOLEAN
- Type
- Object
(static) fromNot(boolValue) → {CreateInfo}
Creates a new bool value that is the negation of the argument
Parameters:
Name | Type | Description |
---|---|---|
boolValue |
Number | Object | Either the index or value of a TYPE_BOOLEAN. The value to be negated |
- Source:
Returns:
The creation info
- Type
- CreateInfo
(static) fromOp(boolValues, operation) → {CreateInfo}
Create a new bool value that is the result of applying a boolean binary operation successively on all inputs.
Parameters:
Name | Type | Description |
---|---|---|
boolValues |
Object | Array | Either the indices or values stored in an Array or shallow Object of the values combined with the chosen operation |
operation |
Number | The operation. Possible values are stored as static variables in this class prefixed by OP_ |
- Source:
Returns:
The creation info
- Type
- CreateInfo
(static) fromPredicate(predicate, dependencies) → {CreateInfo}
Creates a boolean by applying a predicate on the specified dependencies
Parameters:
Name | Type | Description |
---|---|---|
predicate |
function | A predicate function taking dependencies and returning a boolean value |
dependencies |
Object | Array | Either the indices or values stored in an Array or shallow Object of the values this predicate depends on |
- Source:
Returns:
The creation info
- Type
- CreateInfo