[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Q: re dynamic scheduling
From: |
Doug Donalson; |
Subject: |
Re: Q: re dynamic scheduling |
Date: |
Wed, 4 Feb 1998 13:52:28 -0800 (PST) |
Check to see that the event is actually being created.
The add event statement returns the id of the new action.
Add "theId=[]" and check to see that it is not null.
That is the first step anyway. I play with these
quite a bit so feel free to email me directly if
you want.
Cheers,
Doug
***************************************************************************
* 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 *
* heralds new discoveries, is not "EUREKA" (I have found it) but *
* "That's funny ...?" *
* *
* Isaac Asimov *
* *
***************************************************************************
On Wed, 4 Feb 1998, Geoffrey Schultz wrote:
> Hi,
>
> I'm trying to set up a dynamic schedule in which an action will be added
> to a schedule in response to a user-defined button press of a probe.
> However the action does not seem to be added to the schedule, even though
> the button press message probe appears to be working...
>
> eg.
>
> -buildActions{
>
> // code for other non-dynamic schedules before this
>
> myDynamicSchedule=[Schedule createBegin: [self getZone]];
> [myDynamicSchedule setAutoDrop: 1];
> myDynamicSchedule=[myDynamicSchedule createEnd];
>
> return self;
> }
>
> -myDynamicScheduleTrigger{
> timeval_t now;
> now=getCurrentTime();
> printf("now is %u\n",now);
>
> [myDynamicSchedule at: now+10 createActionTo: anObj message:M(aMessage)];
>
> return self;
> }
>
>
> Now,
> creating a message probe on "myDynamicScheduleTrigger" sets up ok and
> during the simulation pressing the button prints out the current time to
> stdout however the action does not get added to the schedule (or at least
> I'm assuming that it does not because sending "aMessage" to "anObj" in
> this simulation has visible effects on a ZoomRaster).
>
> Also, if I schedule an action to myDynamicSchedule (non-dynamically from
> within the "buildActions" method) it executes fine...
>
>
> any Suggestions?
>
> (I'm using 1.0.5,)
>
>
> Thanks,
>
> Geoff Schultz
>
>
> ==================================
> 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.
> ==================================
>
==================================
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.
==================================