WIP. Introduce credit distribution type, credit origin and credit amount
[aquarium] / logic / src / test / resources / credit-structure-greek-uni.yaml
1 # Definition of a client type (read: Company, Organization, …)
2
3 # This is not necessarily the organizational structure of the client.
4 # It may reflect the organizational structure but it actually is the credit structure of the particular client.
5 # The credit structure defines the ways that credits can be distributed among the participants.
6 #
7 # The idea is to provide the policy here and map it to our low-end, generic credit transfer/grouping
8 # mechanism(s).
9
10 # Also, these structures are kind of static and are considered integral part of the business case each client
11 # represents/is characterized by.
12
13 structure:
14   id: "gr.grnet.aquarium.credit.struct.GreekUniversityCreditStructure"
15   name: Greek University Structure
16   inherits:
17   credit-holders:
18     - University:
19       name: University # if omitted, taken as the credit-holders key (University in this case)
20       id: University   # if omitted, taken as the name (University in this case)
21       type: Composite  # if omitted, inferred by the presence of members
22       members:
23         - Department:      # Use the id here and not the name
24           credit-distribution:  # List of credit distribution types
25             - AliasFixed # only specific amounts are given to Departments
26         - Lab:
27           credit-distribution:
28             - AliasFixed # only specific amounts are given to Labs
29     - Department:
30       members:
31         - Professor:
32           credit-distribution:
33             - AliasAny # A Department has the ability to distribute credits to its Professors in the most flexible way
34         - Lab:
35           credit-distribution:
36             - AliasAny # A Department has the ability to distribute credits to its Labs in the most flexible way
37         - Course
38           credit-distribution:
39             - AliasAny # A Department has the ability to distribute credits to its Courses in the most flexible way
40         - Student # Is this a undergrad, a postgrad, a PhD?
41           credit-distribution:
42             - AliasFixed
43
44     - Lab:
45       name: Lab
46       contains:
47         - Course
48     - Professor:
49       name: Lab
50       contains: []
51     - Student:
52       name: Student
53       contains: []
54     - Exercise:
55       name: Exercise
56       contains: []
57   distribution: # describes the policy for the distribution of credits
58