Class: StateMachine::OOStructuredFSM::OOStructuredState Abstract

Inherits:
Object
  • Object
show all
Defined in:
lib/kuniri/state_machine/OO_structured_fsm/oo_structured_state.rb

Overview

This class is abstract.

State machine for oriented object and structured paradigm.

Instance Method Summary collapse

Instance Method Details

#aggregation_captureObject

Handling aggregation state

Raises:

  • (NotImplementedError)


68
69
70
# File 'lib/kuniri/state_machine/OO_structured_fsm/oo_structured_state.rb', line 68

def aggregation_capture
  raise NotImplementedError
end

#attribute_captureObject

Handling attribute state.

Raises:

  • (NotImplementedError)


32
33
34
# File 'lib/kuniri/state_machine/OO_structured_fsm/oo_structured_state.rb', line 32

def attribute_capture
  raise NotImplementedError
end

#class_captureObject

Handling class state, i.e, this state is enable when any class is match

Raises:

  • (NotImplementedError)


17
18
19
# File 'lib/kuniri/state_machine/OO_structured_fsm/oo_structured_state.rb', line 17

def class_capture
  raise NotImplementedError
end

#comment_captureObject

Handling comment

Raises:

  • (NotImplementedError)


78
79
80
# File 'lib/kuniri/state_machine/OO_structured_fsm/oo_structured_state.rb', line 78

def comment_capture
  raise NotImplementedError
end

#conditional_captureObject

Handling conditional state

Raises:

  • (NotImplementedError)


63
64
65
# File 'lib/kuniri/state_machine/OO_structured_fsm/oo_structured_state.rb', line 63

def conditional_capture
  raise NotImplementedError
end

#constructor_captureObject

Handling constructor, only after class state.

Raises:

  • (NotImplementedError)


27
28
29
# File 'lib/kuniri/state_machine/OO_structured_fsm/oo_structured_state.rb', line 27

def constructor_capture
  raise NotImplementedError
end

#execute(pElementFile, pLine) ⇒ Object

Method responsible for make the state machine go forward.

Parameters:

  • pElementFile

    File to be improved.

  • pLine

    Line for verify element.

Returns:

  • Return pElementFile with new elements, or with the same values.

Raises:

  • (NotImplementedError)


86
87
88
# File 'lib/kuniri/state_machine/OO_structured_fsm/oo_structured_state.rb', line 86

def execute(pElementFile, pLine)
  raise NotImplementedError
end

#function_captureObject

Handling function, it is related with structured state but not exclusively.

Raises:

  • (NotImplementedError)


43
44
45
# File 'lib/kuniri/state_machine/OO_structured_fsm/oo_structured_state.rb', line 43

def function_capture
  raise NotImplementedError
end

#handle_line(pLine) ⇒ Object

Method responsible each line, and decide which way to go inside state machine.

Raises:

  • (NotImplementedError)


12
13
14
# File 'lib/kuniri/state_machine/OO_structured_fsm/oo_structured_state.rb', line 12

def handle_line(pLine)
  raise NotImplementedError
end

#idle_captureObject

Idle state, waiting for action! =D

Raises:

  • (NotImplementedError)


58
59
60
# File 'lib/kuniri/state_machine/OO_structured_fsm/oo_structured_state.rb', line 58

def idle_capture
  raise NotImplementedError
end

#include_captureObject

Handling external include

Raises:

  • (NotImplementedError)


48
49
50
# File 'lib/kuniri/state_machine/OO_structured_fsm/oo_structured_state.rb', line 48

def include_capture
  raise NotImplementedError
end

#method_captureObject

Handling method state, this state is enable only after class state.

Raises:

  • (NotImplementedError)


22
23
24
# File 'lib/kuniri/state_machine/OO_structured_fsm/oo_structured_state.rb', line 22

def method_capture
  raise NotImplementedError
end

#module_captureObject

Handling module, it can be oriented object or structured.

Raises:

  • (NotImplementedError)


37
38
39
# File 'lib/kuniri/state_machine/OO_structured_fsm/oo_structured_state.rb', line 37

def module_capture
  raise NotImplementedError
end

#repetition_captureObject

Handling repetition state

Raises:

  • (NotImplementedError)


73
74
75
# File 'lib/kuniri/state_machine/OO_structured_fsm/oo_structured_state.rb', line 73

def repetition_capture
  raise NotImplementedError
end

#variable_captureObject

Handling variable

Raises:

  • (NotImplementedError)


53
54
55
# File 'lib/kuniri/state_machine/OO_structured_fsm/oo_structured_state.rb', line 53

def variable_capture
  raise NotImplementedError
end