Hi, I'm interested in cancelling a particular discrete event that has already been scheduled. Can this be done?
An example: I'm modeling a car moving on a highway in discrete steps from speed sign to speed sign. The car moves at the posted speed of the previous sign. At each speed sign the time required to reach the next sign is computed, and a delay equal to that time instantiated. But what if some asynchronous thing happens like the sudden appearance of a radar trap between signs, prior to when I will read that location. I will need to slow down, so I have a new event at the speed lign location. But, my previously calculated time-to-travel to the next sign is no longer valid: my speed has changed. I can schedule a new delay, but how do I cancel the already scheduled event? I don't see any methods in the DEDirector to cancel a specific future event, even if there was some way to precisely identify it. >From an actor point-of-view, it would be nice if the variableDelay actor in the library had an additional input port labelled "cancel" which cancelled the pending event. Thanks! ---------------------------------------------------------------------------- Posted to the ptolemy-hackers mailing list. Please send administrative mail for this list to: [EMAIL PROTECTED]