.. _behavior: Behavior ============= .. _choregraphe-reference-behavior: What is a Behavior ------------------- A behavior contains all the **commands** to send to NAO to make him talk, walk, dance, play a sound, etc. Those commands are represented by :ref:`boxes ` which are **sequentially** or **simultaneously** executed. Somehow a behavior can even be considered as a :ref:`box ` which: * is named **root**. * is a :ref:`flow diagram box `, so is basically built-up with boxes linked to each other. * is **launchable** since it has an **onStart** :ref:`input ` (at the top left of the flow diagram) which is called when you :ref:`play ` the behavior. * is **stoppable**. * has an **onStopped** :ref:`output ` by default (at the top right of the flow diagram) which **unloads the behavior** when it is called. * has no :ref:`parameter `. The main difference rests with the fact that most editable elements of a box are not editable for a behavior. You can only modify: * its :ref:`diagram `. * its :ref:`inputs ` from ALMemory. * its :ref:`outputs `.