Jump to content
Main menu
Main menu
move to sidebar
hide
Navigation
Main page
Recent changes
Random page
Help about MediaWiki
Special pages
Niidae Wiki
Search
Search
Appearance
Create account
Log in
Personal tools
Create account
Log in
Pages for logged out editors
learn more
Contributions
Talk
Editing
Vienna Development Method
(section)
Page
Discussion
English
Read
Edit
View history
Tools
Tools
move to sidebar
hide
Actions
Read
Edit
View history
General
What links here
Related changes
Page information
Appearance
move to sidebar
hide
Warning:
You are not logged in. Your IP address will be publicly visible if you make any edits. If you
log in
or
create an account
, your edits will be attributed to your username, along with other benefits.
Anti-spam check. Do
not
fill this in!
====Example data reification==== In a business security system, workers are given ID cards; these are fed into card readers on entry to and exit from the factory. Operations required: * <code>INIT()</code> initialises the system, assumes that the factory is empty * <code>ENTER(p : Person)</code> records that a worker is entering the factory; the workers' details are read from the ID card) * <code>EXIT(p : Person)</code> records that a worker is exiting the factory * <code>IS-PRESENT(p : Person) r : bool</code> checks to see if a specified worker is in the factory or not Formally, this would be: <syntaxhighlight lang="rsl"> types Person = token; Workers = set of Person; state AWCCS of pres: Workers end operations INIT() ext wr pres: Workers post pres = {}; ENTER(p : Person) ext wr pres : Workers pre p not in set pres post pres = pres~ union {p}; EXIT(p : Person) ext wr pres : Workers pre p in set pres post pres = pres~\{p}; IS-PRESENT(p : Person) r : bool ext rd pres : Workers post r <=> p in set pres~ </syntaxhighlight> As most programming languages have a concept comparable to a set (often in the form of an array), the first step from the specification is to represent the data in terms of a sequence. These sequences must not allow repetition, as we do not want the same worker to appear twice, so we must add an [[Invariant (computer science)|invariant]] to the new data type. In this case, ordering is not important, so <code>[a,b]</code> is the same as <code>[b,a]</code>. The Vienna Development Method is valuable for model-based systems. It is not appropriate if the system is time-based. For such cases, the [[calculus of communicating systems]] (CCS) is more useful.
Summary:
Please note that all contributions to Niidae Wiki may be edited, altered, or removed by other contributors. If you do not want your writing to be edited mercilessly, then do not submit it here.
You are also promising us that you wrote this yourself, or copied it from a public domain or similar free resource (see
Encyclopedia:Copyrights
for details).
Do not submit copyrighted work without permission!
Cancel
Editing help
(opens in new window)
Search
Search
Editing
Vienna Development Method
(section)
Add topic