Apex-pdp documentation changed Code to Github Link + fix for errors and warnings
[policy/parent.git] / docs / apex / APEX-DecisionMakerExample.rst
1 .. This work is licensed under a Creative Commons Attribution 4.0 International License.
2 .. http://creativecommons.org/licenses/by/4.0
3
4 .. _apex-DecisionMakerExample:
5
6 APEX Examples Decision Maker
7 ****************************
8
9             .. container:: sectionbody
10
11                   Click on the link to find the contents of each file to generate the Decision Maker Example.
12
13                   .. container:: ulist
14
15                      -  |apexConfigRESTClient_link|
16                      -  |apexConfigRESTServer_link|
17                      -  |answerInitiationEvent_link|
18                      -  |makeDecision_Client_link|
19                      -  |makeDecision_Server_link|
20                      -  |makeDecisionExtraMode_Client_link|
21                      -  |makeDecisionExtraMode_Server_link|
22
23                      -  APEX Model (Policies)
24
25                           - |answerInitTask_link|
26                           - |ditheringAnswerTask_link|
27                           - |makeDecisionStateTSL_link|
28                           - |optimisticAnswerTask_link|
29                           - |pessimisticAnswerTask_link|
30                           - |randomAnswerTask_link|
31                           - |roundRobinAnswerTask_link|
32
33
34    .. container::
35       :name: footer-text
36
37       2.3.0-SNAPSHOT
38       Last updated 2020-04-08 16:04:24 IST
39
40 .. |File > New to create a new Policy Model| image:: images/mfp/MyFirstPolicy_P1_newPolicyModel1.png
41 .. |Create a new Policy Model| image:: images/mfp/MyFirstPolicy_P1_newPolicyModel2.png
42 .. |ONAP| image:: ../../../images/logos.png
43    :class: builtBy
44    :target: http://www.onap.org/
45 .. |apexConfigRESTClient_link| raw:: html
46
47   <a href="https://github.com/onap/policy-apex-pdp/blob/master/examples/examples-decisionmaker/src/main/resources/examples/config/DecisionMaker/ApexConfigRESTClient.json" target="_blank">APEX Configuration: Rest Client</a>
48 .. |apexConfigRESTServer_link| raw:: html
49
50   <a href="https://github.com/onap/policy-apex-pdp/blob/master/examples/examples-decisionmaker/src/main/resources/examples/config/DecisionMaker/ApexConfigRESTServer.json" target="_blank">APEX Configuration: Rest Server</a>
51
52 .. |answerInitiationEvent_link| raw:: html
53
54   <a href="https://github.com/onap/policy-apex-pdp/blob/master/examples/examples-decisionmaker/src/main/resources/examples/config/DecisionMaker/AnswerInitiationEvent.json" target="_blank">Initiation Event</a>
55
56 .. |makeDecision_Client_link| raw:: html
57
58   <a href="https://github.com/onap/policy-apex-pdp/blob/master/examples/examples-decisionmaker/src/main/resources/examples/html/DecisionMaker/MakeDecision_Client.html" target="_blank">HTML Client</a>
59
60 .. |makeDecision_Server_link| raw:: html
61
62   <a href="https://github.com/onap/policy-apex-pdp/blob/master/examples/examples-decisionmaker/src/main/resources/examples/html/DecisionMaker/MakeDecision_Server.html" target="_blank">HTML Server</a>
63
64 .. |makeDecisionExtraMode_Client_link| raw:: html
65
66   <a href="https://github.com/onap/policy-apex-pdp/blob/master/examples/examples-decisionmaker/src/main/resources/examples/html/DecisionMaker/MakeDecisionExtraMode_Client.html" target="_blank">HTML Client: Extra Mode</a>
67
68 .. |makeDecisionExtraMode_Server_link| raw:: html
69
70   <a href="https://github.com/onap/policy-apex-pdp/blob/master/examples/examples-decisionmaker/src/main/resources/examples/html/DecisionMaker/MakeDecisionExtraMode_Server.html" target="_blank">HTML Server: Extra Mode</a>
71 .. |answerInitTask_link| raw:: html
72
73   <a href="https://github.com/onap/policy-apex-pdp/blob/master/examples/examples-decisionmaker/src/main/resources/logic/AnswerInitTask.js" target="_blank">Task Logic: Answer Init</a>
74
75 .. |ditheringAnswerTask_link| raw:: html
76
77   <a href="https://github.com/onap/policy-apex-pdp/blob/master/examples/examples-decisionmaker/src/main/resources/logic/DitheringAnswerTask.js" target="_blank">Task Logic: Dithering Answer</a>
78
79 .. |makeDecisionStateTSL_link| raw:: html
80
81   <a href="https://github.com/onap/policy-apex-pdp/blob/master/examples/examples-decisionmaker/src/main/resources/logic/MakeDecisionStateTSL.js" target="_blank">Task Selection Logic: Make Decision State</a>
82
83 .. |optimisticAnswerTask_link| raw:: html
84
85   <a href="https://github.com/onap/policy-apex-pdp/blob/master/examples/examples-decisionmaker/src/main/resources/logic/OptimisticAnswerTask.js" target="_blank">Task Logic: Optimistic Answer</a>
86
87 .. |pessimisticAnswerTask_link| raw:: html
88
89   <a href="https://github.com/onap/policy-apex-pdp/blob/master/examples/examples-decisionmaker/src/main/resources/logic/PessimisticAnswerTask.js" target="_blank">Task Logic: Pessimistic Answer</a>
90
91 .. |randomAnswerTask_link| raw:: html
92
93   <a href="https://github.com/onap/policy-apex-pdp/blob/master/examples/examples-decisionmaker/src/main/resources/logic/RandomAnswerTask.js" target="_blank">Task Logic: Random Answer</a>
94
95 .. |roundRobinAnswerTask_link| raw:: html
96
97   <a href="https://github.com/onap/policy-apex-pdp/blob/master/examples/examples-decisionmaker/src/main/resources/logic/RoundRobinAnswerTask.js" target="_blank">Task Logic: RoundRobin Answer</a>
98
99
100
101
102