Class: MINT::AIChoiceElement

Inherits:
AIReference show all
Defined in:
lib/MINT-core/model/aui/AIChoiceElement.rb

Direct Known Subclasses

AIMultiChoiceElement, AISingleChoiceElement

Constant Summary

Constants inherited from Interactor

Interactor::PUBLISH_ATTRIBUTES

Instance Method Summary collapse

Methods inherited from AIReference

#getSCXML, #refers

Methods inherited from AIO

#exists_next, #exists_parent, #exists_prev, #focus_next, #focus_parent, #focus_previous, getModel, #getSCXML, #inform_parent_presenting, #next, #next2str, #parent, #parent2str, #parent=, #previous, #previous2str

Methods inherited from Interactor

class_from_channel_name, #create_attribute_channel_name, create_channel_name, #create_channel_w_name, get, getModel, #getSCXML, get_dm, #init_statemachine, #is_in?, #new_states, notify, #process_event, #process_event!, #process_event_vars, #publish_update, #states, #states=, #sync_event, #sync_states, #to_dot, wait

Methods included from InteractorHelpers

#restart_timeout, #start_timeout, #stop_timeout

Instance Method Details

#unchoose_othersObject



4
5
6
7
8
9
10
11
12
13
14
# File 'lib/MINT-core/model/aui/AIChoiceElement.rb', line 4

def unchoose_others
  aios = []
  self.parent.children.each do |c|
    if c.is_in? :chosen
      aios << c
    end
  end
  aios.each do |aio|
    aio.process_event("unchoose")
  end
end