actorlib/sim/SimActor: remove dead time between transactions
This commit is contained in:
parent
6aff41a883
commit
cbc387f69e
|
@ -57,13 +57,13 @@ class SimActor(PureSimulable, Actor):
|
||||||
or isinstance(transactions, set):
|
or isinstance(transactions, set):
|
||||||
self.active = set(transactions)
|
self.active = set(transactions)
|
||||||
elif transactions is None:
|
elif transactions is None:
|
||||||
self.active = []
|
self.active = set()
|
||||||
else:
|
else:
|
||||||
raise TypeError
|
raise TypeError
|
||||||
|
|
||||||
def do_simulation(self, s):
|
def do_simulation(self, s):
|
||||||
if not self.done:
|
if not self.done:
|
||||||
|
if not self.active:
|
||||||
|
self._next_transactions()
|
||||||
if self.active:
|
if self.active:
|
||||||
self._process_transactions(s)
|
self._process_transactions(s)
|
||||||
else:
|
|
||||||
self._next_transactions()
|
|
||||||
|
|
Loading…
Reference in New Issue