Example ObjectRepository send 026
|
This example adds the methods read and write that is invoked
by the ObjectRepository data type using the send function.
Notes and Hints The Method Dictionary Bindings: To view the entry in the methods Dictionary created by the addMethod function,
you can use the method name to access the methods dictionary entry by key: #<Dictionary 5678>[msgName:] To determine the number of assigned methods: (length (methodsOf ObjectRepository: )) To access the nth method name: (methodsOf ObjectRepository: )[n 0] To determine if a message is in the methods dictionary: (isMember msgName (methodsOf ObjectRepository: ))[n 0]
Returns:
Returns:
Returns:
Returns:
Returns:
Returns:
Returns:
Returns:
Returns:
MsgName1 LambdaName1 MsgName2 LambdaName2 MsgName3 LambdaName3
Here are examples of the addMethod function at work.
Here is the link to the current function used in this example.
Here are a number of links to other related functions.
defmethod(#void) | addMethod(#void) | methodsOf(#void) |
Here are the links to the data types of the arguments used in this example. Here are a number of links to examples having similar argument types.
ObjectRepository
Symbol
Dictionary
Analytic Information Server (AIS)AIS Component Systems
|