Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
What's new
7
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Switch to GitLab Next
Sign in / Register
Toggle navigation
Open sidebar
team-simpy
simpy
Commits
e041125f
Commit
e041125f
authored
Sep 07, 2013
by
Ontje Lünsdorf
Browse files
Fix exceptions in BaseEnvironment.
parent
372909a4
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
3 deletions
+3
-3
simpy/core.py
simpy/core.py
+3
-3
No files found.
simpy/core.py
View file @
e041125f
...
...
@@ -541,15 +541,15 @@ class BaseEnvironment(object):
@
property
def
now
(
self
):
"""Property that returns the current time in the environment."""
raise
NotImplemented
(
self
)
raise
NotImplemented
Error
(
self
)
def
schedule
(
self
,
event
,
priority
=
DEFAULT_PRIORITY
,
delay
=
0
):
"""Schedule an *event* with a given *priority* and a *delay*."""
raise
NotImplemented
(
self
)
raise
NotImplemented
Error
(
self
)
def
step
(
self
):
"""Process the next event."""
raise
NotImplemented
(
self
)
raise
NotImplemented
Error
(
self
)
def
run
(
self
,
until
=
None
):
"""Executes :meth:`step()` until the given criterion *until* is met.
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment