Class: SolidFlow::Replay::State

Inherits:
Struct
  • Object
show all
Defined in:
lib/solid_flow/replay.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Instance Attribute Details

#awaitingObject

Returns the value of attribute awaiting

Returns:

  • (Object)

    the current value of awaiting



86
87
88
# File 'lib/solid_flow/replay.rb', line 86

def awaiting
  @awaiting
end

#ctxObject

Returns the value of attribute ctx

Returns:

  • (Object)

    the current value of ctx



86
87
88
# File 'lib/solid_flow/replay.rb', line 86

def ctx
  @ctx
end

#execution_stateObject

Returns the value of attribute execution_state

Returns:

  • (Object)

    the current value of execution_state



86
87
88
# File 'lib/solid_flow/replay.rb', line 86

def execution_state
  @execution_state
end

#historyObject

Returns the value of attribute history

Returns:

  • (Object)

    the current value of history



86
87
88
# File 'lib/solid_flow/replay.rb', line 86

def history
  @history
end

#signal_bufferObject

Returns the value of attribute signal_buffer

Returns:

  • (Object)

    the current value of signal_buffer



86
87
88
# File 'lib/solid_flow/replay.rb', line 86

def signal_buffer
  @signal_buffer
end

#step_statesObject

Returns the value of attribute step_states

Returns:

  • (Object)

    the current value of step_states



86
87
88
# File 'lib/solid_flow/replay.rb', line 86

def step_states
  @step_states
end

#task_statesObject

Returns the value of attribute task_states

Returns:

  • (Object)

    the current value of task_states



86
87
88
# File 'lib/solid_flow/replay.rb', line 86

def task_states
  @task_states
end

#timer_statesObject

Returns the value of attribute timer_states

Returns:

  • (Object)

    the current value of timer_states



86
87
88
# File 'lib/solid_flow/replay.rb', line 86

def timer_states
  @timer_states
end

Instance Method Details

#current_stepObject



101
102
103
# File 'lib/solid_flow/replay.rb', line 101

def current_step
  execution_state.cursor_step
end

#current_step_stateObject



105
106
107
# File 'lib/solid_flow/replay.rb', line 105

def current_step_state
  step_states[execution_state.cursor_step&.to_sym]
end

#finished?Boolean

Returns:

  • (Boolean)


97
98
99
# File 'lib/solid_flow/replay.rb', line 97

def finished?
  execution_state.finished?
end