| Type | ||
|---|---|---|
| Name | Type | Values |
| Employee | String | Huey, Dewey, Louie |
| Function | |
|---|---|
| Name | Type |
| age of Employee | Int |
| service years of Employee | Int |
| vacation days of Employee | Int |
| Relation |
|---|
| Name |
| Employee is eligible for r1 |
| Employee is eligible for r2 |
| Employee is eligible for r3 |
| Rule 1 | ||||
|---|---|---|---|---|
| U | Employee | age of Employee | service years of Employee | Employee is eligible for r1 |
| 1 | - | < 18 | - | Yes |
| 2 | - | >= 60 | - | Yes |
| 3 | - | [18, 60) | >= 30 | Yes |
| Rule 2 | ||||
|---|---|---|---|---|
| U | Employee | age of Employee | service years of Employee | Employee is eligible for r2 |
| 1 | - | - | >= 30 | Yes |
| 2 | - | >= 60 | < 30 | Yes |
| Rule 3 | ||||
|---|---|---|---|---|
| U | Employee | age of Employee | service years of Employee | Employee is eligible for r3 |
| 1 | - | < 45 | [15, 30) | Yes |
| 2 | - | > 45 | - | Yes |
| Vacation days of Employee | |||||
|---|---|---|---|---|---|
| C+ | Employee | Employee is eligible for r1 | Employee is eligible for r2 | Employee is eligible for r3 | vacation days of Employee |
| 1 | - | - | - | - | 22 |
| 2 | - | Yes | - | - | 5 |
| 3 | - | - | Yes | - | 3 |
| 4 | - | No | - | Yes | 2 |
| Employee Info | |||
|---|---|---|---|
| D | Employee | age of Employee | service years of Employee |
| 1 | Huey | 17 | 1 |
| 2 | Dewey | 70 | 31 |
| 3 | Louie | 35 | 16 |
| 4 | Donald | 46 | 10 |