Module: DiscreteEvent

Defined in:
lib/discrete_event.rb,
lib/discrete_event/events.rb,
lib/discrete_event/version.rb,
lib/discrete_event/fake_rand.rb,
lib/discrete_event/simulation.rb,
lib/discrete_event/event_queue.rb

Overview

Root module; see README.

Defined Under Namespace

Modules: Events, FakeRand Classes: EventQueue, Simulation

Constant Summary collapse

VERSION_MAJOR =
2
VERSION_MINOR =
0
VERSION_PATCH =
0
VERSION =
[VERSION_MAJOR, VERSION_MINOR, VERSION_PATCH].join('.')

Class Method Summary collapse

Class Method Details

.simulation(*args, &block) ⇒ Simulation

Short form for creating a Simulation object.

Returns:


19
20
21
22
23
# File 'lib/discrete_event.rb', line 19

def self.simulation(*args, &block)
  sim = DiscreteEvent::Simulation.new(*args)
  sim.instance_eval(&block)
  sim
end