Class: Capricorn::Actor

Inherits:
Object
  • Object
show all
Includes:
Actions
Defined in:
lib/capricorn/actor.rb,
lib/capricorn/actor/actions.rb

Overview

The actor class provides the mechanisme for scheduling the execution of seperate tasks.

Defined Under Namespace

Modules: Actions

Instance Attribute Summary collapse

Instance Method Summary collapse

Methods included from Actions

included, #run_callbacks!, #run_callbacks_in_fase!

Constructor Details

#initialize(system, satellite) ⇒ Actor

create a new actor for the provided system and satellite



17
18
19
20
# File 'lib/capricorn/actor.rb', line 17

def initialize(system, satellite)
  @system    = system
  @satellite = satellite
end

Instance Attribute Details

#satelliteObject (readonly)

Returns the value of attribute satellite.



11
12
13
# File 'lib/capricorn/actor.rb', line 11

def satellite
  @satellite
end

#systemObject (readonly)

Returns the value of attribute system.



11
12
13
# File 'lib/capricorn/actor.rb', line 11

def system
  @system
end