CommandSim State Manager (CS State Manager)

So far presented, the tools let you mock up a single visual with a variety of smoke and fire conditions. However, in practice, you often need the ability to look at a scene from various views to determine the appropriate course of action.

If you are only creating a single view, you only need to use CS Transition -- the CS State Manager persistance does not help you.

The CS State Manager lets you group a set of conditions into what we call a "state". With that group, you can invoke all those changes at once. You can already do this with CS Transition by using the same trigger (pressing 1, for example). However, if you were to show a new visual (file), such as from different sides of a building, you cannot use CS Transition to preserve the condition in the new visual. The CS State Manager lets you preserve the condition as you move from one file to another.

This is easiest to demonstrate by example. Look at the picture below. We have mocked-up two sides of a building (sides A and B), which show smoke coming out of side C (rear). We have defined three states: no fire, smoke showing, and fully-involved. You invoke the states by pressing 0, 1, or 2, respectively (you can assign arbitrary keystrokes or timing).

Click on the arrow to start. In the side A (front) view, you can see light smoke from the rear of the building. If you press the 0 key, the smoke will disappear. If you press 2, it will get worse (black). You can press 0, 1, or 2 as much as you would like. If you press the arrow key to move to side B, you will see that the smoke conditions are similar on side B. On side B, you can also press 0, 1, or 2 to change the conditions, and when you move back to side A, the conditions will persist. These examples are in the Samples folder in the distribution, under the folder State Examples.

Using CS State Manager

To help sort out where to start in the overall task of scenario creation, we developed a process described in the section titled "Scenario Creation Process." Part of the process is to define the number of states you will have, and then using one CS State Manager for each state in each file.

The CS State Manager component is located in the CommandSim folder in the Components panel (Window > Components). Drag a CSStateManager token onto the stage. On the Stage, the CS State Manager will be represented by an orange box with black text inside (below, left).

 

When you select the CS State Manager instance and open the Component Inspector, you will see the CS State Manager interface (above, right). The options are: