Class RuleExecutionContext
Class RuleExecutionContext.
Namespace: UnityEngine.Industrial.Configuring.Core.Ruling
Syntax
public class RuleExecutionContext
Constructors
RuleExecutionContext(Product, Context, IReadOnlyConfiguration, ConfigurationChange)
Initializes a new instance of the RuleExecutionContext class.
Declaration
public RuleExecutionContext(Product product, Context context, IReadOnlyConfiguration configuration, ConfigurationChange configurationChange)
Parameters
Type | Name | Description |
---|---|---|
Product | product | The product. |
Context | context | The context. |
IReadOnlyConfiguration | configuration | The configuration. |
ConfigurationChange | configurationChange | The configuration change. |
Properties
AllSelectedFeatures
Includes the current configuration and demanded configuration changed features
Declaration
public IEnumerable<Feature> AllSelectedFeatures { get; }
Property Value
Type | Description |
---|---|
IEnumerable<Feature> | All selected features. |
configuration
Gets the configuration.
Declaration
public IReadOnlyConfiguration configuration { get; }
Property Value
Type | Description |
---|---|
IReadOnlyConfiguration | The configuration. |
configurationChange
Gets or sets the configuration change.
Declaration
public ConfigurationChange configurationChange { get; set; }
Property Value
Type | Description |
---|---|
ConfigurationChange | The configuration change. |
context
Gets the context.
Declaration
public Context context { get; }
Property Value
Type | Description |
---|---|
Context | The context. |
deselectedFeatures
Gets or sets the deselected features.
Declaration
public List<Feature> deselectedFeatures { get; set; }
Property Value
Type | Description |
---|---|
List<Feature> | The deselected features. |
featureAvailabilities
Gets or sets the feature availabilities.
Declaration
public Dictionary<Feature, FeatureAvailability> featureAvailabilities { get; set; }
Property Value
Type | Description |
---|---|
Dictionary<Feature, FeatureAvailability> | The feature availabilities. |
product
Gets the product.
Declaration
public Product product { get; }
Property Value
Type | Description |
---|---|
Product | The product. |
reply
Gets or sets the reply.
Declaration
public RuleEngineReply reply { get; protected set; }
Property Value
Type | Description |
---|---|
RuleEngineReply | The reply. |
selectedFeatures
Gets or sets the selected features.
Declaration
public List<Feature> selectedFeatures { get; set; }
Property Value
Type | Description |
---|---|
List<Feature> | The selected features. |
Methods
Stop(RuleEngineReply)
Stops the specified reply.
Declaration
public void Stop(RuleEngineReply reply)
Parameters
Type | Name | Description |
---|---|---|
RuleEngineReply | reply | The reply. |
Stop(RuleEngineReplyStatus)
Stops the specified status.
Declaration
public void Stop(RuleEngineReplyStatus status)
Parameters
Type | Name | Description |
---|---|---|
RuleEngineReplyStatus | status | The status. |