Package de.xam.featdoc.system
Record Class Universe.ResultStep
java.lang.Object
java.lang.Record
de.xam.featdoc.system.Universe.ResultStep
- Record Components:
feature-rule-rulePart- result of applying a rule or scenario stepdepth- 0 = is defined just like this in the scenario; > 0: how indirect the action is triggeredcauseFromScenario-source-target-
- Enclosing class:
- Universe
public static record Universe.ResultStep(Feature feature, Rule rule, Rule.RulePart rulePart, int depth, ScenarioStep causeFromScenario, System source, System target)
extends Record
-
Constructor Summary
ConstructorsConstructorDescriptionResultStep(Feature feature, Rule rule, Rule.RulePart rulePart, int depth, ScenarioStep causeFromScenario, System source, System target) Creates an instance of aResultSteprecord class. -
Method Summary
Modifier and TypeMethodDescriptionReturns the value of thecauseFromScenariorecord component.intdepth()Returns the value of thedepthrecord component.final booleanIndicates whether some other object is "equal to" this one.feature()Returns the value of thefeaturerecord component.final inthashCode()Returns a hash code value for this object.booleanrule()Returns the value of therulerecord component.rulePart()Returns the value of therulePartrecord component.source()Returns the value of thesourcerecord component.target()Returns the value of thetargetrecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
ResultStep
public ResultStep(Feature feature, Rule rule, Rule.RulePart rulePart, int depth, ScenarioStep causeFromScenario, System source, System target) Creates an instance of aResultSteprecord class.- Parameters:
feature- the value for thefeaturerecord componentrule- the value for therulerecord componentrulePart- the value for therulePartrecord componentdepth- the value for thedepthrecord componentcauseFromScenario- the value for thecauseFromScenariorecord componentsource- the value for thesourcerecord componenttarget- the value for thetargetrecord component
-
-
Method Details
-
isScenario
public boolean isScenario() -
toString
Returns a string representation of this record class. The representation contains the name of the class, followed by the name and value of each of the record components. -
hashCode
public final int hashCode()Returns a hash code value for this object. The value is derived from the hash code of each of the record components. -
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 '=='. -
feature
Returns the value of thefeaturerecord component.- Returns:
- the value of the
featurerecord component
-
rule
Returns the value of therulerecord component.- Returns:
- the value of the
rulerecord component
-
rulePart
Returns the value of therulePartrecord component.- Returns:
- the value of the
rulePartrecord component
-
depth
public int depth()Returns the value of thedepthrecord component.- Returns:
- the value of the
depthrecord component
-
causeFromScenario
Returns the value of thecauseFromScenariorecord component.- Returns:
- the value of the
causeFromScenariorecord component
-
source
Returns the value of thesourcerecord component.- Returns:
- the value of the
sourcerecord component
-
target
Returns the value of thetargetrecord component.- Returns:
- the value of the
targetrecord component
-