Changeset 431 in tmcsimulator for trunk/webapps/unifiedlogger/CMS watcher design.txt
- Timestamp:
- 07/06/2019 01:54:03 PM (7 years ago)
- File:
-
- 1 edited
-
trunk/webapps/unifiedlogger/CMS watcher design.txt (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
trunk/webapps/unifiedlogger/CMS watcher design.txt
r429 r431 1 For each cms in signlist2 1 3 IF prev is empty and curr not empty THEN 4 print "Activated", ID, curr 5 IF curr is empty and prev not empty THEN 6 print "Deactivated", ID 7 IF curr not empty and prev not empty and curr not equal prev THEN 8 print "Updated", ID, curr 2 Function Setup 3 /* Assumes cms messages file is created in same order each time. */ 4 Create two lists, prev and curr, initially empty 5 Load the cmsmessage file into prev. 9 6 10 END 7 Function processMessages 8 Load the cms message file into curr 9 Reset Results 10 For idx in 1 to length(curr) 11 11 12 IF prev[idx] is empty and curr[idx] not empty THEN 13 append to results: "Activated", ID, curr[idx] 14 IF curr is empty and prev not empty THEN 15 append to results: "Deactivated", ID 16 IF curr not empty and prev not empty and curr not equal prev THEN 17 append to results: "Updated", ID, curr 18 19 END 20 21 Copy curr to prev 22 23
Note: See TracChangeset
for help on using the changeset viewer.
