Skip to content

Commit

Permalink
added announcement/watchers to ODE
Browse files Browse the repository at this point in the history
  • Loading branch information
djuber committed Jun 8, 2012
1 parent 43972a8 commit 8971c8f
Show file tree
Hide file tree
Showing 59 changed files with 258 additions and 15 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -5,18 +5,19 @@ version203: spec
spec for: #'common' do: [
spec blessing: #'development'.
spec description: 'modified Random tests and fixed an error in MTGenerator
relaxed convergence bound on PoissonGenerator'.
relaxed convergence bound on PoissonGenerator
added announcements/watchers to ODESolver '.
spec author: 'DanielUber'.
spec timestamp: '6/7/2012 14:27'.
spec timestamp: '6/8/2012 11:43'.
spec
package: 'Math-Random' with: 'Math-Random-DanielUber.6';
package: 'Math-KDTree' with: 'Math-KDTree-wernerkassens.6';
package: 'Math-ODE' with: 'Math-ODE-DanielUber.10';
package: 'Math-ODE' with: 'Math-ODE-DanielUber.11';
package: 'Math-Complex' with: 'Math-Complex-DanielUber.6';
package: 'Math-Quaternion' with: 'Math-Quaternion-DanielUber.5';
package: 'Math-DHB-Numerical' with: 'Math-DHB-Numerical-DanielUber.19';
package: 'Math-DHB-Numerical' with: 'Math-DHB-Numerical-DanielUber.20';
package: 'Math-Number-Extensions.Pharo' with: 'Math-Number-Extensions.Pharo-DanielUber.8';
package: 'Math-RandomTests' with: 'Math-RandomTests-DanielUber.6';
package: 'Math-RandomTests' with: 'Math-RandomTests-DanielUber.7';
package: 'Math-ComplexExtensions' with: 'Math-ComplexExtensions-DanielUber.1';
package: 'Math-DHB-NumericalExtensions' with: 'Math-DHB-NumericalExtensions-DanielUber.2';
package: 'Math-Extensions' with: 'Math-Extensions-DanielUber.3';
Expand Down
Original file line number Diff line number Diff line change
@@ -1 +1 @@
(name 'ConfigurationOfSciSmalltalk-DanielUber.23' message 'relaxed convergence bound on PoissonGenerator' id '747d7c2f-457a-4132-a957-33750cff5d47' date '7 June 2012' time '2:27:51.162 pm' author 'DanielUber' ancestors ((name 'ConfigurationOfSciSmalltalk-DanielUber.22' message 'modified Random tests and fixed an error in MTGenerator' id '0f45fdc1-0c58-4010-a30e-50f0130ca821' date '7 June 2012' time '2:08:52.142 pm' author 'DanielUber' ancestors ((name 'ConfigurationOfSciSmalltalk-DanielUber.21' message 'added development version' id 'b6d83195-55f7-40ff-8b10-5f232f1761a1' date '6 June 2012' time '12:01:21.914 pm' author 'DanielUber' ancestors ((name 'ConfigurationOfSciSmalltalk-DanielUber.20' message 'made 1-03 stable' id '60e30bf9-2e99-46cf-95d6-60c606751abf' date '6 June 2012' time '11:49:17.017 am' author 'DanielUber' ancestors ((name 'ConfigurationOfSciSmalltalk-DanielUber.19' message 'fixed version 1-03' id '805189c6-d9db-4f4e-8a91-625b86bddbb4' date '6 June 2012' time '11:43:44.484 am' author 'DanielUber' ancestors ((name 'ConfigurationOfSciSmalltalk-DanielUber.18' message 'version 1.03 using new Random and RandomTests packages.Testing automatic version generation using MetacelloToolbox.' id '0958cbf7-a326-44ce-96ce-d711aaf153a6' date '6 June 2012' time '11:01:46.953 am' author 'DanielUber' ancestors ((name 'ConfigurationOfSciSmalltalk-DanielUber.17' message 'changed bleedingEdge to use development.' id '082f9c55-8dcc-4e25-a860-06bf37cc7774' date '6 June 2012' time '10:58:05.406 am' author 'DanielUber' ancestors ((name 'ConfigurationOfSciSmalltalk-DanielUber.16' message 'changed version 1.02 to reflect new Complex, Quaternion, and Numerical package numbers.' id 'f8b5a5fe-dec3-4e50-8a28-83d6de695fd7' date '5 June 2012' time '5:03:59.538 pm' author 'DanielUber' ancestors ((name 'ConfigurationOfSciSmalltalk-DanielUber.15' message 'updated package names after renaming extensions packages for Quaternion, Numerical, and Complex.' id '0cd8165d-d9e9-4364-8962-5bab5cb8d9a9' date '5 June 2012' time '4:57:50.098 pm' author 'DanielUber' ancestors ((name 'ConfigurationOfSciSmalltalk-DanielUber.14' message 'changed load order.' id '0b8e97a6-643c-439f-a5a9-105967bd3462' date '5 June 2012' time '4:27:20.258 pm' author 'DanielUber' ancestors ((name 'ConfigurationOfSciSmalltalk-DanielUber.13' message 'separated package load.' id 'a9546148-d07f-465c-9f30-753f18440cdd' date '5 June 2012' time '3:39:42.348 pm' author 'DanielUber' ancestors ((name 'ConfigurationOfSciSmalltalk-DanielUber.12' message 'corrected typo in bleedingEdge.' id '7f0f99d3-5579-45f3-b07c-b3a6eccdb21f' date '20 May 2012' time '2:47:13.668 pm' author 'DanielUber' ancestors ((name 'ConfigurationOfSciSmalltalk-DanielUber.11' message 'added bleedingEdge version and updated to version 1.01' id '7e959693-c85b-4404-96d3-6e6cde48cb78' date '20 May 2012' time '2:44:26.266 pm' author 'DanielUber' ancestors ((name 'ConfigurationOfSciSmalltalk-DanielUber.10' message 'modified to try to load Math-All from ss3.' id '58c70684-ae18-470a-95cc-a4d4210e951b' date '17 May 2012' time '2:19:41.766 pm' author 'DanielUber' ancestors ((name 'ConfigurationOfSciSmalltalk-DanielUber.9' message 'currently loading DHB-Numerical, then Complex. There is an issue where DHB-Numerical needs Complex and Quaternion due to extensions, and Complex needs DHB-Numerical due to extensions. This may take some rethinking of the package structure (or require an extensions package).' id '9f772bde-a2f4-4d3a-9902-366cb0feeaf2' date '16 May 2012' time '4:11:19.556 pm' author 'DanielUber' ancestors ((name 'ConfigurationOfSciSmalltalk-DanielUber.8' message 'fixed typo in baseline.' id '384b19df-693f-4625-8399-bb2d83b68f14' date '16 May 2012' time '3:52:32.332 pm' author 'DanielUber' ancestors ((name 'ConfigurationOfSciSmalltalk-DanielUber.7' message 'added DHB-Numerical and fixed typos. Added to default and tests.' id 'b22b3ea1-6136-4ad2-ad87-b39fcfe6fb21' date '16 May 2012' time '3:50:26.232 pm' author 'DanielUber' ancestors ((name 'ConfigurationOfSciSmalltalk-DanielUber.6' message 'added DHB-Numerics as a dependency for Math-Complex.' id '2eb9c399-f1a4-4d7f-893d-48d06fc55424' date '16 May 2012' time '3:45:29.334 pm' author 'DanielUber' ancestors ((name 'ConfigurationOfSciSmalltalk-DanielUber.5' message 'added development version' id '0af623af-81f0-47ba-89e0-cc51698b2e9c' date '16 May 2012' time '3:35:20.434 pm' author 'DanielUber' ancestors ((name 'ConfigurationOfSciSmalltalk-DanielUber.4' message 'fixed dependency in baseline from Example-Core to Math-Complex.' id '7c5f16b4-3bfe-43bf-8ff6-33a9682d6f73' date '16 May 2012' time '3:28:34.716 pm' author 'DanielUber' ancestors ((name 'ConfigurationOfSciSmalltalk-DanielUber.3' message 'added version 100' id '3aae054c-4bc9-42e2-972c-dd44b5a1c722' date '16 May 2012' time '3:26:12.942 pm' author 'DanielUber' ancestors ((name 'ConfigurationOfSciSmalltalk-DanielUber.2' message 'created baseline for complex.' id '0c94552e-1fa2-437f-a308-71a3b71ab8dd' date '16 May 2012' time '3:21:19.742 pm' author 'DanielUber' ancestors ((name 'ConfigurationOfSciSmalltalk-DanielUber.1' message 'empty configuration. First commit.' id '2b16cd0b-9384-4fe9-a139-62c2f1fb7e84' date '16 May 2012' time '2:04:26.726 pm' author 'DanielUber' ancestors () stepChildren ())) stepChildren ())) stepChildren ())) stepChildren ())) stepChildren ())) stepChildren ())) stepChildren ())) stepChildren ())) stepChildren ())) stepChildren ())) stepChildren ())) stepChildren ())) stepChildren ())) stepChildren ())) stepChildren ())) stepChildren ())) stepChildren ())) stepChildren ())) stepChildren ())) stepChildren ())) stepChildren ())) stepChildren ())) stepChildren ())
(name 'ConfigurationOfSciSmalltalk-DanielUber.24' message 'added announcements/watchers to ODESolver ' id '7e0b4886-52a9-4491-b929-f7641c5670d9' date '8 June 2012' time '11:43:57.51 am' author 'DanielUber' ancestors ((name 'ConfigurationOfSciSmalltalk-DanielUber.23' message 'relaxed convergence bound on PoissonGenerator' id '747d7c2f-457a-4132-a957-33750cff5d47' date '7 June 2012' time '2:27:51.162 pm' author 'DanielUber' ancestors ((name 'ConfigurationOfSciSmalltalk-DanielUber.22' message 'modified Random tests and fixed an error in MTGenerator' id '0f45fdc1-0c58-4010-a30e-50f0130ca821' date '7 June 2012' time '2:08:52.142 pm' author 'DanielUber' ancestors ((name 'ConfigurationOfSciSmalltalk-DanielUber.21' message 'added development version' id 'b6d83195-55f7-40ff-8b10-5f232f1761a1' date '6 June 2012' time '12:01:21.914 pm' author 'DanielUber' ancestors ((name 'ConfigurationOfSciSmalltalk-DanielUber.20' message 'made 1-03 stable' id '60e30bf9-2e99-46cf-95d6-60c606751abf' date '6 June 2012' time '11:49:17.017 am' author 'DanielUber' ancestors ((name 'ConfigurationOfSciSmalltalk-DanielUber.19' message 'fixed version 1-03' id '805189c6-d9db-4f4e-8a91-625b86bddbb4' date '6 June 2012' time '11:43:44.484 am' author 'DanielUber' ancestors ((name 'ConfigurationOfSciSmalltalk-DanielUber.18' message 'version 1.03 using new Random and RandomTests packages.Testing automatic version generation using MetacelloToolbox.' id '0958cbf7-a326-44ce-96ce-d711aaf153a6' date '6 June 2012' time '11:01:46.953 am' author 'DanielUber' ancestors ((name 'ConfigurationOfSciSmalltalk-DanielUber.17' message 'changed bleedingEdge to use development.' id '082f9c55-8dcc-4e25-a860-06bf37cc7774' date '6 June 2012' time '10:58:05.406 am' author 'DanielUber' ancestors ((name 'ConfigurationOfSciSmalltalk-DanielUber.16' message 'changed version 1.02 to reflect new Complex, Quaternion, and Numerical package numbers.' id 'f8b5a5fe-dec3-4e50-8a28-83d6de695fd7' date '5 June 2012' time '5:03:59.538 pm' author 'DanielUber' ancestors ((name 'ConfigurationOfSciSmalltalk-DanielUber.15' message 'updated package names after renaming extensions packages for Quaternion, Numerical, and Complex.' id '0cd8165d-d9e9-4364-8962-5bab5cb8d9a9' date '5 June 2012' time '4:57:50.098 pm' author 'DanielUber' ancestors ((name 'ConfigurationOfSciSmalltalk-DanielUber.14' message 'changed load order.' id '0b8e97a6-643c-439f-a5a9-105967bd3462' date '5 June 2012' time '4:27:20.258 pm' author 'DanielUber' ancestors ((name 'ConfigurationOfSciSmalltalk-DanielUber.13' message 'separated package load.' id 'a9546148-d07f-465c-9f30-753f18440cdd' date '5 June 2012' time '3:39:42.348 pm' author 'DanielUber' ancestors ((name 'ConfigurationOfSciSmalltalk-DanielUber.12' message 'corrected typo in bleedingEdge.' id '7f0f99d3-5579-45f3-b07c-b3a6eccdb21f' date '20 May 2012' time '2:47:13.668 pm' author 'DanielUber' ancestors ((name 'ConfigurationOfSciSmalltalk-DanielUber.11' message 'added bleedingEdge version and updated to version 1.01' id '7e959693-c85b-4404-96d3-6e6cde48cb78' date '20 May 2012' time '2:44:26.266 pm' author 'DanielUber' ancestors ((name 'ConfigurationOfSciSmalltalk-DanielUber.10' message 'modified to try to load Math-All from ss3.' id '58c70684-ae18-470a-95cc-a4d4210e951b' date '17 May 2012' time '2:19:41.766 pm' author 'DanielUber' ancestors ((name 'ConfigurationOfSciSmalltalk-DanielUber.9' message 'currently loading DHB-Numerical, then Complex. There is an issue where DHB-Numerical needs Complex and Quaternion due to extensions, and Complex needs DHB-Numerical due to extensions. This may take some rethinking of the package structure (or require an extensions package).' id '9f772bde-a2f4-4d3a-9902-366cb0feeaf2' date '16 May 2012' time '4:11:19.556 pm' author 'DanielUber' ancestors ((name 'ConfigurationOfSciSmalltalk-DanielUber.8' message 'fixed typo in baseline.' id '384b19df-693f-4625-8399-bb2d83b68f14' date '16 May 2012' time '3:52:32.332 pm' author 'DanielUber' ancestors ((name 'ConfigurationOfSciSmalltalk-DanielUber.7' message 'added DHB-Numerical and fixed typos. Added to default and tests.' id 'b22b3ea1-6136-4ad2-ad87-b39fcfe6fb21' date '16 May 2012' time '3:50:26.232 pm' author 'DanielUber' ancestors ((name 'ConfigurationOfSciSmalltalk-DanielUber.6' message 'added DHB-Numerics as a dependency for Math-Complex.' id '2eb9c399-f1a4-4d7f-893d-48d06fc55424' date '16 May 2012' time '3:45:29.334 pm' author 'DanielUber' ancestors ((name 'ConfigurationOfSciSmalltalk-DanielUber.5' message 'added development version' id '0af623af-81f0-47ba-89e0-cc51698b2e9c' date '16 May 2012' time '3:35:20.434 pm' author 'DanielUber' ancestors ((name 'ConfigurationOfSciSmalltalk-DanielUber.4' message 'fixed dependency in baseline from Example-Core to Math-Complex.' id '7c5f16b4-3bfe-43bf-8ff6-33a9682d6f73' date '16 May 2012' time '3:28:34.716 pm' author 'DanielUber' ancestors ((name 'ConfigurationOfSciSmalltalk-DanielUber.3' message 'added version 100' id '3aae054c-4bc9-42e2-972c-dd44b5a1c722' date '16 May 2012' time '3:26:12.942 pm' author 'DanielUber' ancestors ((name 'ConfigurationOfSciSmalltalk-DanielUber.2' message 'created baseline for complex.' id '0c94552e-1fa2-437f-a308-71a3b71ab8dd' date '16 May 2012' time '3:21:19.742 pm' author 'DanielUber' ancestors ((name 'ConfigurationOfSciSmalltalk-DanielUber.1' message 'empty configuration. First commit.' id '2b16cd0b-9384-4fe9-a139-62c2f1fb7e84' date '16 May 2012' time '2:04:26.726 pm' author 'DanielUber' ancestors () stepChildren ())) stepChildren ())) stepChildren ())) stepChildren ())) stepChildren ())) stepChildren ())) stepChildren ())) stepChildren ())) stepChildren ())) stepChildren ())) stepChildren ())) stepChildren ())) stepChildren ())) stepChildren ())) stepChildren ())) stepChildren ())) stepChildren ())) stepChildren ())) stepChildren ())) stepChildren ())) stepChildren ())) stepChildren ())) stepChildren ())) stepChildren ())
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@
"category" : "Math-ODE",
"classinstvars" : [
],
"classtraitcomposition" : "{}",
"classvars" : [
],
"commentStamp" : "",
Expand All @@ -11,4 +12,5 @@
"pools" : [
],
"super" : "ControlledStepper",
"traitcomposition" : "{}",
"type" : "normal" }
2 changes: 2 additions & 0 deletions Math-ODE.package/ControlledStepper.class/properties.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@
"category" : "Math-ODE",
"classinstvars" : [
],
"classtraitcomposition" : "{}",
"classvars" : [
],
"commentStamp" : "<historical>",
Expand All @@ -11,4 +12,5 @@
"pools" : [
],
"super" : "Stepper",
"traitcomposition" : "{}",
"type" : "normal" }
2 changes: 2 additions & 0 deletions Math-ODE.package/DenseOutputStepper.class/properties.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@
"category" : "Math-ODE",
"classinstvars" : [
],
"classtraitcomposition" : "{}",
"classvars" : [
],
"commentStamp" : "<historical>",
Expand All @@ -11,4 +12,5 @@
"pools" : [
],
"super" : "Stepper",
"traitcomposition" : "{}",
"type" : "normal" }
1 change: 1 addition & 0 deletions Math-ODE.package/ExplicitAnnouncer.class/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
An ExplicitAnnouncer is used by ODESolver to announce step results (ExplicitSolverAnnouncement).
16 changes: 16 additions & 0 deletions Math-ODE.package/ExplicitAnnouncer.class/properties.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
{
"category" : "Math-ODE",
"classinstvars" : [
],
"classtraitcomposition" : "{}",
"classvars" : [
],
"commentStamp" : "<historical>",
"instvars" : [
],
"name" : "ExplicitAnnouncer",
"pools" : [
],
"super" : "Announcer",
"traitcomposition" : "{}",
"type" : "normal" }
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
An ExplicitSolverAnnouncement is a record of a step in an explicit system. It contains a time and a state.
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
accessing
x: aState t: aTime
^ self new x: aState t: aTime; yourself.
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
accessing
t
^ t
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
accessing
x
^ state
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
accessing
x: aState t: aTime
state:= aState.
t := aTime.
17 changes: 17 additions & 0 deletions Math-ODE.package/ExplicitSolverAnnouncement.class/properties.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
{
"category" : "Math-ODE",
"classinstvars" : [
],
"classtraitcomposition" : "{}",
"classvars" : [
],
"commentStamp" : "<historical>",
"instvars" : [
"t",
"state" ],
"name" : "ExplicitSolverAnnouncement",
"pools" : [
],
"super" : "Announcement",
"traitcomposition" : "{}",
"type" : "normal" }
Empty file.
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
instance creation
forAnnouncer: anAnnouncer
^ self new forAnnouncer: anAnnouncer.
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
instance creation
forSolver: anODESolver
^ self forAnnouncer: anODESolver announcer
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
accessing
announcers

