State functions

The RAM has three state functions: initRAM, terminateRAM, and reset, as illustrated in Figure 1. initRAM initializes the global variables of the RAM and establishes the connection to the repository. It cannot be called again within a session until the RAM has been terminated. reset restores the repository connection to its initial state. It can be called at any time except immediately after terminateRAM. terminateRAM can also be called at any time, but the only function that can be successfully called immediately after terminateRAM is initRAM.

Figure 1. RAM state diagram
RAM State Diagram