- 使用 Spring Initializr 创建 Spring Boot 应用程序
- 在Spring Boot中配置Cassandra
- 在 Spring Boot 上配置 Tomcat 连接池
- 将Camel消息路由到嵌入WildFly的Artemis上
本文整理了Java中com.zsmartsystems.zigbee.zcl.clusters.ZclOccupancySensingCluster
类的一些代码示例,展示了ZclOccupancySensingCluster
类的具体用法。这些代码示例主要来源于Github
/Stackoverflow
/Maven
等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。ZclOccupancySensingCluster
类的具体详情如下:
包路径:com.zsmartsystems.zigbee.zcl.clusters.ZclOccupancySensingCluster
类名称:ZclOccupancySensingCluster
[英]Occupancy sensing cluster implementation (Cluster ID 0x0406).
The cluster provides an interface to occupancy sensing functionality, including configuration and provision of notifications of occupancy status.
Code is auto-generated. Modifications may be overwritten!
[中]占用率感应集群实施(集群ID 0x0406)。
集群提供了占用感应功能的接口,包括配置和提供占用状态通知。
代码是自动生成的。修改可能会被覆盖!
代码示例来源:origin: openhab/org.openhab.binding.zigbee
@Override
public void handleRefresh() {
clusterOccupancy.getOccupancy(0);
}
代码示例来源:origin: zsmartsystems/com.zsmartsystems.zigbee
/**
* Get the <i>UltrasonicUnoccupiedToOccupiedThreshold</i> attribute [attribute ID <b>34</b>].
* <p>
* The attribute is of type {@link Integer}.
* <p>
* The implementation of this attribute by a device is OPTIONAL
*
* @return the {@link Future<CommandResult>} command result future
*/
public Future<CommandResult> getUltrasonicUnoccupiedToOccupiedThresholdAsync() {
return read(attributes.get(ATTR_ULTRASONICUNOCCUPIEDTOOCCUPIEDTHRESHOLD));
}
代码示例来源:origin: zsmartsystems/com.zsmartsystems.zigbee
/**
* Set reporting for the <i>Occupancy</i> attribute [attribute ID <b>0</b>].
* <p>
* The Occupancy attribute is a bitmap.
* <p>
* Bit 0 specifies the sensed occupancy as follows: 1 = occupied, 0 = unoccupied.
* All other bits are reserved.
* <p>
* The attribute is of type {@link Integer}.
* <p>
* The implementation of this attribute by a device is MANDATORY
*
* @param minInterval {@link int} minimum reporting period
* @param maxInterval {@link int} maximum reporting period
* @return the {@link Future<CommandResult>} command result future
*/
public Future<CommandResult> setOccupancyReporting(final int minInterval, final int maxInterval) {
return setReporting(attributes.get(ATTR_OCCUPANCY), minInterval, maxInterval);
}
代码示例来源:origin: zsmartsystems/com.zsmartsystems.zigbee
/**
* Synchronously get the <i>UltrasonicUnoccupiedToOccupiedThreshold</i> attribute [attribute ID <b>34</b>].
* <p>
* This method can return cached data if the attribute has already been received.
* The parameter <i>refreshPeriod</i> is used to control this. If the attribute has been received
* within <i>refreshPeriod</i> milliseconds, then the method will immediately return the last value
* received. If <i>refreshPeriod</i> is set to 0, then the attribute will always be updated.
* <p>
* This method will block until the response is received or a timeout occurs unless the current value is returned.
* <p>
* The attribute is of type {@link Integer}.
* <p>
* The implementation of this attribute by a device is OPTIONAL
*
* @param refreshPeriod the maximum age of the data (in milliseconds) before an update is needed
* @return the {@link Integer} attribute value, or null on error
*/
public Integer getUltrasonicUnoccupiedToOccupiedThreshold(final long refreshPeriod) {
if (attributes.get(ATTR_ULTRASONICUNOCCUPIEDTOOCCUPIEDTHRESHOLD).isLastValueCurrent(refreshPeriod)) {
return (Integer) attributes.get(ATTR_ULTRASONICUNOCCUPIEDTOOCCUPIEDTHRESHOLD).getLastValue();
}
return (Integer) readSync(attributes.get(ATTR_ULTRASONICUNOCCUPIEDTOOCCUPIEDTHRESHOLD));
}
}
代码示例来源:origin: openhab/org.openhab.binding.zigbee
@Override
public boolean initializeConverter() {
logger.debug("{}: Initialising device occupancy cluster", endpoint.getIeeeAddress());
clusterOccupancy = (ZclOccupancySensingCluster) endpoint.getInputCluster(ZclOccupancySensingCluster.CLUSTER_ID);
if (clusterOccupancy == null) {
logger.error("{}: Error opening occupancy cluster", endpoint.getIeeeAddress());
return false;
}
bind(clusterOccupancy);
// Add a listener, then request the status
clusterOccupancy.addAttributeListener(this);
// Configure reporting - no faster than once per second - no slower than 10 minutes.
clusterOccupancy.setOccupancyReporting(1, REPORTING_PERIOD_DEFAULT_MAX);
return true;
}
代码示例来源:origin: zsmartsystems/com.zsmartsystems.zigbee
/**
* Set the <i>UltrasonicUnoccupiedToOccupiedThreshold</i> attribute [attribute ID <b>34</b>].
* <p>
* The attribute is of type {@link Integer}.
* <p>
* The implementation of this attribute by a device is OPTIONAL
*
* @param ultrasonicUnoccupiedToOccupiedThreshold the {@link Integer} attribute value to be set
* @return the {@link Future<CommandResult>} command result future
*/
public Future<CommandResult> setUltrasonicUnoccupiedToOccupiedThreshold(final Object value) {
return write(attributes.get(ATTR_ULTRASONICUNOCCUPIEDTOOCCUPIEDTHRESHOLD), value);
}
代码示例来源:origin: openhab/org.openhab.binding.zigbee
@Override
public void disposeConverter() {
logger.debug("{}: Closing device occupancy cluster", endpoint.getIeeeAddress());
clusterOccupancy.removeAttributeListener(this);
}
代码示例来源:origin: zsmartsystems/com.zsmartsystems.zigbee
/**
* Synchronously get the <i>OccupancySensorType</i> attribute [attribute ID <b>1</b>].
* <p>
* The OccupancySensorType attribute specifies the type of the occupancy sensor.
* <p>
* This method can return cached data if the attribute has already been received.
* The parameter <i>refreshPeriod</i> is used to control this. If the attribute has been received
* within <i>refreshPeriod</i> milliseconds, then the method will immediately return the last value
* received. If <i>refreshPeriod</i> is set to 0, then the attribute will always be updated.
* <p>
* This method will block until the response is received or a timeout occurs unless the current value is returned.
* <p>
* The attribute is of type {@link Integer}.
* <p>
* The implementation of this attribute by a device is MANDATORY
*
* @param refreshPeriod the maximum age of the data (in milliseconds) before an update is needed
* @return the {@link Integer} attribute value, or null on error
*/
public Integer getOccupancySensorType(final long refreshPeriod) {
if (attributes.get(ATTR_OCCUPANCYSENSORTYPE).isLastValueCurrent(refreshPeriod)) {
return (Integer) attributes.get(ATTR_OCCUPANCYSENSORTYPE).getLastValue();
}
return (Integer) readSync(attributes.get(ATTR_OCCUPANCYSENSORTYPE));
}
代码示例来源:origin: zsmartsystems/com.zsmartsystems.zigbee
/**
* Set the <i>PIRUnoccupiedToOccupiedDelay</i> attribute [attribute ID <b>17</b>].
* <p>
* The PIRUnoccupiedToOccupiedDelay attribute is 8-bits in length and specifies
* the time delay, in seconds, before the PIR sensor changes to its unoccupied state
* when the sensed area becomes occupied.
* <p>
* The attribute is of type {@link Integer}.
* <p>
* The implementation of this attribute by a device is OPTIONAL
*
* @param pirUnoccupiedToOccupiedDelay the {@link Integer} attribute value to be set
* @return the {@link Future<CommandResult>} command result future
*/
public Future<CommandResult> setPirUnoccupiedToOccupiedDelay(final Object value) {
return write(attributes.get(ATTR_PIRUNOCCUPIEDTOOCCUPIEDDELAY), value);
}
代码示例来源:origin: zsmartsystems/com.zsmartsystems.zigbee
/**
* Get the <i>OccupancySensorType</i> attribute [attribute ID <b>1</b>].
* <p>
* The OccupancySensorType attribute specifies the type of the occupancy sensor.
* <p>
* The attribute is of type {@link Integer}.
* <p>
* The implementation of this attribute by a device is MANDATORY
*
* @return the {@link Future<CommandResult>} command result future
*/
public Future<CommandResult> getOccupancySensorTypeAsync() {
return read(attributes.get(ATTR_OCCUPANCYSENSORTYPE));
}
代码示例来源:origin: zsmartsystems/com.zsmartsystems.zigbee
/**
* Synchronously get the <i>PIRUnoccupiedToOccupiedDelay</i> attribute [attribute ID <b>17</b>].
* <p>
* The PIRUnoccupiedToOccupiedDelay attribute is 8-bits in length and specifies
* the time delay, in seconds, before the PIR sensor changes to its unoccupied state
* when the sensed area becomes occupied.
* <p>
* This method can return cached data if the attribute has already been received.
* The parameter <i>refreshPeriod</i> is used to control this. If the attribute has been received
* within <i>refreshPeriod</i> milliseconds, then the method will immediately return the last value
* received. If <i>refreshPeriod</i> is set to 0, then the attribute will always be updated.
* <p>
* This method will block until the response is received or a timeout occurs unless the current value is returned.
* <p>
* The attribute is of type {@link Integer}.
* <p>
* The implementation of this attribute by a device is OPTIONAL
*
* @param refreshPeriod the maximum age of the data (in milliseconds) before an update is needed
* @return the {@link Integer} attribute value, or null on error
*/
public Integer getPirUnoccupiedToOccupiedDelay(final long refreshPeriod) {
if (attributes.get(ATTR_PIRUNOCCUPIEDTOOCCUPIEDDELAY).isLastValueCurrent(refreshPeriod)) {
return (Integer) attributes.get(ATTR_PIRUNOCCUPIEDTOOCCUPIEDDELAY).getLastValue();
}
return (Integer) readSync(attributes.get(ATTR_PIRUNOCCUPIEDTOOCCUPIEDDELAY));
}
代码示例来源:origin: zsmartsystems/com.zsmartsystems.zigbee
/**
* Set the <i>UltraSonicUnoccupiedToOccupiedDelay</i> attribute [attribute ID <b>33</b>].
* <p>
* The UltraSonicUnoccupiedToOccupiedTime attribute specifies the time delay, in
* seconds, before the ultrasonic sensor changes to its unoccupied state when the
* sensed area becomes occupied.
* <p>
* The attribute is of type {@link Integer}.
* <p>
* The implementation of this attribute by a device is OPTIONAL
*
* @param ultraSonicUnoccupiedToOccupiedDelay the {@link Integer} attribute value to be set
* @return the {@link Future<CommandResult>} command result future
*/
public Future<CommandResult> setUltraSonicUnoccupiedToOccupiedDelay(final Object value) {
return write(attributes.get(ATTR_ULTRASONICUNOCCUPIEDTOOCCUPIEDDELAY), value);
}
代码示例来源:origin: zsmartsystems/com.zsmartsystems.zigbee
/**
* Get the <i>Occupancy</i> attribute [attribute ID <b>0</b>].
* <p>
* The Occupancy attribute is a bitmap.
* <p>
* Bit 0 specifies the sensed occupancy as follows: 1 = occupied, 0 = unoccupied.
* All other bits are reserved.
* <p>
* The attribute is of type {@link Integer}.
* <p>
* The implementation of this attribute by a device is MANDATORY
*
* @return the {@link Future<CommandResult>} command result future
*/
public Future<CommandResult> getOccupancyAsync() {
return read(attributes.get(ATTR_OCCUPANCY));
}
代码示例来源:origin: zsmartsystems/com.zsmartsystems.zigbee
/**
* Synchronously get the <i>UltraSonicUnoccupiedToOccupiedDelay</i> attribute [attribute ID <b>33</b>].
* <p>
* The UltraSonicUnoccupiedToOccupiedTime attribute specifies the time delay, in
* seconds, before the ultrasonic sensor changes to its unoccupied state when the
* sensed area becomes occupied.
* <p>
* This method can return cached data if the attribute has already been received.
* The parameter <i>refreshPeriod</i> is used to control this. If the attribute has been received
* within <i>refreshPeriod</i> milliseconds, then the method will immediately return the last value
* received. If <i>refreshPeriod</i> is set to 0, then the attribute will always be updated.
* <p>
* This method will block until the response is received or a timeout occurs unless the current value is returned.
* <p>
* The attribute is of type {@link Integer}.
* <p>
* The implementation of this attribute by a device is OPTIONAL
*
* @param refreshPeriod the maximum age of the data (in milliseconds) before an update is needed
* @return the {@link Integer} attribute value, or null on error
*/
public Integer getUltraSonicUnoccupiedToOccupiedDelay(final long refreshPeriod) {
if (attributes.get(ATTR_ULTRASONICUNOCCUPIEDTOOCCUPIEDDELAY).isLastValueCurrent(refreshPeriod)) {
return (Integer) attributes.get(ATTR_ULTRASONICUNOCCUPIEDTOOCCUPIEDDELAY).getLastValue();
}
return (Integer) readSync(attributes.get(ATTR_ULTRASONICUNOCCUPIEDTOOCCUPIEDDELAY));
}
代码示例来源:origin: zsmartsystems/com.zsmartsystems.zigbee
/**
* Set the <i>PIROccupiedToUnoccupiedDelay</i> attribute [attribute ID <b>16</b>].
* <p>
* The PIROccupiedToUnoccupiedDelay attribute is 8-bits in length and specifies
* the time delay, in seconds, before the PIR sensor changes to its occupied state
* when the sensed area becomes unoccupied. This attribute, along with
* PIRUnoccupiedToOccupiedTime, may be used to reduce sensor 'chatter' when
* used in an area where occupation changes frequently.
* <p>
* The attribute is of type {@link Integer}.
* <p>
* The implementation of this attribute by a device is OPTIONAL
*
* @param pirOccupiedToUnoccupiedDelay the {@link Integer} attribute value to be set
* @return the {@link Future<CommandResult>} command result future
*/
public Future<CommandResult> setPirOccupiedToUnoccupiedDelay(final Object value) {
return write(attributes.get(ATTR_PIROCCUPIEDTOUNOCCUPIEDDELAY), value);
}
代码示例来源:origin: zsmartsystems/com.zsmartsystems.zigbee
/**
* Get the <i>PIRUnoccupiedToOccupiedDelay</i> attribute [attribute ID <b>17</b>].
* <p>
* The PIRUnoccupiedToOccupiedDelay attribute is 8-bits in length and specifies
* the time delay, in seconds, before the PIR sensor changes to its unoccupied state
* when the sensed area becomes occupied.
* <p>
* The attribute is of type {@link Integer}.
* <p>
* The implementation of this attribute by a device is OPTIONAL
*
* @return the {@link Future<CommandResult>} command result future
*/
public Future<CommandResult> getPirUnoccupiedToOccupiedDelayAsync() {
return read(attributes.get(ATTR_PIRUNOCCUPIEDTOOCCUPIEDDELAY));
}
代码示例来源:origin: zsmartsystems/com.zsmartsystems.zigbee
/**
* Synchronously get the <i>Occupancy</i> attribute [attribute ID <b>0</b>].
* <p>
* The Occupancy attribute is a bitmap.
* <p>
* Bit 0 specifies the sensed occupancy as follows: 1 = occupied, 0 = unoccupied.
* All other bits are reserved.
* <p>
* This method can return cached data if the attribute has already been received.
* The parameter <i>refreshPeriod</i> is used to control this. If the attribute has been received
* within <i>refreshPeriod</i> milliseconds, then the method will immediately return the last value
* received. If <i>refreshPeriod</i> is set to 0, then the attribute will always be updated.
* <p>
* This method will block until the response is received or a timeout occurs unless the current value is returned.
* <p>
* The attribute is of type {@link Integer}.
* <p>
* The implementation of this attribute by a device is MANDATORY
*
* @param refreshPeriod the maximum age of the data (in milliseconds) before an update is needed
* @return the {@link Integer} attribute value, or null on error
*/
public Integer getOccupancy(final long refreshPeriod) {
if (attributes.get(ATTR_OCCUPANCY).isLastValueCurrent(refreshPeriod)) {
return (Integer) attributes.get(ATTR_OCCUPANCY).getLastValue();
}
return (Integer) readSync(attributes.get(ATTR_OCCUPANCY));
}
代码示例来源:origin: zsmartsystems/com.zsmartsystems.zigbee
/**
* Set the <i>UltraSonicOccupiedToUnoccupiedDelay</i> attribute [attribute ID <b>32</b>].
* <p>
* The UltraSonicOccupiedToUnoccupiedTime attribute specifies the time delay, in
* seconds, before the ultrasonic sensor changes to its occupied state when the
* sensed area becomes unoccupied. This attribute, along with
* UltraSonicUnoccupiedToOccupiedTime, may be used to reduce sensor 'chatter'
* when used in an area where occupation changes frequently.
* <p>
* The attribute is of type {@link Integer}.
* <p>
* The implementation of this attribute by a device is OPTIONAL
*
* @param ultraSonicOccupiedToUnoccupiedDelay the {@link Integer} attribute value to be set
* @return the {@link Future<CommandResult>} command result future
*/
public Future<CommandResult> setUltraSonicOccupiedToUnoccupiedDelay(final Object value) {
return write(attributes.get(ATTR_ULTRASONICOCCUPIEDTOUNOCCUPIEDDELAY), value);
}
代码示例来源:origin: zsmartsystems/com.zsmartsystems.zigbee
/**
* Get the <i>UltraSonicUnoccupiedToOccupiedDelay</i> attribute [attribute ID <b>33</b>].
* <p>
* The UltraSonicUnoccupiedToOccupiedTime attribute specifies the time delay, in
* seconds, before the ultrasonic sensor changes to its unoccupied state when the
* sensed area becomes occupied.
* <p>
* The attribute is of type {@link Integer}.
* <p>
* The implementation of this attribute by a device is OPTIONAL
*
* @return the {@link Future<CommandResult>} command result future
*/
public Future<CommandResult> getUltraSonicUnoccupiedToOccupiedDelayAsync() {
return read(attributes.get(ATTR_ULTRASONICUNOCCUPIEDTOOCCUPIEDDELAY));
}
代码示例来源:origin: zsmartsystems/com.zsmartsystems.zigbee
/**
* Synchronously get the <i>PIROccupiedToUnoccupiedDelay</i> attribute [attribute ID <b>16</b>].
* <p>
* The PIROccupiedToUnoccupiedDelay attribute is 8-bits in length and specifies
* the time delay, in seconds, before the PIR sensor changes to its occupied state
* when the sensed area becomes unoccupied. This attribute, along with
* PIRUnoccupiedToOccupiedTime, may be used to reduce sensor 'chatter' when
* used in an area where occupation changes frequently.
* <p>
* This method can return cached data if the attribute has already been received.
* The parameter <i>refreshPeriod</i> is used to control this. If the attribute has been received
* within <i>refreshPeriod</i> milliseconds, then the method will immediately return the last value
* received. If <i>refreshPeriod</i> is set to 0, then the attribute will always be updated.
* <p>
* This method will block until the response is received or a timeout occurs unless the current value is returned.
* <p>
* The attribute is of type {@link Integer}.
* <p>
* The implementation of this attribute by a device is OPTIONAL
*
* @param refreshPeriod the maximum age of the data (in milliseconds) before an update is needed
* @return the {@link Integer} attribute value, or null on error
*/
public Integer getPirOccupiedToUnoccupiedDelay(final long refreshPeriod) {
if (attributes.get(ATTR_PIROCCUPIEDTOUNOCCUPIEDDELAY).isLastValueCurrent(refreshPeriod)) {
return (Integer) attributes.get(ATTR_PIROCCUPIEDTOUNOCCUPIEDDELAY).getLastValue();
}
return (Integer) readSync(attributes.get(ATTR_PIROCCUPIEDTOUNOCCUPIEDDELAY));
}
从 Wildfly 8.2.1.Final 升级到 Wildfly 9.0.1.Final 后,我们开始收到很多警告,如下所示: WARNING [org.jgroups.protocols.TCP]
如果是,在哪里可以找到?!根据this infoq 条目,他们已经开源了。但是现在,他们的网站上没有这样的产品。 最佳答案 本页,http://terracotta.org/dl/oss-downlo
这个问题已经有答案了: 已关闭12 年前。 Possible Duplicates: Difference between clustered and nonclustered index What
我将 H2 数据库用于包含大量时间序列的环境数据。时间序列只是定期(例如每小时一次)记录在数据库中的传感器的测量值。 表中存储的数据: CREATE TABLE hydr (dt timestamp
Cluster 和 MPP super 计算机架构之间有什么区别? 最佳答案 在集群中,每台机器在内存、磁盘等方面都在很大程度上独立于其他机器。它们使用普通网络上的一些变体相互连接。集群主要存在于程序
我正在尝试为 akka 集群构建一个大脑 split 解析器。但是很难模拟某些节点无法从原始集群的其余部分访问并形成自己的集群的场景。 不能通过停止和重启节点来完成,因为新启动的节点不是同一个节点,因
我正在尝试在我的应用程序中使用集群。但是,在导入语句中,我得到“无法解析导入 com.google.maps (clustering.Cluster)”。 此外,在使用 ClusterManager
我想知道 Hive 中 Cluster By 和 CLUSTERED BY 的主要区别是什么。 Cluster By 用于对表进行分桶。并且会用到Hash函数。 CLUSTERED BY 用于在 re
我有3台机器,为redis集群创建了6个节点,我几个月前创建成功了,但现在它掉线了,我尽力修复它,但它不起作用,所以我清理所有数据并重新创建它从零开始,当我使用以下命令创建集群时,它在这里阻塞,等待节
我尝试使用 swarm 和 consul 设置 docker 集群。我有 manager、host1 和 host2。 我在管理器上运行 consul 和 swarm manager 容器。 $ do
如果我不使用 DTW 作为距离度量,那么 tslearn.clustering.TimeSeriesKMeans 和 sklearn.cluster.KMeans 是否等同? 如果不是,谁能告诉我这两
我正在研究 Flink 1.9.1 的 docker/k8s 部署可能性。 我正在阅读/观看 [1][2][3][4]。 目前我们确实认为我们会尝试采用作业集群方法,尽管我们想知道这方面的社区趋势是什
我可以使用一些关于 R 中方法的建议来确定最佳集群数,然后用不同的统计标准描述集群。我是 R 的新手,对聚类分析的统计基础有基本的了解。 确定簇数的方法:在文献中,一种常用的方法是所谓的“肘部准则”,
我有一个查询无法执行,并显示“由于文件组“DEFAULT”中磁盘空间不足,无法为数据库“TEMPDB”分配新页面”。 在排除故障的过程中,我正在检查执行计划。有两个标记为“聚集索引扫描(聚集)”的昂贵
我刚刚下载了 Elasticsearch 发行版并运行了它。 curl 'localhost:9200' { "status" : 200, "name" : "cbs", "clu
我有一个集群,其“cluster_ Purpose”设置为“dev_test”。我想将其更改为“生产”。在文档中找不到任何内容。 最佳答案 回答我自己的问题。这是不可能的。 关于Azure ML :
如何将主聚集索引更改为非聚集索引。 (作为“辅助”表,我想对“标题”表的外键列使用聚集索引。) 这对我不起作用(错误似乎是合理的:) DROP INDEX ClientUsers.PK_ClientU
我注意到,当使用 sklearn.cluster.KMeans 从方法 .cluster_centers_ 获取集群时,集群中心和每个集群的手动计算均值似乎不会给出完全相同的答案。 对于小样本量,差异
我在集群环境中使用 Quartz Scheduler 作为 Spring bean。 我有一些用@NotConcurrent 注释的作业,它们在每个集群中运行一次(即仅在一个节点中,仅在一个线程中)。
Node.js 本身有一个名为 Cluster 的核心模块(引用:http://nodejs.org/docs/v0.8.3/api/cluster.html),Learnboost 发布了一个名为
我是一名优秀的程序员,十分优秀!