@@ -234,7 +234,9 @@ The prespective shows the list of stack frames, breakpoints and variables.
234234 Modeling a Model
235235----------------
236236
237- Creating a New Modelica class
237+ .. _creating-new-class :
238+
239+ Creating a New Modelica Class
238240~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
239241
240242Creating a new Modelica class in OMEdit is rather straightforward.
@@ -297,7 +299,7 @@ In order to connect one component model to another the user first needs
297299to enable the connect mode (|connect-mode |) from the toolbar.
298300
299301Move the mouse over the connector. The mouse cursor will change from arrow cursor to cross cursor.
300- To start the connection press left button and keep it pressed and move . Now release the left button.
302+ To start the connection press left button and move while keeping the button pressed . Now release the left button.
301303Move towards the end connector and click when cursor changes to cross cursor.
302304
303305.. |connect-mode | image :: media/omedit-icons/connect-mode.*
@@ -356,7 +358,7 @@ General Tab
356358- *Number of Processors * – the number of processors used to build the simulation.
357359
358360- *Build Only * – only builds the class.
359-
361+
360362- *Launch Transformational Debugger * – launches the transformational debugger.
361363
362364- *Launch Algorithmic Debugger * – launches the algorithmic debugger.
@@ -553,7 +555,7 @@ By pushing the *previous* button, the animation jumps to the initial point of ti
553555Points of time can be selected by moving the *time slider * or by inserting a simulation time in the *Time-box *.
554556The speed factor of animation in relation to realtime can be set in the *Speed-dialog *.
555557Other animations can be openend by using the *open file * button and selecting a result file with a corresping scene description file.
556-
558+
557559The 3D camera view can be manipulated as follows:
558560
559561======================== ============================== ========================
@@ -573,22 +575,22 @@ Additional Visualization Features
573575^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
574576The shapes that are displayed in the viewer can be selected with shift + right click.
575577If a shape is selected, a context menu pops up that offers additional visualization features
576-
578+
577579.. figure :: media/pick_shape.png
578580 :name: A context menu to set additional visualization features for the selected shape.
579581
580582 The following features can be selected:
581583
582- ======================== ================================================================================================
583- Menu Description
584- ======================== ================================================================================================
584+ ======================== ================================================================================================
585+ Menu Description
586+ ======================== ================================================================================================
585587Change Transparency The shape becomes either transparent or intransparent.
586588Make Shape Invisible The shape becomes invisible.
587589Change Color A color dialog pops up and the color of the shape can be set.
588590Apply Check Texture A checked texture is applied to the shape.
589591Apply Custom Texture A file selection dialog pops up and an image file can be selected as a texture.
590592Remove Texture Removes the current texture of the shape.
591- ======================== ================================================================================================
593+ ======================== ================================================================================================
592594
593595|
594596.. figure :: media/visual_features.png
@@ -663,7 +665,7 @@ annotation of the model.
663665Global head section in documentation
664666------------------------------------
665667
666- If you want to use same styles or same JavaScript for the classes contained inside a package then
668+ If you want to use same styles or same JavaScript for the classes contained inside a package then
667669you can define ``__OpenModelica_infoHeader `` annotation inside the ``Documentation `` annotation of a package.
668670For example,
669671
@@ -684,11 +686,11 @@ For example,
684686 end P;
685687
686688 In the above example model ``M `` does not need to define the javascript function ``HelloWorld ``.
687- It is only defined once at the package level using the ``__OpenModelica_infoHeader `` and then all classes
689+ It is only defined once at the package level using the ``__OpenModelica_infoHeader `` and then all classes
688690contained in the package can use it.
689691
690692In addition styles and JavaScript can be added from file locations using Modelica URIs.
691- Example:
693+ Example:
692694
693695.. code-block :: modelica
694696
@@ -831,7 +833,7 @@ Text Editor
831833 Sets the font for the editor.
832834
833835 - *Font Size * – Sets the font size for the editor.
834-
836+
835837Modelica Editor
836838~~~~~~~~~~~~~~~
837839
@@ -1131,12 +1133,45 @@ For debugging capability, see :ref:`debugging`.
11311133Editing Modelica Standard Library
11321134---------------------------------
11331135
1134- By default OMEdit loads the Modelica Standard Library (MSL) as a system library. System libraries are read-only.
1135- If you want to edit MSL you need to load it as user library instead of system library. We don't recommend editing
1136+ By default OMEdit loads the Modelica Standard Library (MSL) as a system library. System libraries are read-only.
1137+ If you want to edit MSL you need to load it as user library instead of system library. We don't recommend editing
11361138MSL but if you really need to and understand the consequences then follow these steps,
11371139
11381140- Go to *Tools > Options > Libraries *.
11391141- Remove Modelica & ModelicaReference from list of system libraries.
11401142- Uncheck *force loading of Modelica Standard Library *.
11411143- Add *$OPENMODELICAHOME/lib/omlibrary/Modelica X.X/package.mo * under user libraries.
11421144- Restart OMEdit.
1145+
1146+ State Machines
1147+ --------------
1148+
1149+ Creating a New Modelica State Class
1150+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1151+
1152+ Follow the same steps as defined in :ref: `creating-new-class `.
1153+ Additionally make sure you check the *State * checkbox.
1154+
1155+ .. figure :: media/new-state.png
1156+ :name: omedit-new-state
1157+
1158+ Creating a new Modelica state.
1159+
1160+ Making Transitions
1161+ ~~~~~~~~~~~~~~~~~~
1162+
1163+ In order to make a transition from one state to another the user first needs
1164+ to enable the transition mode (|transition-mode |) from the toolbar.
1165+
1166+ Move the mouse over the state. The mouse cursor will change from arrow cursor to cross cursor.
1167+ To start the transition press left button and move while keeping the button pressed. Now release the left button.
1168+ Move towards the end state and click when cursor changes to cross cursor.
1169+
1170+ A *Create Transition * dialog box will appear which allows you to set the transition attributes.
1171+ Cancelling the dialog will cancel the transition.
1172+
1173+ Double click the transition or right click and choose *Edit Transition * to modify the transition attributes.
1174+
1175+ .. |transition-mode | image :: media/omedit-icons/transition-mode.*
1176+ :height: 14pt
1177+ :alt: OMEdit transition mode icon
0 commit comments