Type alias for one of these four types:
The first type (SatisfierBranch) is used to construct a branch satisfier that requires other satisfiers to be evaluated. The remaining three types are used to construct leaf satisfiers, which may either assign modules (SatisfierLeafAssign), impose a constraint on the assigned modules (SatisfierLeafConstraint), or filter assigned modules (SatisfierLeafFilter).
Function type taking in a list of remaining modules and returning an object with the following properties:
remainingMask, an array of booleans of the same length as remaining,
with true marking the corresponding module as assigned and false
marking the corresponding module as not assigned; andcontext (optional), inherited from Context.Object with the following properties:
ref, a reference string denoting the satisfier;info (optional), an info string that is displayed if the satisfier is
invoked.Object with the following properties:
ref, inherited from SatisfierBase;info (optional), inherited from SatisfierBase;satisfiers, which is a list of satisfiers;reduce (optional), which is a SatisfierReduce function that reduces
a list of satisfier results into an object containing a boolean with optional
context; andmessage (optional), which is an error message string that is displayed
if reduce returns a false result.The reduce property must be specified along with the message property.
Function type taking in a list of assigned modules and returning an object with the following properties:
isSatisfied, a boolean indicating if the list of assigned modulesmeets the constraint; and
2. context (optional), inherited from Context.
Function type taking in a list of assigned modules and returning an object with the following properties:
assignedMask, an array of booleans of the same length as assigned,
with true marking the corresponding module as still assigned and
false marking the corresponding module as unassigned; andcontext (optional), inherited from Context.Object with the following properties:
ref, inherited from SatisfierBase;info (optional), inherited from SatisfierBase; andassign, which is a SatisfierAssign function used to assign modules
from a list of remaining modules.Object with the following properties:
ref, inherited from SatisfierBase;info (optional), inherited from SatisfierBase;constraint, which is a SatisfierConstraint function used to enforce
some constraint on a list of assigned modules; andmessage, which is an error message displayed if constraint returns
a false result.Object with the following properties:
ref, inherited from SatisfierBase;info (optional), inherited from SatisfierBase; andfilter, which is a SatisfierFilter function used to filter a list
of assigned modules.Function type taking in a list of SatisfierResult and returning an object with the following properties:
isSatisfied, a boolean indicating the reduction of the results; andcontext (optional), inherited from Context.Object containing the following properties:
ref, inherited from SatisfierBase;info (optional), inherited from SatisfierBase;added, a list of modules added during the evaluation of the satisfier;assigned, a list of assigned modules after the evaluation of the
satisfier;remaining, a list of remaining modules after the evaluation of the
satisfier;removed, a list of modules removed during the evaluation of the
satisfier;isSatisfied, a boolean indicating if the satisfier is satisfied;results, a list of satisfier results;message (optional), an error message displayed if isSatisfied is
false; andcontext (optional), inherited from Context.Satisfier results are arranged in a tree-like structure, similar to that of
satisfiers. For branch satisfiers which contain child satisfiers, the list of
results from the evaluation of each child satisfier is stored in results.
For leaf satisfiers, the results array is empty.
Generated using TypeDoc
Object with the
context(optional) property, which is used to denote some context and can take on any value.