class Session

It maintains the State of Socket Elements and provides methods to Set/Retrieve Values/State of Socket Elements.

Public Methods

[more] Session(string sessionId, string targetId, map<string, void*>* targetProps, string socketName, SocketElementList* elements)
Initializes all the local variables
[more]string getSessionId()
Get the String value of sessionId.
[more]void* getPropertyValue(string propName)
Get an Object of propertyValue for 'propName' from Target Properties.
[more]AbstractUISocketElement* getSocketElementById(string id)
Get the AbstractUISocketElement by ElementId.
[more]AbstractUISocketElement* getSocketElementByPath(string path)
Get the AbstractUISocketElement by ElementPath.
[more]SocketElementList* getSocketElements()
Get the List of all AbstractUISocketElement for this session.
[more]string getElementIdByPath(string path)
Get the element id from given element Path.
[more]int setValue(string path, string value)
Set the value of element given in path
[more]int addDim(string elementPath, string value)
Add the dimension given in path
[more]map<string,string> * getValue(string path, bool includeSets)
Get the value of element given in path
[more]string getTargetId()
Get the targetId for this session
[more]string getSocketName()
Get the String value of SocketName.
[more]list<list<string>*> * getIndices(list<string>*eltIds, list<string>*indexNos)
This function will return map containing pairs of element identifiers and it's requested indexed values.
[more]int removeDim(string path)
Removes the dimension for given Path
[more]bool isElementExists(string elementPath)
checks whether element exists or not from given element path.
[more]string getElementPathById(string elementId)
Get Element Path for element Id
[more]map<string, string> * getCommandParams(string elementPath)
Returns key-value pair for param name and value for give elementpath


Documentation

It maintains the State of Socket Elements and provides methods to Set/Retrieve Values/State of Socket Elements.

o Session(string sessionId, string targetId, map<string, void*>* targetProps, string socketName, SocketElementList* elements)
Initializes all the local variables

Parameters:
sessionId - a String value of sessionId
targetId - a String value of targetId
targetProps - a Map<String, void*> of Target Properties
socketName - a String value of socketName
elements - a List of AbstractUISocketElements

ostring getSessionId()
Get the String value of sessionId.

Returns:
a String value of sessionId

ovoid* getPropertyValue(string propName)
Get an Object of propertyValue for 'propName' from Target Properties.

Parameters:
propName - a String value of propName
Returns:
an Object for PropertyValue

oAbstractUISocketElement* getSocketElementById(string id)
Get the AbstractUISocketElement by ElementId.

Parameters:
id - a String value of elementId
Returns:
an Object of AbstractUISocketElement

oAbstractUISocketElement* getSocketElementByPath(string path)
Get the AbstractUISocketElement by ElementPath.

Parameters:
path - a String value of ElementPath
Returns:
an Object of AbstractUISocketElement

oSocketElementList* getSocketElements()
Get the List of all AbstractUISocketElement for this session.
Returns:
an SocketElementList Struct

ostring getElementIdByPath(string path)
Get the element id from given element Path.
Parameters:
path - a String value
Returns:
String Value of element Id

oint setValue(string path, string value)
Set the value of element given in path
Parameters:
path - element path to be set
value - element value to be set
Returns:
integer value representing as follows 0 if successfull 1 if elementPath is invalid 2 if dimension value in elementPath is invalid 4 if UCHe is too busy and cannot perform the add action

oint addDim(string elementPath, string value)
Add the dimension given in path
Parameters:
elementPath - element path to be added
value - element value to be set after adding dimension
Returns:
integer value representing as follows 0 if successfull 1 if elementPath is invalid 2 if dimension value in elementPath is invalid 3 if dimension already exists 4 if UCHe is too busy and cannot perform the add action

omap<string,string> * getValue(string path, bool includeSets)
Get the value of element given in path
Parameters:
path - element path to be get
includeSets - Boolean of includeSets
Returns:
map<string,string> of key value pair of element path and element value.

ostring getTargetId()
Get the targetId for this session
Returns:
Id of target

ostring getSocketName()
Get the String value of SocketName.

Returns:
a String value of socket Name

olist<list<string>*> * getIndices(list<string>*eltIds, list<string>*indexNos)
This function will return map containing pairs of element identifiers and it's requested indexed values.
Parameters:
eltIds - list of elementids
indexNos - list of index
Returns:
map contain element identifiers and indexed values

oint removeDim(string path)
Removes the dimension for given Path
Parameters:
path - String Value of element path
Returns:
integer value representing as follows 0 if successfull 1 if elementPath is invalid 2 if dimension value in elementPath is invalid 4 if UCHe is too busy and cannot perform the add action

obool isElementExists(string elementPath)
checks whether element exists or not from given element path. It will search for last element in given element path. @elementPath a String Value of element path @boolean true if element exists else false

ostring getElementPathById(string elementId)
Get Element Path for element Id
Parameters:
elementId - a String Value of element Id
Returns:
entire element path of element.

omap<string, string> * getCommandParams(string elementPath)
Returns key-value pair for param name and value for give elementpath
Parameters:
elementPath - a String Value of elementPath
Returns:
Map<String,String> containing param name and value as key value pair.


This class has no child classes.
Author:
Parikshit Thakur & Team, Trace R&D Center
Version:
Revision: 1.0

Alphabetic index HTML hierarchy of classes or Java



This page was generated with the help of DOC++.