Package de.xam.featdoc.system
Record Class ResultStep
java.lang.Object
java.lang.Record
de.xam.featdoc.system.ResultStep
- Record Components:
scenarioStep- initially causing a chain of system reactionsdepth- depth in tree from initial scenario step. 0 = is defined just like this in the scenario; > 0: how indirect the action is triggeredcause- produced the messageeffect- consumed the message. Can be null for outgoing messages.
public record ResultStep(ScenarioStep scenarioStep, int depth, Cause cause, @Nullable Effect effect)
extends Record
-
Constructor Summary
ConstructorsConstructorDescriptionResultStep(ScenarioStep scenarioStep, int depth, Cause cause, Effect effect) Creates an instance of aResultSteprecord class. -
Method Summary
Modifier and TypeMethodDescriptioncause()Returns the value of thecauserecord component.intdepth()Returns the value of thedepthrecord component.effect()Returns the value of theeffectrecord component.final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.static ResultStepindirect(ScenarioStep scenarioStep, int depth, Cause cause, Effect effect) booleanmessage()rules()Returns the value of thescenarioSteprecord component.toString()Returns a string representation of this record class.
-
Constructor Details
-
ResultStep
Creates an instance of aResultSteprecord class.- Parameters:
scenarioStep- the value for thescenarioSteprecord componentdepth- the value for thedepthrecord componentcause- the value for thecauserecord componenteffect- the value for theeffectrecord component
-
-
Method Details
-
indirect
-
effectComment
-
effectSystem
-
isScenario
public boolean isScenario() -
message
-
rules
-
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 '=='. -
scenarioStep
Returns the value of thescenarioSteprecord component.- Returns:
- the value of the
scenarioSteprecord component
-
depth
public int depth()Returns the value of thedepthrecord component.- Returns:
- the value of the
depthrecord component
-
cause
Returns the value of thecauserecord component.- Returns:
- the value of the
causerecord component
-
effect
Returns the value of theeffectrecord component.- Returns:
- the value of the
effectrecord component
-