-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Make #runSimulated:contextAtEachStep: aware of contexts that don't #c…
…anSimulateYourself For instance, this applies to TraceDebugger's TDBTracingSimulator.
- Loading branch information
Showing
8 changed files
with
21 additions
and
2 deletions.
There are no files selected for viewing
5 changes: 5 additions & 0 deletions
5
packages/SimulationStudio-Base.package/Context.extension/instance/canSimulateYourself.st
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
*SimulationStudio-Base-testing | ||
canSimulateYourself | ||
"Answer whether it is a valid operation to send #step to a thisContext instance of the receiver class." | ||
|
||
^ true |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
7 changes: 7 additions & 0 deletions
7
...es/SimulationStudio-Base.package/Simulator.class/instance/canContextSimulateItself.do..st
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
testing | ||
canContextSimulateItself: aContext do: aBlock | ||
<capability: #canSimulateYourself> | ||
|
||
^ nextSimulator | ||
ifNotNil: [nextSimulator canContextSimulateItself: aContext do: aBlock] | ||
ifNil: [aBlock value] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
4 changes: 4 additions & 0 deletions
4
...ages/SimulationStudio-Base.package/SimulatorContext.class/instance/canSimulateYourself.st
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
testing | ||
canSimulateYourself | ||
|
||
^ simulator canContextSimulateItself: self do: [super canSimulateYourself] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters