Method (object)

With the object Method you can program controls that other objects start and which Plant Simulation then executes during the simulation run. Here, we will only describe the object Method itself, reserving the description of the programming language for the SimTalk Reference.

You can build your own programs using a combination of built-in methods, Keywords, assignments and control structures in the Method. Also check if one of the built-in templates meet your needs. You can also write your own templates for your own use and for sharing with your colleagues.

This construct combines productivity and flexibility. You can modify the behavior of an object, so that it exactly fits your modeling needs, by writing user-defined methods. The built-in properties of the objects, the large number of built-in methods provided and the inheritance strategies help constructing valid models in a short amount of time.

You can access the functions of the Method on the Edit Ribbon Tab and on the Tools Ribbon Tab.

You can select preferences for the Method Editor under File > Preferences > Editor.

Note:

You can enter the settings Plant Simulation applies when calling Methods during the simulation runs under File > Model Settings/Preferences > Simulation > Methods.

You can also show the return value of a Method in an HtmlReport, compare Display a Method.

To add the Method to your simulation model, click Manage Class Library > Basic Objects > InformationFlow > Method on the Home ribbon tab.

Related Topics

Programming a Method

The Method Window

Working in the Method Window

Method Debugger

Calling a Method

Methods of the Method

Icons Showing the Function of the Method

Read-Only Attributes of the Method

LED Colors Showing the State of a Method

Attributes of the Method