removeObserver

Syntax

<Path>.removeObserver(AttributeName:string,Method:method/void) → boolean

The method removeObserver deletes the observer of the object designated by <Path>.

Parameters

  • The parameter AttributeName of data type string designates the name of the observable attribute or method.

  • The parameter Method of data type method designates the name of the method that is going to be executed.

    When you enter void, Plant Simulation deletes all observers which point to a non-existing Method.

Return Value

The return value has the data type boolean.

Example

MyStation.removeObserver("occupied", "myMethod")
MyStation.removeObserver("occupied", &myMethod)

Related Topics

Edit Observers

Delete

addObserver