[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Concurrent Schedules
From: |
Doug Donalson; |
Subject: |
Concurrent Schedules |
Date: |
Sat, 5 Apr 1997 12:19:56 -0800 (PST) |
Roger or Glen,
I have been trying to modify the concurrent schedule to
be able to remove an action. I admit I feel like one of
the three blind men trying to describe the elephant.
Here's where I am:
1.) concurrent schedule is a subclass of schedule that
adds one variable CAction *actionConcurrent;
2.) It overrides several schedule messages including
remove: aMember. (The override doesn't seem to be
in the .h file interface def.
3.) Schedule uses super (which is map_c) to perform the
actual remove so as a first shot I thought I'd try the same
with the concurrent schedule.
4.) If I use super (from concurrent schedule) I would get
Schedule remove: which would become recursive (and never ending?)
so I patched:
- remove: anAction
{
id nullAction;
nullAction= callMethodInClass( id_Map_c, M(remove:), anAction );
return nullAction;
}
for the concurrent schedule remove message. As far as it went
this worked okay as nullAction == anActionwhen this was used.
Unfortunatly, I have discovered that this interface is more complicated
than this. The actions that I removed were in fact gone
but there is still a dangling pointer somewhere.
I sometimes get an object lookup error in Xactivity but more
illuminating was the message list_linked doesn't respond to
perform_action.
How do I fix this? (For various reasons this is necessary
for my simulation to function properly.)
Cheers?
Doug Donalson
***************************************************************************
* Doug Donalson * Office: (805) 893-2962 *
* Ecology, Evolution, and Marine Biology * Home: (805) 961-4447 *
* UC Santa Barbara * email address@hidden
* Santa Barbara Ca. 93106 * *
***************************************************************************
* *
* The most exciting phrase to hear in science, the one that *
* hearlds new discoveries, is not "EUREKA" (I have found it) but *
* "That's funny ...?" *
* *
* Isaac Asimov *
* *
***************************************************************************
==================================
Swarm-Support is for discussion of the technical details of the day
to day usage of Swarm. For list administration needs (esp.
[un]subscribing), please send a message to <address@hidden>
with "help" in the body of the message.
==================================
- Concurrent Schedules,
Doug Donalson; <=