Class: MonkeyActionDead
- Inherits:
-
MonkeyAction
- Object
- Action
- MonkeyAction
- MonkeyActionDead
- Defined in:
- lib/MonkeyAction/monkey_action_dead.rb
Overview
Monkey action: dead (as in not alive) The monkey has been killed - the thread is not running.
Constant Summary collapse
- WEIGHT =
100.0
- VALID_VALUES =
[true].freeze
Instance Attribute Summary
Attributes inherited from MonkeyAction
Attributes inherited from Action
#action_completed, #action_time, #value, #weight
Instance Method Summary collapse
-
#initialize(monkey) ⇒ MonkeyActionDead
constructor
A new instance of MonkeyActionDead.
Methods inherited from Action
Constructor Details
#initialize(monkey) ⇒ MonkeyActionDead
Returns a new instance of MonkeyActionDead.
12 13 14 15 16 |
# File 'lib/MonkeyAction/monkey_action_dead.rb', line 12 def initialize(monkey) super(monkey, true, WEIGHT) validate end |