ZwManager class
ZwManager manages a collection of Z-Wave nodes on a single Z-Wave network. Messages sent from the physical devices are forwarded to the corresponding ZwNode. Messages destine for physical devices are queue and sent sequentially.
- Inheritance
-
- Object
- MessageDispatcher<
void> - ZwManager
- Implemented types
Properties
- controller → PrimaryController
-
final
- driver → ZwDriver?
-
final
-
handlers
↔ List<
void Function(List< int> )> -
getter/setter pairinherited
- hashCode → int
-
The hash code for this object.
no setterinherited
- logger → Logger
-
final
-
nodes
→ Iterable<
ZwNode> -
The current ZwNodes managed by the receiver
no setter
- retryDelayMsForTesting → int?
-
final
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
Methods
-
add(
ZwNode node) → void -
Insert a
node
into the list of nodes at thenode
's id -
apiLibraryVersion(
) → Future< ApiLibraryVersion> -
createUnknownNode(
int nodeId) → ZwNode - Create an UnknownNode and add it to the receiver's collection of nodes.
-
dispatch(
List< int> data) → void -
inherited
-
existingNodeWithId(
int nodeId) → ZwNode? -
Return the node with the specified
nodeId
ornull
if none. -
handleApplicationCommandHandler(
List< int> data) → void - FUNC_ID_APPLICATION_COMMAND_HANDLER
-
handleApplicationSlaveCommandHandler(
List< int> data) → void -
FUNC_ID_APPLICATION_SLAVE_COMMAND_HANDLER - Slave command handler
inherited
-
handleMemoryGetByte(
List< int> data) → void -
FUNC_ID_MEMORY_GET_BYTE
inherited
-
handlePromiscuousApplicationCommandHandler(
List< int> data) → void -
FUNC_ID_PROMISCUOUS_APPLICATION_COMMAND_HANDLER
inherited
-
handleSerialApiApplNodeInformation(
List< int> data) → void -
FUNC_ID_SERIAL_API_APPL_NODE_INFORMATION
inherited
-
handleSerialApiGetCapabilities(
List< int> data) → void -
FUNC_ID_SERIAL_API_GET_CAPABILITIES
inherited
-
handleSerialApiGetInitData(
List< int> data) → void -
FUNC_ID_SERIAL_API_GET_INIT_DATA
inherited
-
handleSerialApiSetTimeouts(
List< int> data) → void -
FUNC_ID_SERIAL_API_SET_TIMEOUTS
inherited
-
handleSerialApiSlaveNodeInfo(
List< int> data) → void -
FUNC_ID_SERIAL_API_SLAVE_NODE_INFO - Set application virtual slave node information
inherited
-
handleSerialApiSoftReset(
List< int> data) → void -
FUNC_ID_SERIAL_API_SOFT_RESET
inherited
-
handleUnknownFunctionId(
List< int> data) → void -
inherited
-
handleZwAddNodeToNetwork(
List< int> data) → void -
FUNC_ID_ZW_ADD_NODE_TO_NETWORK - Control the addnode (or addcontroller) process...start, stop, etc.
inherited
-
handleZwApplicationUpdate(
List< int> data) → void - FUNC_ID_ZW_APPLICATION_UPDATE - Get a list of supported (and controller) command classes
-
handleZwAssignReturnRoute(
List< int> data) → void -
FUNC_ID_ZW_ASSIGN_RETURN_ROUTE - Assign a return route from the specified node to the controller
inherited
-
handleZwAssignSucReturnRoute(
List< int> data) → void -
FUNC_ID_ZW_ASSIGN_SUC_RETURN_ROUTE - Assign a return route to the SUC
inherited
-
handleZwControllerChange(
List< int> data) → void -
FUNC_ID_ZW_CONTROLLER_CHANGE - Control the transferprimary process...start, stop, etc.
inherited
-
handleZwCreateNewPrimary(
List< int> data) → void -
FUNC_ID_ZW_CREATE_NEW_PRIMARY - Control the createnewprimary process...start, stop, etc.
inherited
-
handleZwDeleteReturnRoute(
List< int> data) → void -
FUNC_ID_ZW_DELETE_RETURN_ROUTE - Delete all return routes from the specified node
inherited
-
handleZwDeleteSucReturnRoute(
List< int> data) → void -
FUNC_ID_ZW_DELETE_SUC_RETURN_ROUTE - Remove return routes to the SUC
inherited
-
handleZwEnableSuc(
List< int> data) → void -
FUNC_ID_ZW_ENABLE_SUC - Make a controller a Static Update Controller
inherited
-
handleZwExploreRequestInclusion(
List< int> data) → void -
FUNC_ID_ZW_EXPLORE_REQUEST_INCLUSION - supports NWI
inherited
-
handleZwGetControllerCapabilities(
List< int> data) → void -
FUNC_ID_ZW_GET_CONTROLLER_CAPABILITIES
inherited
-
handleZwGetNodeProtocolInfo(
List< int> data) → void -
FUNC_ID_ZW_GET_NODE_PROTOCOL_INFO - Get protocol info (baud rate, listening, etc.) for a given node
inherited
-
handleZwGetRandom(
List< int> data) → void -
FUNC_ID_ZW_GET_RANDOM
inherited
-
handleZwGetRoutingInfo(
List< int> data) → void -
FUNC_ID_ZW_GET_ROUTING_INFO - Get a specified node's neighbor information from the controller
inherited
-
handleZwGetSucNodeId(
List< int> data) → void -
FUNC_ID_ZW_GET_SUC_NODE_ID - Try to retrieve a Static Update Controller node id (zero if no SUC present)
inherited
-
handleZwGetVersion(
List< int> data) → void -
FUNC_ID_ZW_GET_VERSION
inherited
-
handleZwGetVirtualNodes(
List< int> data) → void -
FUNC_ID_ZW_GET_VIRTUAL_NODES - Return all virtual nodes
inherited
-
handleZwIsFailedNodeId(
List< int> data) → void -
FUNC_ID_ZW_IS_FAILED_NODE_ID - Check to see if a specified node has failed
inherited
-
handleZwIsVirtualNode(
List< int> data) → void -
FUNC_ID_ZW_IS_VIRTUAL_NODE - Virtual node test
inherited
-
handleZwMemoryGetId(
List< int> data) → void -
FUNC_ID_ZW_MEMORY_GET_ID
inherited
-
handleZwNewController(
List< int> data) → void -
FUNC_ID_ZW_NEW_CONTROLLER
inherited
-
handleZwReadMemory(
List< int> data) → void -
FUNC_ID_ZW_READ_MEMORY
inherited
-
handleZwRemoveFailedNodeId(
List< int> data) → void -
FUNC_ID_ZW_REMOVE_FAILED_NODE_ID - Mark a specified node id as failed
inherited
-
handleZwRemoveNodeFromNetwork(
List< int> data) → void -
FUNC_ID_ZW_REMOVE_NODE_FROM_NETWORK - Control the removenode (or removecontroller) process...start, stop, etc.
inherited
-
handleZwReplaceFailedNode(
List< int> data) → void -
FUNC_ID_ZW_REPLACE_FAILED_NODE - Remove a failed node from the controller's list (?)
inherited
-
handleZwReplicationCommandComplete(
List< int> data) → void -
FUNC_ID_ZW_REPLICATION_COMMAND_COMPLETE - Replication send data complete
inherited
-
handleZwReplicationSendData(
List< int> data) → void -
FUNC_ID_ZW_REPLICATION_SEND_DATA - Replication send data
inherited
-
handleZwRequestNetworkUpdate(
List< int> data) → void -
FUNC_ID_ZW_REQUEST_NETWORK_UPDATE - Network update for a SUC(?)
inherited
-
handleZwRequestNodeInfo(
List< int> data) → void -
FUNC_ID_ZW_REQUEST_NODE_INFO - Get info (supported command classes) for the specified node
inherited
-
handleZwRequestNodeNeighborUpdate(
List< int> data) → void -
FUNC_ID_ZW_REQUEST_NODE_NEIGHBOR_UPDATE - Ask the specified node to update its neighbors (then read them from the controller)
inherited
-
handleZwRequestNodeNeighborUpdateOptions(
List< int> data) → void -
FUNC_ID_ZW_REQUEST_NODE_NEIGHBOR_UPDATE_OPTIONS - Allow options for request node neighbor update
inherited
-
handleZwRFPowerLevelSet(
List< int> data) → void -
FUNC_ID_ZW_R_F_POWER_LEVEL_SET
inherited
-
handleZwSendData(
List< int> data) → void - FUNC_ID_ZW_SEND_DATA
-
handleZwSendNodeInformation(
List< int> data) → void -
FUNC_ID_ZW_SEND_NODE_INFORMATION
inherited
-
handleZwSendSlaveData(
List< int> data) → void -
FUNC_ID_ZW_SEND_SLAVE_DATA - Send data from slave
inherited
-
handleZwSendSlaveNodeInfo(
List< int> data) → void -
FUNC_ID_ZW_SEND_SLAVE_NODE_INFO - Send a slave node information frame
inherited
-
handleZwSetDefault(
List< int> data) → void -
FUNC_ID_ZW_SET_DEFAULT - Reset controller and node info to default (original) values
inherited
-
handleZwSetLearnMode(
List< int> data) → void -
FUNC_ID_ZW_SET_LEARN_MODE - Put a controller into learn mode for replication/ receipt of configuration info
inherited
-
handleZwSetLearnNodeState(
List< int> data) → void -
FUNC_ID_ZW_SET_LEARN_NODE_STATE
inherited
-
handleZwSetPromiscuousMode(
List< int> data) → void -
FUNC_ID_ZW_SET_PROMISCUOUS_MODE - Set controller into promiscuous mode to listen to all frames
inherited
-
handleZwSetSlaveLearnMode(
List< int> data) → void -
FUNC_ID_ZW_SET_SLAVE_LEARN_MODE - Enter slave learn mode
inherited
-
handleZwSetSucNodeId(
List< int> data) → void -
FUNC_ID_ZW_SET_SUC_NODE_ID - Identify a Static Update Controller node id
inherited
-
initHandlers(
) → void -
inherited
-
nodeWithId(
int nodeId) → ZwNode -
Return the node with the specified
nodeId
, creating an UnknownNode if a node with that id does not already exist. -
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
processedResult<
T> (int nodeId, T result) → bool -
Called when a node has processed an unsolicited request so that any
outstanding request waiting for that information can be completed.
Returns
true
if an outstanding request was satisified, elsefalse
. -
request<
T> (ZwRequest< T> request) → Future<T> -
Send the specified request to the device and return a future
that completes when the operation is complete.
override
-
send(
ZwCommand command) → Future< void> -
Send the specified request message
and return a Future that completes when the message is acknowledged.
This should only be called from ZwCommand send.
override
-
toString(
) → String -
A string representation of this object.
inherited
-
unhandledMessage(
int functId, String functName, List< int> data) → void -
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited