git-svn-id: https://projects.brucker.ch/su4sml/svn/su4sml/trunk@7781 3260e6d1-4efc-4170-b0a7-36055960796d

This commit is contained in:
Manuel Krucker 2008-04-28 12:44:57 +00:00
parent dbbfed17cc
commit 91262dd326
3 changed files with 51 additions and 38 deletions

View File

@ -21,20 +21,23 @@ val zargo = "../../../examples/SimpleChair/SimpleChair.zargo"
val ocl = "../../../examples/SimpleChair/AbstractSimpleChair04.ocl"
val remP = ["AbstractSimpleChair02", "AbstractSimpleChair03","AbstractSimpleChair01","ConcreteSimpleChair01"] ;
*)
(*
(** EBANK **)
(*
val zargo = "../../../examples/ebank/ebank.zargo"
val ocl="../../../examples/ebank/ebank.ocl"
val remP = []
*)
(*
(** ISP **)
(*
val zargo = "../../../examples/isp/isp.zargo"
val ocl="../../../examples/isp/isp.ocl"
*)
(*
(** ROYALS AND LOYASL **)
(*
val zargo = "../../../examples/royals_and_loyals/royals_and_loyals.zargo"
val ocl="../../../examples/royals_and_loyals/royals_and_loyals.ocl"
val remP = []
@ -53,8 +56,9 @@ val zargo = "../../../examples/digraph/digraph.zargo"
val ocl = "../../../examples/digraph/digraph.ocl"
val remP = []
*)
(*
(** VEHICLES **)
(*
val zargo = "../../../examples/vehicles/vehicles.zargo"
val ocl = "../../../examples/vehicles/vehicles.ocl"
*)

View File

@ -8,23 +8,41 @@ open WFCPOG_TestSuite
structure RFM_Data = WFCPOG_Refine_Constraint.WFCPOG_RFM_Data
structure TAX_Data = WFCPOG_Taxonomy_Constraint.WFCPOG_TAX_Data
(** LISKOV CONSTRAINT **)
val lsk = get_wfpo supported_pos "po_lsk"
val _ = trace high ("............. liskov constraint loaded ...\n")
(** ################# **)
(** WELLFORMED-CHECKS **)
(** ################# **)
(** INTERFACE CONSTRAINT **)
val inf = get_wfpo supported_wfs "wfc_inf"
val wfc_inf = get_wfpo supported_wfs "wfc_inf"
val _ = trace high ("............. interface constraint loaded ...\n")
(** VISIBILITY CONSTRAINT **)
val wfc_vis = get_wfpo supported_wfs "wfc_vis"
val _ = trace high ("............. visibility constraint loaded ...\n")
(* TAXONOMY CONSTRAINT *)
val wfc_tax = get_wfpo supported_wfs "wfc_tax"
val _ = trace high ("............. taxonomy constraint loaded ...\n")
(** REFINEMENT CONSTRAINT **)
val wfc_rfm = get_wfpo supported_wfs "wfc_rfm"
val _ = trace high ("............. refinement constraints loaded ...\n")
val wfc_rfm_SC = rename_wfpo "wfc_rfm_SC" (RFM_Data.put ({key=10,rfm_tuples=[(["AbstractSimpleChair04"],["ConcreteSimpleChair02"])]}) wfc_rfm)
val _ = trace high ("............. refine wfc constraint loaded ...\n")
(** ################# **)
(** PROOF OBLIGATIONS **)
(** ################# **)
(** LISKOV CONSTRAINT **)
val po_lsk = get_wfpo supported_pos "po_lsk"
val _ = trace high ("............. liskov constraint loaded ...\n")
(** DATA MODEL CONSTRAINT **)
val cm = get_wfpo supported_pos "po_class_model"
val sm = get_wfpo supported_pos "po_strong_model"
val po_cm = get_wfpo supported_pos "po_class_model"
val po_sm = get_wfpo supported_pos "po_strong_model"
val _ = trace high ("............. data model constraint loaded ...\n")
(** OPERATIONAL CONSTRAINT **)
@ -32,42 +50,34 @@ val _ = trace high ("............. data model constraint loaded ...\n")
val om = WFCPOG_Registry.get_wfpo WFCPOG_Registry.supported "oper_model"
val _ = trace high ("............. operational constraint loaded ...\n")
*)
(** CONSTRUCTOR CONSTRAINT **)
val po_cstr = get_wfpo supported_pos "po_cstr"
val _ = trace high ("............. constructor constraints loaded ...\n")
(** COMMAND/QUERY CONSTRAINT **)
val cmd = get_wfpo supported_pos "po_cmd"
val quy = get_wfpo supported_pos "po_quy"
val po_cmd = get_wfpo supported_pos "po_cmd"
val po_quy = get_wfpo supported_pos "po_quy"
val _ = trace high ("............. command/query constraints loaded ...\n")
(** VISIBILITY CONSTRAINT **)
val vis = get_wfpo supported_wfs "wfc_vis"
val _ = trace high ("............. visibility constraint loaded ...\n")
(** REFINEMENT CONSTRAINT **)
val rfm_wfc = get_wfpo supported_wfs "wfc_rfm"
val po_rfm = get_wfpo supported_pos "po_rfm"
val _ = trace high ("............. refinement constraints loaded ...\n")
val rfm_pog = get_wfpo supported_pos "po_rfm"
val _ = trace high ("............. refinement constraints loaded ...\n")
(* TAXONOMY CONSTRAINT *)
val tax = get_wfpo supported_wfs "wfc_tax"
val _ = trace high ("............. taxonomy constraint loaded ...\n")
val rfm_SC_wfc = rename_wfpo "rfm_SC_wfc" (RFM_Data.put ({key=10,rfm_tuples=[(["AbstractSimpleChair04"],["ConcreteSimpleChair02"])]}) rfm_wfc)
val _ = trace high ("............. refine wfc constraint loaded ...\n")
val rfm_SC_pog = rename_wfpo "rfm_SC_pog" (RFM_Data.put ({key=10,rfm_tuples=[(["AbstractSimpleChair04"],["ConcreteSimpleChair02"])]}) rfm_pog)
val po_rfm_SC = rename_wfpo "po_rfm_SC" (RFM_Data.put ({key=10,rfm_tuples=[(["AbstractSimpleChair04"],["ConcreteSimpleChair02"])]}) po_rfm)
val _ = trace high ("............. refine pog constraint loaded ...\n")
(*
val md0 = rename_wfpo "md0" (TAX_Data.put ({key=8,max_depth=10}) tax)
val md0 = rename_wfpo "md0" (TAX_Data.put ({key=8,max_depth=0}) tax)
val md1 = rename_wfpo "md1" (TAX_Data.put ({key=9,max_depth=1}) tax)
val md2 = rename_wfpo "md2" (TAX_Data.put ({key=9,max_depth=2}) tax)
val md3 = rename_wfpo "md3" (TAX_Data.put ({key=9,max_depth=3}) tax)
val md4 = rename_wfpo "md4" (TAX_Data.put ({key=9,max_depth=4}) tax)
(* val md5 = rename_wfpo "md5" (TAX_Data.put ({key=9,max_depth=5}) tax) *)
val md5 = rename_wfpo "md5" (TAX_Data.put ({key=9,max_depth=5}) tax)
val md6 = rename_wfpo "md6" (TAX_Data.put ({key=9,max_depth=6}) tax)
val md7 = rename_wfpo "md7" (TAX_Data.put ({key=9,max_depth=7}) tax)
val md8 = rename_wfpo "md8" (TAX_Data.put ({key=9,max_depth=8}) tax)
*)
(*
val wfs = [inf,vis,md0,md1,md2,md3,md4,md5,md6,md7,md8,rfm_SC_wfc]
val pos = [lsk,cm,sm,om,cmd,quy]
@ -79,4 +89,4 @@ val pos = [rfm_SC_pog]
*)
val wfs = []
val pos = [cm,sm]
val pos = [po_cmd,po_quy]

View File

@ -119,7 +119,6 @@ fun set_printLength x =
in
print ("printLength set to " ^ (Int.toString (x)) ^ ".\n")
end
fun add_dot 1 = ["."]
| add_dot x = (".")::(add_dot (x-1))