Skip to main content

Element: Method

The Method element is used to add a method to a class or interface in a class diagram. It does not have any properties.

User input

Action

Description

  1. In the ToolBox view, select the _uml_icon_add_method.png "Method" element.

  2. In the editor, click a suitable element.

    The Add Method dialog opens.

  3. Specify a name for the method and configure the settings.

  4. Click Add to exit the dialog.

The cursor is displayed as a _uml_cursor_not_allowed.png prohibition symbol at locations that are not permitted.

The cursor is a _uml_cursor_allowed.png blue cross at permitted locations.

When you close the dialog, CODESYS adds this method to the object and displays it in the class diagram and in the Devices view or POUs view.

In the class diagram, each access modifier of the method is indicated by the corresponding icon:

  • PUBLIC: +

  • PRIVATE: -

  • PROTECTED: #

  • INTERNAL: ~