^ announcers
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
accessing
block: aFormatBlock
block := aFormatBlock
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
accessing
block
^ block
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
subscription
forAnnouncer: anAnnouncer
anAnnouncer on: ExplicitSolverAnnouncement do: self block.
announcers add: anAnnouncer.
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
initialize-release
initialize
announcers := IdentitySet new.
block := self defaultBlock.
^ self
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
initialize-release
release
"stop announcers from sending messages"
self unsubscribe.
super release.
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
subscription
unsubscribe: anAnnouncer
anAnnouncer unsubscribe: self.
announcers remove: anAnnouncer ifAbsent: [].
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
subscription
unsubscribe
announcers do: [:ea | self unsubscribe: ea].
17 changes: 17 additions & 0 deletions Math-ODE.package/ExplicitSolverSubscriber.class/properties.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
{
"category" : "Math-ODE",
"classinstvars" : [
],
"classtraitcomposition" : "{}",
"classvars" : [
],
"commentStamp" : "",
"instvars" : [
"announcers",
"block" ],
"name" : "ExplicitSolverSubscriber",
"pools" : [
],
"super" : "Object",
"traitcomposition" : "{}",
"type" : "normal" }
2 changes: 2 additions & 0 deletions Math-ODE.package/ExplicitStepper.class/properties.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@
"category" : "Math-ODE",
"classinstvars" : [
],
"classtraitcomposition" : "{}",
"classvars" : [
],
"commentStamp" : "<historical>",
Expand All @@ -11,4 +12,5 @@
"pools" : [
],
"super" : "Stepper",
"traitcomposition" : "{}",
"type" : "normal" }
2 changes: 2 additions & 0 deletions Math-ODE.package/ExplicitSystem.class/properties.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@
"category" : "Math-ODE",
"classinstvars" : [
],
"classtraitcomposition" : "{}",
"classvars" : [
],
"commentStamp" : "<historical>",
Expand All @@ -11,4 +12,5 @@
"pools" : [
],
"super" : "ODESystem",
"traitcomposition" : "{}",
"type" : "normal" }
2 changes: 2 additions & 0 deletions Math-ODE.package/ImplicitStepper.class/properties.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@
"category" : "Math-ODE",
"classinstvars" : [
],
"classtraitcomposition" : "{}",
"classvars" : [
],
"commentStamp" : "<historical>",
Expand All @@ -11,4 +12,5 @@
"pools" : [
],
"super" : "Stepper",
"traitcomposition" : "{}",
"type" : "normal" }
2 changes: 2 additions & 0 deletions Math-ODE.package/ImplicitSystem.class/properties.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@
"category" : "Math-ODE",
"classinstvars" : [
],
"classtraitcomposition" : "{}",
"classvars" : [
],
"commentStamp" : "<historical>",
Expand All @@ -12,4 +13,5 @@
"pools" : [
],
"super" : "ODESystem",
"traitcomposition" : "{}",
"type" : "normal" }
2 changes: 2 additions & 0 deletions Math-ODE.package/MultiStepper.class/properties.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@
"category" : "Math-ODE",
"classinstvars" : [
],
"classtraitcomposition" : "{}",
"classvars" : [
],
"commentStamp" : "<historical>",
Expand All @@ -11,4 +12,5 @@
"pools" : [
],
"super" : "Stepper",
"traitcomposition" : "{}",
"type" : "normal" }
3 changes: 2 additions & 1 deletion Math-ODE.package/ODESolver.class/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,4 +3,5 @@ An ODE Solver uses a Stepper to solve a System.
The main interface once the solver is set up (it has a stepper and a solver) is
solve: system x0: aState t0: startTime t1: endTime
solve: system x0: aState t0: startTime t1: endTime stepSize: dt


