Class: Chione::Manager

Inherits:
Object
  • Object
show all
Extended by:
Loggability, Pluggability
Includes:
Inspection
Defined in:
lib/chione/manager.rb

Overview

The Manager class

Instance Attribute Summary collapse

Instance Method Summary collapse

Methods included from Inspection

#inspect

Constructor Details

#initialize(world) ⇒ Manager

Create a new Chione::Manager for the specified world.



26
27
28
# File 'lib/chione/manager.rb', line 26

def initialize( world, * )
  @world = world
end

Instance Attribute Details

#worldObject (readonly)

The World which the Manager belongs to



36
37
38
# File 'lib/chione/manager.rb', line 36

def world
  @world
end

Instance Method Details

#startObject

Start the Manager as the world is starting. Derivatives must implement this method.

Raises:

  • (NotImplementedError)


41
42
43
# File 'lib/chione/manager.rb', line 41

def start
  raise NotImplementedError, "%p does not implement required method #start" % [ self.class ]
end

#stopObject

Stop the Manager as the world is stopping. Derivatives must implement this method.

Raises:

  • (NotImplementedError)


48
49
50
# File 'lib/chione/manager.rb', line 48

def stop
  raise NotImplementedError, "%p does not implement required method #stop" % [ self.class ]
end