|  |  |  | 
|---|
|  |  |  | package com.genersoft.iot.vmp.gb28181.bean; | 
|---|
|  |  |  |  | 
|---|
|  |  |  | import java.util.Map; | 
|---|
|  |  |  |  | 
|---|
|  |  |  |  | 
|---|
|  |  |  | public class Device { | 
|---|
|  |  |  |  | 
|---|
|  |  |  | 
|---|
|  |  |  | private String transport; | 
|---|
|  |  |  |  | 
|---|
|  |  |  | /** | 
|---|
|  |  |  | * 数据流传输模式 | 
|---|
|  |  |  | * UDP:udp传输 | 
|---|
|  |  |  | * TCP-ACTIVE:tcp主动模式 | 
|---|
|  |  |  | * TCP-PASSIVE:tcp被动模式 | 
|---|
|  |  |  | */ | 
|---|
|  |  |  | private String streamMode; | 
|---|
|  |  |  |  | 
|---|
|  |  |  | /** | 
|---|
|  |  |  | * wan地址_ip | 
|---|
|  |  |  | */ | 
|---|
|  |  |  | private String  ip; | 
|---|
|  |  |  |  | 
|---|
|  |  |  | /** | 
|---|
|  |  |  | * wan地址_port | 
|---|
|  |  |  | */ | 
|---|
|  |  |  | private int port; | 
|---|
|  |  |  |  | 
|---|
|  |  |  | /** | 
|---|
|  |  |  | * wan地址 | 
|---|
|  |  |  | */ | 
|---|
|  |  |  | private Host host; | 
|---|
|  |  |  | private String  hostAddress; | 
|---|
|  |  |  |  | 
|---|
|  |  |  | /** | 
|---|
|  |  |  | * 在线 | 
|---|
|  |  |  | */ | 
|---|
|  |  |  | private int online; | 
|---|
|  |  |  |  | 
|---|
|  |  |  | /** | 
|---|
|  |  |  | * 通道列表 | 
|---|
|  |  |  | */ | 
|---|
|  |  |  | private Map<String,DeviceChannel> channelMap; | 
|---|
|  |  |  |  | 
|---|
|  |  |  | /** | 
|---|
|  |  |  | * 注册时间 | 
|---|
|  |  |  | */ | 
|---|
|  |  |  | private Long registerTimeMillis; | 
|---|
|  |  |  |  | 
|---|
|  |  |  | /** | 
|---|
|  |  |  | * 通道个数 | 
|---|
|  |  |  | */ | 
|---|
|  |  |  | private int channelCount; | 
|---|
|  |  |  |  | 
|---|
|  |  |  | public String getDeviceId() { | 
|---|
|  |  |  | return deviceId; | 
|---|
|  |  |  | 
|---|
|  |  |  |  | 
|---|
|  |  |  | public void setName(String name) { | 
|---|
|  |  |  | this.name = name; | 
|---|
|  |  |  | } | 
|---|
|  |  |  |  | 
|---|
|  |  |  | public String getTransport() { | 
|---|
|  |  |  | return transport; | 
|---|
|  |  |  | } | 
|---|
|  |  |  |  | 
|---|
|  |  |  | public void setTransport(String transport) { | 
|---|
|  |  |  | this.transport = transport; | 
|---|
|  |  |  | } | 
|---|
|  |  |  |  | 
|---|
|  |  |  | public Host getHost() { | 
|---|
|  |  |  | return host; | 
|---|
|  |  |  | } | 
|---|
|  |  |  |  | 
|---|
|  |  |  | public void setHost(Host host) { | 
|---|
|  |  |  | this.host = host; | 
|---|
|  |  |  | } | 
|---|
|  |  |  |  | 
|---|
|  |  |  | public Map<String, DeviceChannel> getChannelMap() { | 
|---|
|  |  |  | return channelMap; | 
|---|
|  |  |  | } | 
|---|
|  |  |  |  | 
|---|
|  |  |  | public void setChannelMap(Map<String, DeviceChannel> channelMap) { | 
|---|
|  |  |  | this.channelMap = channelMap; | 
|---|
|  |  |  | } | 
|---|
|  |  |  |  | 
|---|
|  |  |  | public String getManufacturer() { | 
|---|
|  |  |  | 
|---|
|  |  |  | this.firmware = firmware; | 
|---|
|  |  |  | } | 
|---|
|  |  |  |  | 
|---|
|  |  |  | public String getTransport() { | 
|---|
|  |  |  | return transport; | 
|---|
|  |  |  | } | 
|---|
|  |  |  |  | 
|---|
|  |  |  | public void setTransport(String transport) { | 
|---|
|  |  |  | this.transport = transport; | 
|---|
|  |  |  | } | 
|---|
|  |  |  |  | 
|---|
|  |  |  | public String getStreamMode() { | 
|---|
|  |  |  | return streamMode; | 
|---|
|  |  |  | } | 
|---|
|  |  |  |  | 
|---|
|  |  |  | public void setStreamMode(String streamMode) { | 
|---|
|  |  |  | this.streamMode = streamMode; | 
|---|
|  |  |  | } | 
|---|
|  |  |  |  | 
|---|
|  |  |  | public String getIp() { | 
|---|
|  |  |  | return ip; | 
|---|
|  |  |  | } | 
|---|
|  |  |  |  | 
|---|
|  |  |  | public void setIp(String ip) { | 
|---|
|  |  |  | this.ip = ip; | 
|---|
|  |  |  | } | 
|---|
|  |  |  |  | 
|---|
|  |  |  | public int getPort() { | 
|---|
|  |  |  | return port; | 
|---|
|  |  |  | } | 
|---|
|  |  |  |  | 
|---|
|  |  |  | public void setPort(int port) { | 
|---|
|  |  |  | this.port = port; | 
|---|
|  |  |  | } | 
|---|
|  |  |  |  | 
|---|
|  |  |  | public String getHostAddress() { | 
|---|
|  |  |  | return hostAddress; | 
|---|
|  |  |  | } | 
|---|
|  |  |  |  | 
|---|
|  |  |  | public void setHostAddress(String hostAddress) { | 
|---|
|  |  |  | this.hostAddress = hostAddress; | 
|---|
|  |  |  | } | 
|---|
|  |  |  |  | 
|---|
|  |  |  | public int getOnline() { | 
|---|
|  |  |  | return online; | 
|---|
|  |  |  | } | 
|---|
|  |  |  | 
|---|
|  |  |  | public void setOnline(int online) { | 
|---|
|  |  |  | this.online = online; | 
|---|
|  |  |  | } | 
|---|
|  |  |  |  | 
|---|
|  |  |  | public int getChannelCount() { | 
|---|
|  |  |  | return channelCount; | 
|---|
|  |  |  | } | 
|---|
|  |  |  |  | 
|---|
|  |  |  | public void setChannelCount(int channelCount) { | 
|---|
|  |  |  | this.channelCount = channelCount; | 
|---|
|  |  |  | } | 
|---|
|  |  |  |  | 
|---|
|  |  |  | public Long getRegisterTimeMillis() { | 
|---|
|  |  |  | return registerTimeMillis; | 
|---|
|  |  |  | } | 
|---|
|  |  |  |  | 
|---|
|  |  |  | public void setRegisterTimeMillis(Long registerTimeMillis) { | 
|---|
|  |  |  | this.registerTimeMillis = registerTimeMillis; | 
|---|
|  |  |  | } | 
|---|
|  |  |  | } | 
|---|