#include <integrator.h>
Inheritance diagram for Integrator:


Public Member Functions | |
| Integrator () | |
| void | set (double x, double y) |
| void | newPoint (double x, double y) |
| int | command (int argc, const char *const *argv) |
Protected Attributes | |
| double | lastx_ |
| double | lasty_ |
| double | sum_ |
|
|
Definition at line 51 of file integrator.cc. References lastx_, lasty_, and sum_.
|
|
||||||||||||
|
Definition at line 72 of file integrator.cc. References newPoint(), and set().
00073 {
00074 if (argc == 2) {
00075 if (strcmp(argv[1], "reset") == 0) {
00076 set(0., 0.);
00077 return (TCL_OK);
00078 }
00079 } else if (argc == 4) {
00080 if (strcmp(argv[1], "newpoint") == 0) {
00081 double x = atof(argv[2]);
00082 double y = atof(argv[3]);
00083 newPoint(x, y);
00084 return (TCL_OK);
00085 }
00086 }
00087 return (TclObject::command(argc, argv));
00088 }
|
Here is the call graph for this function:

|
||||||||||||
|
Definition at line 65 of file integrator.cc. References lastx_, lasty_, and sum_. Referenced by command(), QueueMonitor::drop(), QueueMonitor::in(), and QueueMonitor::out().
|
|
||||||||||||
|
Definition at line 58 of file integrator.cc. References lastx_, lasty_, and sum_. Referenced by command().
|
|
|
Definition at line 49 of file integrator.h. Referenced by Integrator(), newPoint(), and set(). |
|
|
Definition at line 50 of file integrator.h. Referenced by Integrator(), newPoint(), and set(). |
|
|
Definition at line 51 of file integrator.h. Referenced by Integrator(), newPoint(), and set(). |
1.3.3