User properties

<< Click to Display Table of Contents >>

Navigation:  Using SMILE Wrappers >

User properties

To integrate data specific to your application with SMILE, you can use SMILE’s user properties. The user properties are arrays of key/value pairs available at the network and node level. The user properties are stored in the XDSL files. Property name (key) is unique for the set of properties defined for given node or for a network. It also follows the convention of SMILE identifiers: is case-sensitive, starts with a letter and contains letters, digits and underscores. The property is represented by an UserProperty object, which has name and value fields (both are strings).

Java:

Network.getUserProperties

Network.setUserProperties

Network.getNodeUserProperties

Network.setNodeUserProperties

Python:

Network.get_user_properties

Network.set_user_properties

Network.get_node_user_properties

Network.set_node_user_properties

R:

Network$getUserProperties

Network$setUserProperties

Network$getNodeUserProperties

Network$setNodeUserProperties

C#:

Network.GetUserProperties

Network.SetUserProperties

Network.GetNodeUserProperties

Network.SetNodeUserProperties