RestrictedContext
A case class that represents a restricted evaluation context for a specific Factor.
The RestrictedContext is a specialized Context implementation that confines its qualifications to a single Factor. It determines whether a given factor matches the specific factor (context) it was instantiated with. This ensures that only evaluations respecting this restricted context are allowed.
Value parameters
- context
-
the specific factor that defines the restrictive context. Only factors matching this will qualify.
Attributes
- Constructor
-
Creates a
RestrictedContextwith a predefinedFactorto enforce context-based restrictions. - Graph
-
- Supertypes
-
trait Serializabletrait Producttrait Equalstrait CoreContextclass Objecttrait Matchableclass AnyShow all
Members list
Value members
Concrete methods
Determines whether the given factor qualifies for this Context.
Determines whether the given factor qualifies for this Context.
TODO this needs to be checked!
Value parameters
- f
-
the factor.
Attributes
- Returns
-
true if the factor qualifies; false otherwise.
Inherited methods
Produces a new context that requires both this context and the provided context to qualify a factor. The resulting context effectively applies a logical AND operation between this context and the given context.
Produces a new context that requires both this context and the provided context to qualify a factor. The resulting context effectively applies a logical AND operation between this context and the given context.
Value parameters
- that
-
the second context that will be combined with this context using a logical AND operation.
Attributes
- Returns
-
a new
Contextthat qualifies a factor only if it qualifies in both this context and the given context. - Inherited from:
- CoreContext
Checks if the given Field qualifies based on its associated factor, if any.
Checks if the given Field qualifies based on its associated factor, if any.
CONSIDER moving Field into inner package.
Value parameters
- f
-
the field to evaluate.
Attributes
- Returns
-
true if the field's associated factor qualifies, or if no factor is associated; false otherwise.
- Inherited from:
- CoreContext
Negates the qualification of a factor in the current context.
Negates the qualification of a factor in the current context.
Attributes
- Returns
-
A new context that inverts the qualification logic for factors.
- Inherited from:
- CoreContext
Combines this Context with another Context using a logical OR operation. The resulting Context qualifies a factor if it qualifies in either the current Context or the provided Context.
Combines this Context with another Context using a logical OR operation. The resulting Context qualifies a factor if it qualifies in either the current Context or the provided Context.
Value parameters
- that
-
the other
Contextto combine with thisContext.
Attributes
- Returns
-
a new
Contextthat represents the logical OR of the two contexts. - Inherited from:
- CoreContext
An iterator over the names of all the elements of this product.
An iterator over the names of all the elements of this product.
Attributes
- Inherited from:
- Product
An iterator over all the elements of this product.
An iterator over all the elements of this product.
Attributes
- Returns
-
in the default implementation, an
Iterator[Any] - Inherited from:
- Product
Determines whether a given optional field qualifies based on its associated factor.
Determines whether a given optional field qualifies based on its associated factor.
This method evaluates an optional Field to determine if it can be considered a qualifying field within the given context. The Field must have an associated factor, and that factor must qualify based on the fieldQualifies logic.
Value parameters
- fo
-
an optional
Fieldto be evaluated.
Attributes
- Returns
-
an optional
Fieldif it qualifies; otherwise,None. - Inherited from:
- CoreContext
Concrete fields
Returns a string representation of the object.
Returns a string representation of the object.
The default representation is platform dependent.
Attributes
- Returns
-
a string representation of the object.