Commit e041125f authored by Ontje Lünsdorf's avatar Ontje Lünsdorf
Browse files

Fix exceptions in BaseEnvironment.

parent 372909a4
......@@ -541,15 +541,15 @@ class BaseEnvironment(object):
@property
def now(self):
"""Property that returns the current time in the environment."""
raise NotImplemented(self)
raise NotImplementedError(self)
def schedule(self, event, priority=DEFAULT_PRIORITY, delay=0):
"""Schedule an *event* with a given *priority* and a *delay*."""
raise NotImplemented(self)
raise NotImplementedError(self)
def step(self):
"""Process the next event."""
raise NotImplemented(self)
raise NotImplementedError(self)
def run(self, until=None):
"""Executes :meth:`step()` until the given criterion *until* is met.
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment