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.



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

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

Instance Attribute Details

#worldObject (readonly)

The World which the Manager belongs to



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

def world
  @world
end

Instance Method Details

#startObject

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

Raises:

  • (NotImplementedError)


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

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)


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

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