File: prescreen.cc

package info (click to toggle)
simrisc 16.05.00-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 4,568 kB
  • sloc: cpp: 6,877; fortran: 665; makefile: 112; ansic: 112; sh: 107
file content (63 lines) | stat: -rw-r--r-- 2,281 bytes parent folder | download | duplicates (2)
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
//#define XERR
//#include "loop.ih"
//
//void Loop::preScreen()
//{
//    // see prescreen.txt
//
//    if (d_nRounds == 0)         // no scenario rounds, no pre-screening
//        return;
//
//    g_log << "\nLoop::preScreen\n";
//
//    // age 0: the 1st screening age, e.g. 50
//    double age0 = d_screening.roundAge(0);  // using the complement of the
//    if (                                    // prescreen in the original code
//        d_naturalDeathAge >= age0
//        and
//        (
//            not d_tumor.selfDetectable()    // these are accessor calls
//            or
//            d_tumor.selfDetectAge() >= age0
//        )
//    )
//    {
//        g_log << "   case alive and no (detectable) tumor before age " <<
//                 age0 << ": no preScreen\n";
//        return;
//    }
//
////  ---------------------------------------------------------------------
////                                        action:
////  self-       nat.death <         -----------------------
////  detectable  tumor:selfDetect    nat.death   tumordetect   alternative
////  ---------------------------------------------------------------------
////   0             0                    1            0           if
////   0             1                    0            1           if
////   1             0                    1            0           else
////   1             1                    1            0           if
////  ---------------------------------------------------------------------
//
//    // main block resulting in the case leaving when prescreening
//    // ==========================================================
//
//    if (                        // pre-screening is performed:
//        not d_tumor.selfDetectable() or
//        (
//            d_tumor.selfDetectable()
//            and
//            d_naturalDeathAge < d_tumor.selfDetectAge()
//        )
//    )
//    {
//        g_log << "  *** preTumorDeath: case died naturally\n";
//        preTumorDeath();    // natural death: no tumor or not self-detected
//    }
//    else
//    {
//        g_log <<
//            "  *** self detected: case self-detected a tumor and leaves\n";
//        preSelfDetected();  // self detected the tumor before the screening
//    }
//}
//