Class: MINT::PTS

Inherits:
Interactor show all
Defined in:
lib/MINT-core/model/task.rb

Overview

A Presentation Task set PTS contains a set of active interaction tasks that should be presented or manipulated by the user

Constant Summary

Constants inherited from Interactor

Interactor::PUBLISH_ATTRIBUTES

Instance Method Summary collapse

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

#initialize_statemachineObject



62
63
64
65
66
67
68
69
# File 'lib/MINT-core/model/task.rb', line 62

def initialize_statemachine
  if @statemachine.nil?
    @statemachine = Statemachine.build do
      trans :initialized, :calculate, :calculating
      trans :calculating, :done, :finished
    end
  end
end