|
Example ObjectRepository addMethod 026
|
This example adds the methods read and write that is invoked
by the ObjectRepository data type.
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: # 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(ObjectRepository) | send(ObjectRepository) | methodsOf(ObjectRepository) |
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
|
How do I contact the AIS Server team?You can always talk with the AIS at aiserver.sourceforge.net. |