confCheck_easy: A simple conformance checking class

Description Usage Arguments Examples

Description

A first module for making conformance checking

Usage

1
confCheck_easy(verbose.mode = TRUE)

Arguments

verbose.mode

boolean. If TRUE some messages will appear in console, during the computation; otherwise the computation will be silent.

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
## Not run: 

#  Create a Conformance Checker obj
obj.cc <- confCheck_easy()

# Load an XML with the workflow to check
obj.cc$loadWorkFlow( WF.fileName='../otherFiles/import_01/rules.v2.xml' )

# plot the graph related to the XML
obj.cc$plot()

# now play 20 processes, 10 correct and 10 mismatchful 
# (matching and not matching can be seen thanks to the 'valido' column)
aaa <- obj.cc$play(number.of.cases = 20,min.num.of.valid.words = 10)

# Build a dataLoaderObject
objDL <- dataLoader()

# load the previously genearated data.frame
objDL$load.data.frame(mydata = aaa$valid.data.frame,IDName = "patID",
EVENTName = "event",dateColumnName = "date")

# now load the data into the obj
obj.cc$loadDataset(dataList = objDL$getData())
# replay the loaded data
obj.cc$replay()

# plot the result, showing the terminations in absolute values
obj.cc$plot.replay.result(whatToCount = "terminations",
kindOfNumber = "absolute")
# plot the result, showing the transitions in relative values
obj.cc$plot.replay.result(whatToCount = "activations",
kindOfNumber = "relative")

# get the XML of the replay
xmlText <- obj.cc$get.XML.replay.result()
# or the same data in form of list
list.result <- obj.cc$get.list.replay.result()

# plot the timeline of the first patient
# and the timeline computed during the re-play
obj.cc$plotPatientEventTimeLine(patientID = "1")
obj.cc$plotPatientReplayedTimeline(patientID = "1")


## End(Not run)

pMineR documentation built on May 2, 2019, 9:34 a.m.