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 triggeredsourceSystem- produced the messagetargetSystem- consumed the messagemessage- result of applying a rule or scenario stepmessageComment- an optional comment on the messagerule- defined in any system
-
Constructor Summary
ConstructorsConstructorDescriptionResultStep(ScenarioStep scenarioStep, int depth, System sourceSystem, Message message, String messageComment, System targetSystem, Rule rule) Creates an instance of aResultSteprecord class. -
Method Summary
Modifier and TypeMethodDescriptionintdepth()Returns the value of thedepthrecord component.static ResultStepdirect(ScenarioStep scenarioStep, int depth, System sourceSystem, Message message, String messageComment, System targetSystem) final booleanIndicates whether some other object is "equal to" this one.feature()final inthashCode()Returns a hash code value for this object.static ResultStepindirect(ScenarioStep scenarioStep, int depth, System sourceSystem, Message message, String messageComment, System targetSystem, Rule rule) booleanmessage()Returns the value of themessagerecord component.Returns the value of themessageCommentrecord component.rule()Returns the value of therulerecord component.Returns the value of thescenarioSteprecord component.Returns the value of thesourceSystemrecord component.Returns the value of thetargetSystemrecord component.toString()Returns a string representation of this record class.
-
Constructor Details
-
ResultStep
public ResultStep(ScenarioStep scenarioStep, int depth, System sourceSystem, Message message, String messageComment, System targetSystem, @Nullable Rule rule) Creates an instance of aResultSteprecord class.- Parameters:
scenarioStep- the value for thescenarioSteprecord componentdepth- the value for thedepthrecord componentsourceSystem- the value for thesourceSystemrecord componentmessage- the value for themessagerecord componentmessageComment- the value for themessageCommentrecord componenttargetSystem- the value for thetargetSystemrecord componentrule- the value for therulerecord component
-
-
Method Details
-
direct
public static ResultStep direct(ScenarioStep scenarioStep, int depth, System sourceSystem, Message message, String messageComment, System targetSystem) -
indirect
public static ResultStep indirect(ScenarioStep scenarioStep, int depth, System sourceSystem, Message message, String messageComment, System targetSystem, Rule rule) -
feature
-
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 '=='. -
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
-
sourceSystem
Returns the value of thesourceSystemrecord component.- Returns:
- the value of the
sourceSystemrecord component
-
message
Returns the value of themessagerecord component.- Returns:
- the value of the
messagerecord component
-
messageComment
Returns the value of themessageCommentrecord component.- Returns:
- the value of the
messageCommentrecord component
-
targetSystem
Returns the value of thetargetSystemrecord component.- Returns:
- the value of the
targetSystemrecord component
-
rule
Returns the value of therulerecord component.- Returns:
- the value of the
rulerecord component
-