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") |
Related Topics
Related Topics
General Methods of All ObjectsaddObserver
attributeWatchable
closeDialog (all objects)
deleteObject
derive
duplicate
extendPath
getHTMLCode (all objects)
getObservers
getXYWH
hasAttribute (2D)
isNameUnique (identifier)
memUsage
moveToFolder
openDialog (all objects)
print (all objects)
removeAllObservers
replace
setName
setPosition
setXYWH
updateDialog
writeObject