Record Class StratifiedChaseDescription<RW extends MaterializedData & Writable>
java.lang.Object
java.lang.Record
fr.inria.rules.integraal.forward_chaining.chase.description.StratifiedChaseDescription<RW>
- Type Parameters:
RW- the writable materialized data type described by this chase snapshot- Record Components:
chasableData- the data manipulated by the chasestrata- the rule strata to executechase- the currently active chase, if anychaseBuilder- the builder used to create per-stratum chaseshaltingConditions- the configured halting conditionsglobalPreTreatments- the treatments applied before the chase startsstepPreTreatments- the treatments applied before each stepglobalEndTreatments- the treatments applied after the chase completesendOfStepTreatments- the treatments applied after each stepstepNumber- the current chase step number
- All Implemented Interfaces:
IChaseDescription
public record StratifiedChaseDescription<RW extends MaterializedData & Writable>(ChasableData<RW extends MaterializedData & Writable> chasableData, List<RuleBase> strata, Chase<RW extends MaterializedData & Writable> chase, ChaseBuilder<RW extends MaterializedData & Writable> chaseBuilder, Collection<HaltingCondition<RW extends MaterializedData & Writable>> haltingConditions, Collection<PreTreatment<RW extends MaterializedData & Writable>> globalPreTreatments, Collection<PreTreatment<RW extends MaterializedData & Writable>> stepPreTreatments, Collection<EndTreatment<RW extends MaterializedData & Writable>> globalEndTreatments, Collection<EndTreatment<RW extends MaterializedData & Writable>> endOfStepTreatments, int stepNumber)
extends Record
implements IChaseDescription
Immutable description of a stratified chase configuration and its current state.
-
Constructor Summary
ConstructorsConstructorDescriptionStratifiedChaseDescription(ChasableData<RW> chasableData, List<RuleBase> strata, Chase<RW> chase, ChaseBuilder<RW> chaseBuilder, Collection<HaltingCondition<RW>> haltingConditions, Collection<PreTreatment<RW>> globalPreTreatments, Collection<PreTreatment<RW>> stepPreTreatments, Collection<EndTreatment<RW>> globalEndTreatments, Collection<EndTreatment<RW>> endOfStepTreatments, int stepNumber) Creates an instance of aStratifiedChaseDescriptionrecord class. -
Method Summary
Modifier and TypeMethodDescriptionReturns the value of thechasableDatarecord component.chase()Returns the value of thechaserecord component.Returns the value of thechaseBuilderrecord component.Returns the value of theendOfStepTreatmentsrecord component.final booleanIndicates whether some other object is "equal to" this one.Returns the value of theglobalEndTreatmentsrecord component.Returns the value of theglobalPreTreatmentsrecord component.Returns the value of thehaltingConditionsrecord component.final inthashCode()Returns a hash code value for this object.intReturns the value of thestepNumberrecord component.Returns the value of thestepPreTreatmentsrecord component.strata()Returns the value of thestratarecord component.toJson()Returns a JSON serialization of the chase description.Returns a human-readable serialization of the chase description.final StringtoString()Returns a string representation of this record class.Methods inherited from interface IChaseDescription
getCorrespondingParameters
-
Constructor Details
-
StratifiedChaseDescription
public StratifiedChaseDescription(ChasableData<RW> chasableData, List<RuleBase> strata, Chase<RW> chase, ChaseBuilder<RW> chaseBuilder, Collection<HaltingCondition<RW>> haltingConditions, Collection<PreTreatment<RW>> globalPreTreatments, Collection<PreTreatment<RW>> stepPreTreatments, Collection<EndTreatment<RW>> globalEndTreatments, Collection<EndTreatment<RW>> endOfStepTreatments, int stepNumber) Creates an instance of aStratifiedChaseDescriptionrecord class.- Parameters:
chasableData- the value for thechasableDatarecord componentstrata- the value for thestratarecord componentchase- the value for thechaserecord componentchaseBuilder- the value for thechaseBuilderrecord componenthaltingConditions- the value for thehaltingConditionsrecord componentglobalPreTreatments- the value for theglobalPreTreatmentsrecord componentstepPreTreatments- the value for thestepPreTreatmentsrecord componentglobalEndTreatments- the value for theglobalEndTreatmentsrecord componentendOfStepTreatments- the value for theendOfStepTreatmentsrecord componentstepNumber- the value for thestepNumberrecord component
-
-
Method Details
-
toJson
Description copied from interface:IChaseDescriptionReturns a JSON serialization of the chase description.- Specified by:
toJsonin interfaceIChaseDescription- Returns:
- a string description of the chase configuration and status
-
toPrettyString
Description copied from interface:IChaseDescriptionReturns a human-readable serialization of the chase description.- Specified by:
toPrettyStringin interfaceIChaseDescription- Returns:
- a JSON string description of the chase configuration and status
-
toString
-
hashCode
-
equals
Indicates whether some other object is "equal to" this one. The objects are equal if the other object is of the same class and if all the record components are equal. Reference components are compared withObjects::equals(Object,Object); primitive components are compared with thecomparemethod from their corresponding wrapper classes. -
chasableData
Returns the value of thechasableDatarecord component.- Returns:
- the value of the
chasableDatarecord component
-
strata
-
chase
-
chaseBuilder
Returns the value of thechaseBuilderrecord component.- Returns:
- the value of the
chaseBuilderrecord component
-
haltingConditions
Returns the value of thehaltingConditionsrecord component.- Returns:
- the value of the
haltingConditionsrecord component
-
globalPreTreatments
Returns the value of theglobalPreTreatmentsrecord component.- Returns:
- the value of the
globalPreTreatmentsrecord component
-
stepPreTreatments
Returns the value of thestepPreTreatmentsrecord component.- Returns:
- the value of the
stepPreTreatmentsrecord component
-
globalEndTreatments
Returns the value of theglobalEndTreatmentsrecord component.- Returns:
- the value of the
globalEndTreatmentsrecord component
-
endOfStepTreatments
Returns the value of theendOfStepTreatmentsrecord component.- Returns:
- the value of the
endOfStepTreatmentsrecord component
-
stepNumber
public int stepNumber()Returns the value of thestepNumberrecord component.- Returns:
- the value of the
stepNumberrecord component
-