{% extends "internal_tpl_base.html" %} {% block content_title %}Normative Component{% endblock %} {% block content %}

Norms

{#
#}
{% for domain, norms in norms_db.items() %} {% for norm in norms %} {% endfor %} {% endfor %}
# Domain Norm Name Norm Type Condition function Reward function Penalty function Roles Inviolable
{{ loop.index }} {{ domain | replace("Domain.", "") }} {{ norm.name }} PROHIBITION {% if norm.reward_cb is none %} {% else %} {% endif %} {% if norm.reward_cb is none %} {% else %} {% endif %} {% for role in norm.roles %} {{ role | replace("Role.", "") }} {% endfor %} {% if norm.inviolable %} {% else %} {% endif %}

Actions

{#
#}
{% for name, action in actions.items() %} {% endfor %}
# Action Name Code
{{ loop.index }} {{ name }} View

Norms Log

{# #}
{% for event in traces %} {% endfor %}
Date Event Item Args
{{ event.0 }} {{ event.1 | replace("NormEventType.", "",) }} {{ event.2}} {{ event.3 }}
{% for domain, norms in norms_db.items() %} {% for norm in norms %} {% if norm.condition_fn %} {% endif %} {% if norm.reward_cb %} {% endif %} {% if norm.penalty_cb %} {% endif %} {% endfor %} {% endfor %} {% for name, action in actions.items() %} {% endfor %} {% endblock %} {% block scripts %} {% endblock %}