<?xml version="1.0" encoding="utf-8"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom"><channel><title>Recent changes to FileSystem.ocl</title><link>https://sourceforge.net/p/alloymda/wiki/FileSystem.ocl/</link><description>Recent changes to FileSystem.ocl</description><atom:link href="https://sourceforge.net/p/alloymda/wiki/FileSystem.ocl/feed" rel="self"/><language>en</language><lastBuildDate>Sun, 25 Mar 2012 20:16:36 -0000</lastBuildDate><atom:link href="https://sourceforge.net/p/alloymda/wiki/FileSystem.ocl/feed" rel="self" type="application/rss+xml"/><item><title>WikiPage FileSystem.ocl modified by Alcino Cunha</title><link>https://sourceforge.net/p/alloymda/wiki/FileSystem.ocl/</link><description>~~~~~
package FileSystem
   context Object
      inv: Object.allInstances()-&gt;forAll(y | ((Dir.allInstances()-&gt;exists(v3 | (self.parent-&gt;includes(v3) and y.parent-&gt;includes(v3))) and (not (y = self))) implies (not Name.allInstances()-&gt;forAll(v0 | (self.name-&gt;includes(v0) implies y.name-&gt;includes(v0))))))
   context Object
      inv: (not self-&gt;closure(v9 | v9.parent-&gt;asSet())-&gt;includes(self))
   context FileSystem
      inv: Dir.allInstances()-&gt;forAll(v12 | ((self.root-&gt;includes(v12) or self.wd-&gt;includes(v12)) implies self.objects-&gt;includes(v12)))
   context FileSystem
      inv: Object.allInstances()-&gt;forAll(o | (self.objects-&gt;includes(o) implies Dir.allInstances()-&gt;forAll(v17 | (o.parent-&gt;includes(v17) implies self.objects-&gt;includes(v17)))))
   context FileSystem
      inv: Object.allInstances()-&gt;forAll(v24 | (self.objects-&gt;includes(v24) implies Dir.allInstances()-&gt;exists(v27 | (((v24 = v27) or v24-&gt;closure(v28 | v28.parent-&gt;asSet())-&gt;includes(v27)) and self.root-&gt;includes(v27)))))
   context FileSystem::ls():Set(Object)
      body: Object.allInstances()-&gt;select(v33 | (Dir.allInstances()-&gt;exists(v34 | (v33.parent-&gt;includes(v34) and self.wd-&gt;includes(v34))) and self.objects-&gt;includes(v33)))
   context FileSystem::rm(f:File)
      pre: self.ls()-&gt;includes(f)
      post: (Object.allInstances()-&gt;forAll(v43 | (self.objects-&gt;includes(v43) implies (self.objects@pre-&gt;includes(v43) and (not (v43 = f))))) and Object.allInstances()-&gt;forAll(v48 | ((self.objects@pre-&gt;includes(v48) and (not (v48 = f))) implies self.objects-&gt;includes(v48))))
      post: (Dir.allInstances()-&gt;forAll(v53 | (self.root-&gt;includes(v53) implies self.root@pre-&gt;includes(v53))) and Dir.allInstances()-&gt;forAll(v58 | (self.root@pre-&gt;includes(v58) implies self.root-&gt;includes(v58))))
      post: (Dir.allInstances()-&gt;forAll(v63 | (self.wd-&gt;includes(v63) implies self.wd@pre-&gt;includes(v63))) and Dir.allInstances()-&gt;forAll(v68 | (self.wd@pre-&gt;includes(v68) implies self.wd-&gt;includes(v68))))
   context FileSystem::cd(d:Dir)
      pre: self.objects-&gt;includes(d)
      post: (Dir.allInstances()-&gt;forAll(v76 | (self.wd-&gt;includes(v76) implies (v76 = d))) and self.wd-&gt;includes(d))
      post: (Object.allInstances()-&gt;forAll(v82 | (self.objects-&gt;includes(v82) implies self.objects@pre-&gt;includes(v82))) and Object.allInstances()-&gt;forAll(v87 | (self.objects@pre-&gt;includes(v87) implies self.objects-&gt;includes(v87))))
      post: (Dir.allInstances()-&gt;forAll(v92 | (self.root-&gt;includes(v92) implies self.root@pre-&gt;includes(v92))) and Dir.allInstances()-&gt;forAll(v97 | (self.root@pre-&gt;includes(v97) implies self.root-&gt;includes(v97))))
endpackage
~~~~~~</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Alcino Cunha</dc:creator><pubDate>Sun, 25 Mar 2012 20:16:36 -0000</pubDate><guid>https://sourceforge.net1d76a9511a2c2d54f0550cdfbe3ca214549109f2</guid></item></channel></rss>