Enum Class
packages\node-opcua-enum\src\enum.js:91
Constructor
Enum
-
key
-
value
Parameters:
-
key
StringThe Enum key.
-
value
NumberThe Enum value.
Item Index
Methods
addTestUAAnalogItem
-
parentNode
add a fake analog data item for testing
Parameters:
-
parentNode
Object
build_client_server_session
-
done
Parameters:
-
done
Object
Returns:
}
Example:
before(function (done) { client_server = build_client_server_session(server_options,function (err) { if (!err) { g_session = client_server.g_session; } done(err); });
}); after(function (done) { client_server.shutdown(done); });
createHVACSystem
-
addressSpace
Parameters:
-
addressSpace
Object
Returns:
get
-
key
Returns the appropriate EnumItem.
Parameters:
-
key
EnumItem | | String | | NumberThe object to get with.
Returns:
The get result.
has
-
value
Checks if the flagged EnumItem has the passing object.
Parameters:
-
value
EnumItem | | String | | NumberThe object to check with.
Returns:
The check result.
is
-
item
Checks if the EnumItem is the same as the passing object.
Parameters:
-
item
EnumItem | | String | | NumberThe object to check with.
Returns:
The check result.
toJSON
()
String
Returns JSON object representation of this EnumItem.
Returns:
JSON object representation of this EnumItem.
toString
()
String
Returns String representation of this EnumItem.
Returns:
String representation of this EnumItem.
valueOf
()
String
Returns the value to compare with.
Returns:
The value to compare with.