Class: Legion::Extensions::MindGrowth::Actor::GrowthCycle

Inherits:
Actors::Every
  • Object
show all
Defined in:
lib/legion/extensions/mind_growth/actors/growth_cycle.rb

Overview

rubocop:disable Legion/Extension/EveryActorRequiresTime

Instance Method Summary collapse

Instance Method Details

#check_subtask?Boolean

Returns:

  • (Boolean)


34
35
36
# File 'lib/legion/extensions/mind_growth/actors/growth_cycle.rb', line 34

def check_subtask?
  true
end

#enabled?Boolean

rubocop:disable Legion/Extension/ActorEnabledSideEffects

Returns:

  • (Boolean)


22
23
24
# File 'lib/legion/extensions/mind_growth/actors/growth_cycle.rb', line 22

def enabled? # rubocop:disable Legion/Extension/ActorEnabledSideEffects
  codegen_loaded? || exec_loaded?
end

#generate_task?Boolean

Returns:

  • (Boolean)


38
39
40
# File 'lib/legion/extensions/mind_growth/actors/growth_cycle.rb', line 38

def generate_task?
  false
end

#run_now?Boolean

Returns:

  • (Boolean)


26
27
28
# File 'lib/legion/extensions/mind_growth/actors/growth_cycle.rb', line 26

def run_now?
  false
end

#runner_classObject



10
11
12
# File 'lib/legion/extensions/mind_growth/actors/growth_cycle.rb', line 10

def runner_class
  Legion::Extensions::MindGrowth::Runners::Orchestrator
end

#runner_functionObject



14
15
16
# File 'lib/legion/extensions/mind_growth/actors/growth_cycle.rb', line 14

def runner_function
  'run_growth_cycle'
end

#timeObject



18
19
20
# File 'lib/legion/extensions/mind_growth/actors/growth_cycle.rb', line 18

def time
  3600
end

#use_runner?Boolean

Returns:

  • (Boolean)


30
31
32
# File 'lib/legion/extensions/mind_growth/actors/growth_cycle.rb', line 30

def use_runner?
  false
end