Record Class ChaseDescription<RW extends MaterializedData & Writable>
java.lang.Object
java.lang.Record
fr.inria.rules.integraal.forward_chaining.chase.description.ChaseDescription<RW>
- Type Parameters:
RW- the writable materialized data type described by this chase snapshot- Record Components:
chasableData- the data manipulated by the chaseruleBase- the rule base currently attached to the chaseruleScheduler- the scheduler used to choose rules to applyruleApplier- the applier used to execute triggered ruleslastStepResult- the result of the previous chase stepstepNumber- the current chase step numberhaltingConditions- 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 step
- All Implemented Interfaces:
IChaseDescription
public record ChaseDescription<RW extends MaterializedData & Writable>(ChasableData<RW extends MaterializedData & Writable> chasableData, RuleBase ruleBase, RuleScheduler ruleScheduler, RuleApplier<RW extends MaterializedData & Writable> ruleApplier, RuleApplicationStepResult lastStepResult, int stepNumber, 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)
extends Record
implements IChaseDescription
Immutable description of a chase configuration and its current state.
-
Constructor Summary
ConstructorsConstructorDescriptionChaseDescription(ChasableData<RW> chasableData, RuleBase ruleBase, RuleScheduler ruleScheduler, RuleApplier<RW> ruleApplier, RuleApplicationStepResult lastStepResult, int stepNumber, Collection<HaltingCondition<RW>> haltingConditions, Collection<PreTreatment<RW>> globalPreTreatments, Collection<PreTreatment<RW>> stepPreTreatments, Collection<EndTreatment<RW>> globalEndTreatments, Collection<EndTreatment<RW>> endOfStepTreatments) Creates an instance of aChaseDescriptionrecord class. -
Method Summary
Modifier and TypeMethodDescriptionReturns the value of thechasableDatarecord component.Returns the value of theendOfStepTreatmentsrecord component.final booleanIndicates whether some other object is "equal to" this one.Returns the configuration parameters corresponding to this description.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.Returns the value of thelastStepResultrecord component.Returns the value of theruleApplierrecord component.ruleBase()Returns the value of theruleBaserecord component.Returns the value of theruleSchedulerrecord component.intReturns the value of thestepNumberrecord component.Returns the value of thestepPreTreatmentsrecord component.toJson()Serializes this description as JSON.Serializes this description as a multi-line human-readable string.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
ChaseDescription
public ChaseDescription(ChasableData<RW> chasableData, RuleBase ruleBase, RuleScheduler ruleScheduler, RuleApplier<RW> ruleApplier, RuleApplicationStepResult lastStepResult, int stepNumber, Collection<HaltingCondition<RW>> haltingConditions, Collection<PreTreatment<RW>> globalPreTreatments, Collection<PreTreatment<RW>> stepPreTreatments, Collection<EndTreatment<RW>> globalEndTreatments, Collection<EndTreatment<RW>> endOfStepTreatments) Creates an instance of aChaseDescriptionrecord class.- Parameters:
chasableData- the value for thechasableDatarecord componentruleBase- the value for theruleBaserecord componentruleScheduler- the value for theruleSchedulerrecord componentruleApplier- the value for theruleApplierrecord componentlastStepResult- the value for thelastStepResultrecord componentstepNumber- the value for thestepNumberrecord 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 component
-
-
Method Details
-
getCorrespondingParameters
Returns the configuration parameters corresponding to this description.- Specified by:
getCorrespondingParametersin interfaceIChaseDescription- Returns:
- the associated configuration parameters
-
toJson
Serializes this description as JSON.- Specified by:
toJsonin interfaceIChaseDescription- Returns:
- the JSON representation
-
toPrettyString
Serializes this description as a multi-line human-readable string.- Specified by:
toPrettyStringin interfaceIChaseDescription- Returns:
- the formatted description
-
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
-
ruleBase
-
ruleScheduler
Returns the value of theruleSchedulerrecord component.- Returns:
- the value of the
ruleSchedulerrecord component
-
ruleApplier
Returns the value of theruleApplierrecord component.- Returns:
- the value of the
ruleApplierrecord component
-
lastStepResult
Returns the value of thelastStepResultrecord component.- Returns:
- the value of the
lastStepResultrecord component
-
stepNumber
public int stepNumber()Returns the value of thestepNumberrecord component.- Returns:
- the value of the
stepNumberrecord 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
-