Record Class ExecutionStep
java.lang.Object
java.lang.Record
it.tugamer89.autogex.trace.ExecutionStep
- Record Components:
fromStates- The set of active states before reading the symbol.symbolRead- The input symbol read during this step (null represents an epsilon transition).toStates- The set of active states reached after evaluating the symbol.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionfinal booleanIndicates whether some other object is "equal to" this one.Returns the value of thefromStatesrecord component.final inthashCode()Returns a hash code value for this object.Returns the value of thesymbolReadrecord component.toStates()Returns the value of thetoStatesrecord component.toString()Formats the execution step into a highly readable mathematical string.
-
Constructor Details
-
ExecutionStep
Creates an instance of aExecutionSteprecord class.- Parameters:
fromStates- the value for thefromStatesrecord componentsymbolRead- the value for thesymbolReadrecord componenttoStates- the value for thetoStatesrecord component
-
-
Method Details
-
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. All components in this record class are compared withObjects::equals(Object,Object). -
fromStates
Returns the value of thefromStatesrecord component.- Returns:
- the value of the
fromStatesrecord component
-
symbolRead
Returns the value of thesymbolReadrecord component.- Returns:
- the value of the
symbolReadrecord component
-
toStates
-