-
Notifications
You must be signed in to change notification settings - Fork 1
/
callingFunc.m
76 lines (57 loc) · 2.41 KB
/
callingFunc.m
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
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
function opRes = callingFunc (parentID,operatorCnt,inputDat,startTime,stopTime,theTree,samplingTime)
% disp(operatorCnt);
sortedInput = sortrows(inputDat,1);
% disp(sortedInput);
switch operatorCnt(1,1)
case '>'
% disp('the operator is >');
opRes = greaterFunc(parentID,sortedInput);
case '<'
% disp('the operator is <');
opRes = lessFunc(parentID,sortedInput);
case '!'
% % disp('the operator is !');
opRes = notFunc(parentID,sortedInput);
case '|'
% disp('the operator is ^');
opRes = orFunc(parentID,sortedInput,startTime,stopTime);
case '^'
% disp('the operator is ^');
opRes = andFunc(parentID,sortedInput,startTime,stopTime);
case '#'
% disp('the operator is implies');
opRes = impliesFunc(parentID,sortedInput,startTime,stopTime);
case 'G'
% disp('the operator is G');
[intLow,intUpp]= extractInterval(operatorCnt);
opRes = globallyFunc(parentID,sortedInput,intLow,intUpp,startTime,stopTime);
case 'E'
% disp('the operator is E');
[intLow,intUpp]= extractInterval(operatorCnt);
opRes = eventuallyFunc(parentID,sortedInput,intLow,intUpp,startTime,stopTime);
case 'U'
[intLow,intUpp]= extractInterval(operatorCnt);
opRes = untilFunc(parentID,sortedInput,intLow,intUpp,startTime,stopTime);
case 'D'
% [intLow,intUpp]= extractInterval(operatorCnt);
opRes = dFunc(parentID,sortedInput);
case 'L'
% [intLow,intUpp]= extractInterval(operatorCnt);
opRes = latencyFunc(parentID,sortedInput);
latencyToTS(parentID, theTree,samplingTime);
case 'F'
% [intLow,intUpp]= extractInterval(operatorCnt);
opRes = freqFunc(parentID,sortedInput);
freqToTS (parentID,theTree,samplingTime);
case 'P'
% [intLow,intUpp]= extractInterval(operatorCnt);
opRes = phaseFunc(parentID,sortedInput);
case 'S'
% [intLow,intUpp]= extractInterval(operatorCnt);
opRes = simFunc(parentID,sortedInput);
case 'C'
% [intLow,intUpp]= extractInterval(operatorCnt);
opRes = chroFunc(parentID,sortedInput);
end
% plotFunc(opRes,startTime,stopTime);
end