Contents

    1  Introduction
        1.1  Routines Available in the Simulation Collection
        1.2  The Simulation Collection is Free Software
        1.3  Obtaining the Simulation Collection
        1.4  No Warranty

    2  Using the Simulation Collection
        2.1  An Example
        2.2  Loading the Simulation Collection
        2.3  Graphics Modules

    3  Simulation Environments (Basic)
        3.1  The simulation-environment Structure
        3.2  Current Simulation Environment
            3.2.1  Current Simulation Environment Fields

    4  Simulation Control (Basic)
        4.1  Scheduling Events and Processes
        4.2  Controlling the Simulation Main Loop
        4.3  Simulating Waiting and Working

    5  Events
        5.1  The event Structure
        5.2  Event Lists
        5.3  Example - Functions as Events

    6  Processes
        6.1  Defining a Process
        6.2  Creating and Accessing Processes
            6.2.1  The process Structure
            6.2.2  Creating Processes
            6.2.3  Process States
        6.3  Example - Processes

    7  Resources
        7.1  The resource Structure
            7.1.1  Shortcuts to Resource Set Veriables
        7.2  Requesting and Relinquishing Resources
            7.2.1  Requesting Resources
            7.2.2  Relinquishing Resources
            7.2.3  The with-resource Macro
        7.3  Example - Resources

    8  Data Collection
        8.1  Variables
            8.1.1  The variable Structure
        8.2  Tally and Accumulate
            8.2.1  Tally
            8.2.2  Accumulate
        8.3  Statistics and Histories
            8.3.1  Statistics
            8.3.2  History
                8.3.2.1  History Graphics
            8.3.3  Example - Tally and Accumulate Example
            8.3.4  Variable Monitors
        8.4  Example - Data Collection
        8.5  Data Collection Across Multiple Simulation Runs
            8.5.1  Open Loop Processing
                8.5.1.1  Example - Open Loop Processing
            8.5.2  Closed Loop Processing
                8.5.2.1  Example - Closed Loop Processing

    9  Sets
        9.1  The set-cell Structure
        9.2  The set Structure
        9.3  Set Operations
            9.3.1  Generic Routines
        9.4  Example - Furnace Model 1

    10  Continuous Simulation Models
        10.1  Continuous Variables
        10.2  Simulation Control (Continuous)
            10.2.1  Example - Furnace Model 2
        10.3  Simulation Environment (Continuous)
            10.3.1  Fixed Step Size
                10.3.1.1  Example - Furnace Model 2a
            10.3.2  Limiting Step Size
                10.3.2.1  Example - Furnace Model 2b
        10.4  Furnace Model 3

    11  Simulation Classes
        11.1  Process Classes
        11.2  Resource Classes
        11.3  Example - Simulation Classes

    12  Simulation Control (Advanced)
        12.1  Example - Harbor Model

    13  Simulation Environments (Hierarchical)

    14  Components

    A  GNU Lesser General Public License (LGPL)

    B  Simplified Simulation System

    Bibliography