Skip to content
Snippets Groups Projects
Commit 8308cc54 authored by pjs's avatar pjs
Browse files

lint-based cleanups

parent b3eff1c1
No related branches found
No related tags found
No related merge requests found
#!/usr/bin/env ruby
require 'rubygems'
require 'rubygems' if RUBY_VERSION =~ /^1\.8/
require 'simplekit'
# Demonstration model of Operational Availability (Ao).
......@@ -9,13 +9,13 @@ class AoModel
include SimpleKit
# model state
attr_reader :numAvailableJeeps,
attr_reader :numAvailableJeeps,
:numAvailableMechanics,
:maintenanceQLength,
:breakdownQLength
# model parameters
attr_reader :maxJeeps,
attr_reader :maxJeeps,
:maxMaintainers,
:breakdownRate,
:maintenanceCycleInDays,
......
#!/usr/bin/env ruby
require 'rubygems'
require 'rubygems' if RUBY_VERSION =~ /^1\.8/
require 'simplekit'
# Demonstration model of an M/M/k queueing system. There are k servers
# and both the arrival and service processes are memoryless (exponential).
# and both the arrival and service processes are memoryless (exponential).
class MMk
include SimpleKit
......@@ -76,4 +76,3 @@ end
# Instantiate an MMk object with a particular parameterization and run it.
MMk.new(4.5, 1.0, 5).run
#!/usr/bin/env ruby
require 'rubygems'
require 'rubygems' if RUBY_VERSION =~ /^1\.8/
require 'simplekit'
class MyModel
......@@ -17,7 +17,6 @@ class MyModel
schedule(:increment, 1.5)
printf "%f, %f\n", model_time, @x
end
end
MyModel.new.run
#!/usr/bin/env ruby
require 'rubygems'
require 'rubygems' if RUBY_VERSION =~ /^1\.8/
require 'simplekit'
class MyModel
......@@ -17,7 +17,6 @@ class MyModel
printf "%f, %f, %c\n", model_time, @x, c
schedule(:halt, 0.0) if model_time > 10
end
end
MyModel.new.run
# -*- ruby -*-
_VERSION = "0.4.2"
_VERSION = "0.4.3"
Gem::Specification.new do |s|
s.name = "simplekit"
s.version = _VERSION
s.date = "2013-04-11"
s.date = "2015-05-04"
s.summary = "Discrete event simulation engine."
s.homepage = "git://or.nps.edu/simplekit-ruby.git"
s.email = "pjs@alum.mit.edu"
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment