Changes between Version 20 and Version 21 of CurrentlyProposedLanguage
- Timestamp:
- Nov 8, 2010 9:22:16 AM (13 years ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
CurrentlyProposedLanguage
v20 v21 53 53 ||if condition cond holds then A occurs else B occurs || if cond then A else B || Lowest || 54 54 ||Repeat some action while condition cond holds ||do A while cond || Same as if || 55 ||A such that cond|| A | cond || Same as not ||55 ||A for which condition cond holds || A | cond || Same as not || 56 56 57 57 = Objects = … … 67 67 ||A’s initial state is Z || A := { state = Z} || 68 68 ||A has an object M of type Y and with initial value I || A := { Y M = I} || 69 || A is an alias for Bin state C || B := A{ state = C}||69 ||B is an alias for A in state C || B := A{ state = C}|| 70 70 ||There are N objects of type A || |A|,,N,, || 71 71 ||A is different than B|| A != B|| … … 73 73 74 74 = States and state changes = 75 State name may be just a symbolic name or it may be associated with an object variable holding some value. An object in a given state always responds in the same manner to the same stimuli. 75 State name may be just a symbolic name or it may be associated with an object variable holding some value. An object in a given state always responds in the same manner to the same stimuli. Both state and variable values can be changed during a state change. 76 States are really there just as a memory of which actions object has undergone and what may come next. For example once the Vulnerable object is 77 in infected state it starts scanning. 78 76 79 77 80 State change names start with s followed by a number. They are defined within curly brackets by specifying the object and its new state, like this: 78 81 79 82 {{{s1 := {object.state = newstate}}}} 83 80 84 81 85 = Events =