Announcements are made when a step is taken.
3 changes: 3 additions & 0 deletions Math-ODE.package/ODESolver.class/instance/announcer..st
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
accessing
announcer: anAnnouncer
announcer := anAnnouncer
3 changes: 3 additions & 0 deletions Math-ODE.package/ODESolver.class/instance/announcer.st
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
accessing
announcer
^ announcer
5 changes: 5 additions & 0 deletions Math-ODE.package/ODESolver.class/instance/initialize.st
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
initialize-release
initialize
super initialize.
announcer := ExplicitAnnouncer new.
^ self
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@ solve: aSystem startState: initialState startTime: initialTime endTime: endTime
doStep: state
time: time
stepSize: self dt.
self fixMe: 'add a monitor method/announcement here'.
].
"announce step results"
announcer announce: (ExplicitSolverAnnouncement x: state t: time).
].
^ state
5 changes: 4 additions & 1 deletion Math-ODE.package/ODESolver.class/properties.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,15 +2,18 @@
"category" : "Math-ODE",
"classinstvars" : [
],
"classtraitcomposition" : "{}",
"classvars" : [
],
"commentStamp" : "<historical>",
"instvars" : [
"stepper",
"system",
"dt" ],
"dt",
"announcer" ],
"name" : "ODESolver",
"pools" : [
],
"super" : "Object",
"traitcomposition" : "{}",
"type" : "normal" }
2 changes: 2 additions & 0 deletions Math-ODE.package/ODESystem.class/properties.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@
"category" : "Math-ODE",
"classinstvars" : [
],
"classtraitcomposition" : "{}",
"classvars" : [
],
"commentStamp" : "<historical>",
Expand All @@ -11,4 +12,5 @@
"pools" : [
],
"super" : "Object",
"traitcomposition" : "{}",
"type" : "normal" }
2 changes: 2 additions & 0 deletions Math-ODE.package/Rosenbrock4Controller.class/properties.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@
"category" : "Math-ODE",
"classinstvars" : [
],
"classtraitcomposition" : "{}",
"classvars" : [
],
"commentStamp" : "",
Expand All @@ -11,4 +12,5 @@
"pools" : [
],
"super" : "ControlledStepper",
"traitcomposition" : "{}",
"type" : "normal" }
Loading

0 comments on commit 8971c8f

Please sign in to comment.