Menu

#6 State awareness

open
nobody
3
2008-04-24
2008-04-24
Gary Hale
No

Introduce state awareness. State says that the situation fires when some condition occurs, beginning the state, and then does not fire again until the state is left - via another situation. For example:

condition jobStarted is jobEvent within 5000;
condition jobStopped is not jobEvent within 15000;

action notifyStart is { ... };
action notifyStop is { ... };

state jobRunning begins with notifyStart ends with notifyStop;

when jobStarted start jobRunning;
when jobStopped stop jobRunning;

Not a good example, because you could do this without state, but I'll come back with a better example later...

Discussion


Log in to post a comment.

Want the latest updates on software, tech news, and AI?
Get latest updates about software, tech news, and AI from SourceForge directly in your inbox once a month.