You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 

64 lines
1.8 KiB

package com.inspect.nvr.hik.domain;
import com.inspect.nvr.domain.Infrared.NvrInfo;
/**
* 由 IVS 完整摄像机编码解析出的海康 NVR 回放目标。
*
* <p>浏览器只提交 {@code cameraCode},NVR 地址、端口、账号、密码和通道号
* 均由服务端根据 {@code ivs_camera} 与 {@code basedata_eqpbook_nvr} 解析。</p>
*/
public class HikNvrCameraTarget {
/** 已校验并去除首尾空白的 IVS 完整摄像机编码。 */
private final String cameraCode;
/** 从完整摄像机编码中解析出的页面逻辑通道号。 */
private final Integer channel;
/** 从数据库读取且包含完整服务端凭据的所属 NVR。 */
private final NvrInfo nvrInfo;
/**
* 保存一次 cameraCode 解析得到的摄像机、通道和 NVR 结果。
*
* @param cameraCode IVS 完整摄像机编码
* @param channel 解析出的页面逻辑通道号
* @param nvrInfo 摄像机所属 NVR 的数据库连接信息
*/
public HikNvrCameraTarget(
String cameraCode,
Integer channel,
NvrInfo nvrInfo) {
this.cameraCode = cameraCode;
this.channel = channel;
this.nvrInfo = nvrInfo;
}
/**
* 返回已校验的 IVS 完整摄像机编码。
*
* @return 完整 cameraCode
*/
public String getCameraCode() {
return cameraCode;
}
/**
* 返回海康回放使用的页面逻辑通道号。
*
* @return 正整数通道号
*/
public Integer getChannel() {
return channel;
}
/**
* 返回摄像机所属 NVR 的数据库连接信息。
*
* @return 仅在服务端使用的 NVR 参数
*/
public NvrInfo getNvrInfo() {
return nvrInfo;
}
}