      &#34;&#34;&#34;
        Add an action to the list of existing actions.

        Args:
            action: the action to add
            tofront: if True, add as first instead of last action
        &#34;&#34;&#34;
        if tofront:
            self.actions.insert(0, action)
        else:
            self.actions.append(action)</code></pre>
</details>
<h3>Methods</h3>
<dl>
<dt id="gatenlp.pam.pampac.actions.Actions.add"><code class="name flex">
<span>def <span class="ident">add</span></span>(<span>se