@Test public void testSetPowerDescriptor() { System.out.println("--- " + Thread.currentThread().getStackTrace()[1].getMethodName()); PowerDescriptor descriptor = new PowerDescriptor(1, 2, 4, 0xc); ZigBeeNode node = new ZigBeeNode(getMocketNetworkManager(), new IeeeAddress()); node.setPowerDescriptor(descriptor); assertEquals(CurrentPowerModeType.RECEIVER_ON_PERIODICALLY, node.getPowerDescriptor().getCurrentPowerMode()); assertEquals(PowerSourceType.DISPOSABLE_BATTERY, node.getPowerDescriptor().getCurrentPowerSource()); assertEquals(PowerLevelType.FULL, node.getPowerDescriptor().getPowerLevel()); }
public void setPowerDescriptor(PowerDescriptor powerDescriptor) { this.powerDescriptor = powerDescriptor; }
ZigBeeNode { public void setPowerDescriptor(PowerDescriptor powerDescriptor) { this.powerDescriptor = powerDescriptor; } }
ZigBeeNode { public void setPowerDescriptor(PowerDescriptor powerDescriptor) { this.powerDescriptor = powerDescriptor; } ZigBeeNode(ZigBeeNetworkManager networkManager, IeeeAddress ieeeAddress);  ZigBeeNode(ZigBeeNetworkManager networkManager, IeeeAddress ieeeAddress, Integer networkAddress); }
ZigBeeNode { public void setPowerDescriptor(PowerDescriptor powerDescriptor) { this.powerDescriptor = powerDescriptor; } ZigBeeNode(ZigBeeNetworkManager networkManager, IeeeAddress ieeeAddress);  ZigBeeNode(ZigBeeNetworkManager networkManager, IeeeAddress ieeeAddress, Integer networkAddress); void shutdown(); IeeeAddress getIeeeAddress(); boolean setNetworkAddress(Integer networkAddress); Integer getNetworkAddress(); void setNodeDescriptor(NodeDescriptor nodeDescriptor); NodeDescriptor getNodeDescriptor(); void setPowerDescriptor(PowerDescriptor powerDescriptor); PowerDescriptor getPowerDescriptor(); void permitJoin(final int duration); void permitJoin(final boolean enable); @Deprecated boolean isFullFuntionDevice(); boolean isFullFunctionDevice(); @Deprecated boolean isReducedFuntionDevice(); boolean isReducedFunctionDevice(); boolean isSecurityCapable(); boolean isPrimaryTrustCenter(); LogicalType getLogicalType(); Set<BindingTable> getBindingTable(); Future<ZigBeeStatus> updateBindingTable(); Collection<ZigBeeEndpoint> getEndpoints(); ZigBeeEndpoint getEndpoint(final int endpointId); void addEndpoint(final ZigBeeEndpoint endpoint); void updateEndpoint(final ZigBeeEndpoint endpoint); void removeEndpoint(final int endpointId); void addNetworkEndpointListener(final ZigBeeNetworkEndpointListener networkDeviceListener); void removeNetworkEndpointListener(final ZigBeeNetworkEndpointListener networkDeviceListener); Set<NeighborTable> getNeighbors(); boolean setNeighbors(Set<NeighborTable> neighbors); Set<Integer> getAssociatedDevices(); boolean setAssociatedDevices(Set<Integer> associatedDevices); Collection<RoutingTable> getRoutes(); boolean setRoutes(Set<RoutingTable> routes); void setLastUpdateTime(); Date getLastUpdateTime(); void commandReceived(ZigBeeCommand command, Integer rssi, Integer lqi); boolean isDiscovered(); ZigBeeNodeDao getDao(); void setDao(ZigBeeNodeDao dao); void sendTransaction(ZigBeeCommand command); Future<CommandResult> sendTransaction(ZigBeeCommand command, ZigBeeTransactionMatcher responseMatcher); boolean setNodeState(ZigBeeNodeState state); ZigBeeNodeState getNodeState(); NotificationService getNotificationService(); ZigBeeLinkQualityStatistics getLinkQualityStatistics(); @Override String toString(); }
ZigBeeNode { public void setPowerDescriptor(PowerDescriptor powerDescriptor) { this.powerDescriptor = powerDescriptor; } ZigBeeNode(ZigBeeNetworkManager networkManager, IeeeAddress ieeeAddress);  ZigBeeNode(ZigBeeNetworkManager networkManager, IeeeAddress ieeeAddress, Integer networkAddress); void shutdown(); IeeeAddress getIeeeAddress(); boolean setNetworkAddress(Integer networkAddress); Integer getNetworkAddress(); void setNodeDescriptor(NodeDescriptor nodeDescriptor); NodeDescriptor getNodeDescriptor(); void setPowerDescriptor(PowerDescriptor powerDescriptor); PowerDescriptor getPowerDescriptor(); void permitJoin(final int duration); void permitJoin(final boolean enable); @Deprecated boolean isFullFuntionDevice(); boolean isFullFunctionDevice(); @Deprecated boolean isReducedFuntionDevice(); boolean isReducedFunctionDevice(); boolean isSecurityCapable(); boolean isPrimaryTrustCenter(); LogicalType getLogicalType(); Set<BindingTable> getBindingTable(); Future<ZigBeeStatus> updateBindingTable(); Collection<ZigBeeEndpoint> getEndpoints(); ZigBeeEndpoint getEndpoint(final int endpointId); void addEndpoint(final ZigBeeEndpoint endpoint); void updateEndpoint(final ZigBeeEndpoint endpoint); void removeEndpoint(final int endpointId); void addNetworkEndpointListener(final ZigBeeNetworkEndpointListener networkDeviceListener); void removeNetworkEndpointListener(final ZigBeeNetworkEndpointListener networkDeviceListener); Set<NeighborTable> getNeighbors(); boolean setNeighbors(Set<NeighborTable> neighbors); Set<Integer> getAssociatedDevices(); boolean setAssociatedDevices(Set<Integer> associatedDevices); Collection<RoutingTable> getRoutes(); boolean setRoutes(Set<RoutingTable> routes); void setLastUpdateTime(); Date getLastUpdateTime(); void commandReceived(ZigBeeCommand command, Integer rssi, Integer lqi); boolean isDiscovered(); ZigBeeNodeDao getDao(); void setDao(ZigBeeNodeDao dao); void sendTransaction(ZigBeeCommand command); Future<CommandResult> sendTransaction(ZigBeeCommand command, ZigBeeTransactionMatcher responseMatcher); boolean setNodeState(ZigBeeNodeState state); ZigBeeNodeState getNodeState(); NotificationService getNotificationService(); ZigBeeLinkQualityStatistics getLinkQualityStatistics(); @Override String toString();  }