|
From: | Doug Donalson |
Subject: | Initial schedule values |
Date: | Wed, 16 Feb 2000 22:36:56 -0800 |
Marcus and Co.
Suppose I define a schedule the following
way:
concGroupType = [ConcurrentSchedule customizeBegin:
[self getZone]];
[concGroupType setAutoDrop: 1]; concGroupType = [concGroupType customizeEnd]; eventSchedule = [Schedule createBegin: [self
getZone]];
[eventSchedule setAutoDrop: 1]; [eventSchedule setConcurrentGroupType: concGroupType]; eventSchedule = [eventSchedule createEnd]; Now suppose I immediately do the following operations
(note the schedule is not yet activated):
index = [eventSchedule begin: [self getZone]
];
actionAtTime = [index next] timeOfAction = (timeval_t) [index getKey]; // key of member is time value What should the value "timeOfAction" of be?
My value seems to be 18 which might imply
unilitialized.
Cheers,
D3
*********************************************************************
* Doug Donalson Office: (805) 893-2962 * Ecology, Evolution, Home: (805) 961-4447 * and Marine Biology email address@hidden * UC Santa Barbara * 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 * ********************************************************************* |
[Prev in Thread] | Current Thread | [Next in Thread] |