Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
S
simplekit-ruby
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Deploy
Releases
Model registry
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Sanchez, Paul
simplekit-ruby
Commits
80c3112f
Commit
80c3112f
authored
13 years ago
by
pjs
Browse files
Options
Downloads
Patches
Plain Diff
removed "must install pqueue" from documentation, reformatted docs
Signed-off-by:
pjs
<
pjs@alum.mit.edu
>
parent
15243891
No related branches found
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
lib/simplekit.rb
+4
-11
4 additions, 11 deletions
lib/simplekit.rb
with
4 additions
and
11 deletions
lib/simplekit.rb
+
4
−
11
View file @
80c3112f
require
'rubygems'
require
'pqueue'
# You must install the 'pqueue' gem before using SimpleKit:
# <ul>
# <li>gem install pqueue<br>
# or<br>
# <li>sudo gem install pqueue # on Unix systems/OS X.
#</ul>
# Including SimpleKit gives you methods :run, :model_time, :schedule,
# and :halt as mixins. You <b>MUST NOT</b> provide your own implementations
# of methods with these names in your model. All but :run are
...
...
@@ -31,11 +25,10 @@ module SimpleKit
# This class provides the computation engine for a discrete event
# simulation model. It uses RubyGem's PQueue class as the priority
# queue implementation for the pending events list.
# <p>Users must create a model class which
# <ul><li>implements an init() method;
# <li>Instantiates a model and invokes
# the run() method to start execution.
# </ul>
#
# Users must create a model class which
# implements an init() method;
# Instantiates a model and invokes the run() method to start execution.
class
EventScheduler
attr_reader
:model_time
,
:user_model
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment