]> matita.cs.unibo.it Git - helm.git/blobdiff - helm/software/lambda-delta/src/basic_ag/bagEnvironment.ml
we renamed the module abbreviations according to src/modules.ml
[helm.git] / helm / software / lambda-delta / src / basic_ag / bagEnvironment.ml
index 04681cfeee6cb7cb0934797782774490722b71fe..30e3e992f2ed4f00e8375f0fdfd9c7ff4798545d 100644 (file)
 
 module U = NUri
 module L = Log
-module H = U.UriHash
-module Y = Entity
-module B = Bag
+module K = U.UriHash
+module E = Entity
+module Z = Bag
 
-exception ObjectNotFound of B.message
+exception ObjectNotFound of Z.message
 
 let hsize = 7000 
-let env = H.create hsize
+let env = K.create hsize
 
 (* Internal functions *******************************************************)
 
@@ -32,8 +32,8 @@ let error uri = raise (ObjectNotFound (L.items1 (U.string_of_uri uri)))
 
 let set_entity f (a, uri, b) =
    let age = get_age () in
-   let entry = (Y.Apix age :: a), uri, b in
-   H.add env uri entry; f entry
+   let entry = (E.Apix age :: a), uri, b in
+   K.add env uri entry; f entry
 
 let get_entity f uri =
-   try f (H.find env uri) with Not_found -> error uri
+   try f (K.find env uri) with Not_found -> error uri