Class: ActionState

Inherits:
State show all
Defined in:
lib/xmimodel/action_state.rb

Instance Attribute Summary collapse

Attributes inherited from State

#activity_graph, #from_transitions, #name, #stereotypes, #tagged_values, #targets, #transitions

Attributes inherited from Tag

#id, #parent_tag, #xml

Instance Method Summary collapse

Methods inherited from State

#full_name, #is_action_state?, #is_decision_point?, #is_final_state?, #is_initial_state?, #path, #sources, #stereotype_by_name, #tagged_value_by_name

Methods inherited from Tag

#xml_root

Constructor Details

#initialize(xml, activity_graph) ⇒ ActionState

Returns a new instance of ActionState.


11
12
13
14
15
16
17
18
# File 'lib/xmimodel/action_state.rb', line 11

def initialize(xml, activity_graph)
	super(xml, activity_graph)
	@deferrable_event_id = xml.attribute("deferrableEvent").to_s

	@type = :action_state

	true
end

Instance Attribute Details

#deferrable_eventObject

Returns the value of attribute deferrable_event


9
10
11
# File 'lib/xmimodel/action_state.rb', line 9

def deferrable_event
  @deferrable_event
end

#deferrable_event_idObject (readonly)

Returns the value of attribute deferrable_event_id


8
9
10
# File 'lib/xmimodel/action_state.rb', line 8

def deferrable_event_id
  @deferrable_event_id
end

Instance Method Details

#to_sObject


20
21
22
# File 'lib/xmimodel/action_state.rb', line 20

def to_s
	"ActionState[#{name}]"
end