| @ -1,112 +0,0 @@ | |||
| <?xml version="1.0" encoding="UTF-8"?> | |||
| <project xmlns="http://maven.apache.org/POM/4.0.0" | |||
| xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" | |||
| xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd"> | |||
| <modelVersion>4.0.0</modelVersion> | |||
| <parent> | |||
| <groupId>com.inspect</groupId> | |||
| <artifactId>inspect</artifactId> | |||
| <version>3.4.0</version> | |||
| <!-- <version>${revision}</version>--> | |||
| <!-- <relativePath>../pom.xml</relativePath>--> | |||
| </parent> | |||
| <artifactId>inspect-fastcall</artifactId> | |||
| <properties> | |||
| <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding> | |||
| <project.reporting.outputEncoding>UTF-8</project.reporting.outputEncoding> | |||
| <java.version>1.8</java.version> | |||
| <start-class>com.inspect.access.InspectAccessApplication</start-class> | |||
| </properties> | |||
| <dependencies> | |||
| <dependency> | |||
| <groupId>com.alibaba.cloud</groupId> | |||
| <artifactId>spring-cloud-starter-alibaba-nacos-discovery</artifactId> | |||
| </dependency> | |||
| <dependency> | |||
| <groupId>com.alibaba.cloud</groupId> | |||
| <artifactId>spring-cloud-starter-alibaba-nacos-config</artifactId> | |||
| </dependency> | |||
| <dependency> | |||
| <groupId>com.alibaba.cloud</groupId> | |||
| <artifactId>spring-cloud-starter-alibaba-sentinel</artifactId> | |||
| </dependency> | |||
| <dependency> | |||
| <groupId>org.springframework.boot</groupId> | |||
| <artifactId>spring-boot-starter-actuator</artifactId> | |||
| </dependency> | |||
| <dependency> | |||
| <groupId>org.springframework.boot</groupId> | |||
| <artifactId>spring-boot-starter-web</artifactId> | |||
| </dependency> | |||
| <dependency> | |||
| <groupId>com.inspect</groupId> | |||
| <artifactId>inspect-common-log</artifactId> | |||
| <version>3.4.0</version> | |||
| </dependency> | |||
| <dependency> | |||
| <groupId>net.java.dev.jna</groupId> | |||
| <artifactId>jna</artifactId> | |||
| <version>5.4.0</version> | |||
| </dependency> | |||
| <dependency> | |||
| <groupId>com.inspect</groupId> | |||
| <artifactId>inspect-base-access</artifactId> | |||
| </dependency> | |||
| </dependencies> | |||
| <build> | |||
| <finalName>${project.artifactId}</finalName> | |||
| <plugins> | |||
| <plugin> | |||
| <groupId>org.springframework.boot</groupId> | |||
| <artifactId>spring-boot-maven-plugin</artifactId> | |||
| <version>${spring.boot.version}</version> | |||
| <configuration> | |||
| <fork>true</fork> | |||
| </configuration> | |||
| <executions> | |||
| <execution> | |||
| <goals> | |||
| <goal>repackage</goal> | |||
| </goals> | |||
| </execution> | |||
| </executions> | |||
| </plugin> | |||
| <plugin> | |||
| <groupId>org.apache.maven.plugins</groupId> | |||
| <artifactId>maven-dependency-plugin</artifactId> | |||
| <executions> | |||
| <execution> | |||
| <id>copy-dependencies</id> | |||
| <phase>prepare-package</phase> | |||
| <goals> | |||
| <goal>copy-dependencies</goal> | |||
| </goals> | |||
| <configuration> | |||
| <outputDirectory> | |||
| ${project.build.directory}/lib | |||
| </outputDirectory> | |||
| <overWriteReleases>false</overWriteReleases> | |||
| <overWriteSnapshots>false</overWriteSnapshots> | |||
| <overWriteIfNewer>true</overWriteIfNewer> | |||
| </configuration> | |||
| </execution> | |||
| </executions> | |||
| </plugin> | |||
| <plugin> | |||
| <groupId>org.apache.maven.plugins</groupId> | |||
| <artifactId>maven-resources-plugin</artifactId> | |||
| <version>3.3.1</version> | |||
| <configuration> | |||
| <encoding>UTF-8</encoding> | |||
| <nonFilteredFileExtensions> | |||
| <nonFilteredFileExtension>dll</nonFilteredFileExtension> | |||
| <nonFilteredFileExtension>so</nonFilteredFileExtension> | |||
| </nonFilteredFileExtensions> | |||
| </configuration> | |||
| </plugin> | |||
| </plugins> | |||
| </build> | |||
| </project> | |||
| @ -1,25 +0,0 @@ | |||
| package com.inspect.access; | |||
| import com.inspect.access.module.LoginModule; | |||
| import com.inspect.access.module.ThermalCameraModule; | |||
| import com.inspect.access.module.dhModule; | |||
| import java.io.IOException; | |||
| import java.util.ArrayList; | |||
| import java.util.List; | |||
| public class DHDemo { | |||
| public static void main(String[] args) throws IOException, InterruptedException { | |||
| dhModule module = new dhModule(); | |||
| LoginModule.init(module.disConnect, module.haveReConnect); | |||
| boolean flag = module.login("10.10.18.108", '鎑', "admin", "xg123456"); | |||
| if (flag) { | |||
| List<Integer> list = new ArrayList<>(); | |||
| list.add(2); | |||
| ThermalCameraModule.removeRulesByPresetIds(list); | |||
| System.out.println("===========end"); | |||
| } | |||
| System.in.read(); | |||
| } | |||
| } | |||
| @ -1,24 +0,0 @@ | |||
| package com.inspect.access; | |||
| import com.inspect.common.security.annotation.EnableCustomConfig; | |||
| import com.inspect.common.security.annotation.EnableRyFeignClients; | |||
| import org.slf4j.Logger; | |||
| import org.slf4j.LoggerFactory; | |||
| import org.springframework.boot.SpringApplication; | |||
| import org.springframework.boot.autoconfigure.SpringBootApplication; | |||
| import org.springframework.boot.autoconfigure.jdbc.DataSourceAutoConfiguration; | |||
| import org.springframework.context.annotation.ComponentScan; | |||
| @EnableCustomConfig | |||
| @EnableRyFeignClients | |||
| @SpringBootApplication( | |||
| exclude = {DataSourceAutoConfiguration.class} | |||
| ) | |||
| @ComponentScan({"com.inspect.*"}) | |||
| public class InspectAccessApplication { | |||
| private final static Logger log = LoggerFactory.getLogger(InspectAccessApplication.class); | |||
| public static void main(String[] args) { | |||
| SpringApplication.run(InspectAccessApplication.class, args); | |||
| log.info("\n<===☆ FASTCALL MODULE ☆ ===> \n .-------. ____ __ \n | _ _ \\ \\ \\ / / \n | ( ' ) | \\ _. / ' \n |(_ o _) / _( )_ .' \n | (_,_).' __ ___(_ o _)' \n | |\\ \\ | || |(_,_)' \n | | \\ `' /| `-' / \n | | \\ / \\ / \n ''-' `'-' `-..-' "); | |||
| } | |||
| } | |||
| @ -1,322 +0,0 @@ | |||
| package com.inspect.access.common; | |||
| import java.nio.ByteBuffer; | |||
| import java.nio.charset.Charset; | |||
| import java.util.Arrays; | |||
| public class Base64 { | |||
| public static Base64.Encoder getEncoder() { | |||
| return Base64.Encoder.RFC4648; | |||
| } | |||
| public static Base64.Decoder getDecoder() { | |||
| return Base64.Decoder.RFC4648; | |||
| } | |||
| public static class Decoder { | |||
| private final boolean isURL; | |||
| private final boolean isMIME; | |||
| private static final int[] fromBase64 = new int[256]; | |||
| private static final int[] fromBase64URL; | |||
| static final Base64.Decoder RFC4648; | |||
| static final Base64.Decoder RFC4648_URLSAFE; | |||
| static final Base64.Decoder RFC2045; | |||
| private Decoder(boolean isURL, boolean isMIME) { | |||
| this.isURL = isURL; | |||
| this.isMIME = isMIME; | |||
| } | |||
| public byte[] decode(byte[] src) { | |||
| byte[] dst = new byte[this.outLength(src, 0, src.length)]; | |||
| int ret = this.decode0(src, 0, src.length, dst); | |||
| if (ret != dst.length) { | |||
| dst = Arrays.copyOf(dst, ret); | |||
| } | |||
| return dst; | |||
| } | |||
| public byte[] decode(String src) { | |||
| return this.decode(src.getBytes(Charset.forName("ISO-8859-1"))); | |||
| } | |||
| public int decode(byte[] src, byte[] dst) { | |||
| int len = this.outLength(src, 0, src.length); | |||
| if (dst.length < len) { | |||
| throw new IllegalArgumentException("Output byte array is too small for decoding all input bytes"); | |||
| } else { | |||
| return this.decode0(src, 0, src.length, dst); | |||
| } | |||
| } | |||
| public ByteBuffer decode(ByteBuffer buffer) { | |||
| int pos0 = buffer.position(); | |||
| try { | |||
| byte[] src; | |||
| int sp; | |||
| int sl; | |||
| if (buffer.hasArray()) { | |||
| src = buffer.array(); | |||
| sp = buffer.arrayOffset() + buffer.position(); | |||
| sl = buffer.arrayOffset() + buffer.limit(); | |||
| buffer.position(buffer.limit()); | |||
| } else { | |||
| src = new byte[buffer.remaining()]; | |||
| buffer.get(src); | |||
| sp = 0; | |||
| sl = src.length; | |||
| } | |||
| byte[] dst = new byte[this.outLength(src, sp, sl)]; | |||
| return ByteBuffer.wrap(dst, 0, this.decode0(src, sp, sl, dst)); | |||
| } catch (IllegalArgumentException var7) { | |||
| buffer.position(pos0); | |||
| throw var7; | |||
| } | |||
| } | |||
| private int outLength(byte[] src, int sp, int sl) { | |||
| int[] base64 = this.isURL ? fromBase64URL : fromBase64; | |||
| int paddings = 0; | |||
| int len = sl - sp; | |||
| if (len == 0) { | |||
| return 0; | |||
| } else if (len < 2) { | |||
| if (this.isMIME && base64[0] == -1) { | |||
| return 0; | |||
| } else { | |||
| throw new IllegalArgumentException("Input byte[] should at least have 2 bytes for base64 bytes"); | |||
| } | |||
| } else { | |||
| if (this.isMIME) { | |||
| int n = 0; | |||
| while (sp < sl) { | |||
| int b = src[sp++] & 255; | |||
| if (b == 61) { | |||
| len -= sl - sp + 1; | |||
| break; | |||
| } | |||
| if (base64[b] == -1) { | |||
| ++n; | |||
| } | |||
| } | |||
| len -= n; | |||
| } else if (src[sl - 1] == 61) { | |||
| ++paddings; | |||
| if (src[sl - 2] == 61) { | |||
| ++paddings; | |||
| } | |||
| } | |||
| if (paddings == 0 && (len & 3) != 0) { | |||
| paddings = 4 - (len & 3); | |||
| } | |||
| return 3 * ((len + 3) / 4) - paddings; | |||
| } | |||
| } | |||
| private int decode0(byte[] src, int sp, int sl, byte[] dst) { | |||
| int[] base64 = this.isURL ? fromBase64URL : fromBase64; | |||
| int dp = 0; | |||
| int bits = 0; | |||
| int shiftto = 18; | |||
| while (sp < sl) { | |||
| int b = src[sp++] & 255; | |||
| if ((b = base64[b]) < 0) { | |||
| if (b == -2) { | |||
| if ((shiftto != 6 || sp != sl && src[sp++] == 61) && shiftto != 18) { | |||
| break; | |||
| } | |||
| throw new IllegalArgumentException("Input byte array has wrong 4-byte ending unit"); | |||
| } | |||
| if (!this.isMIME) { | |||
| throw new IllegalArgumentException("Illegal base64 character " + Integer.toString(src[sp - 1], 16)); | |||
| } | |||
| } else { | |||
| bits |= b << shiftto; | |||
| shiftto -= 6; | |||
| if (shiftto < 0) { | |||
| dst[dp++] = (byte) (bits >> 16); | |||
| dst[dp++] = (byte) (bits >> 8); | |||
| dst[dp++] = (byte) bits; | |||
| shiftto = 18; | |||
| bits = 0; | |||
| } | |||
| } | |||
| } | |||
| if (shiftto == 6) { | |||
| dst[dp++] = (byte) (bits >> 16); | |||
| } else if (shiftto == 0) { | |||
| dst[dp++] = (byte) (bits >> 16); | |||
| dst[dp++] = (byte) (bits >> 8); | |||
| } else if (shiftto == 12) { | |||
| throw new IllegalArgumentException("Last unit does not have enough valid bits"); | |||
| } | |||
| do { | |||
| if (sp >= sl) { | |||
| return dp; | |||
| } | |||
| } while (this.isMIME && base64[src[sp++]] < 0); | |||
| throw new IllegalArgumentException("Input byte array has incorrect ending byte at " + sp); | |||
| } | |||
| static { | |||
| Arrays.fill(fromBase64, -1); | |||
| int i; | |||
| for (i = 0; i < Base64.Encoder.toBase64.length; fromBase64[Base64.Encoder.toBase64[i]] = i++) { | |||
| ; | |||
| } | |||
| fromBase64[61] = -2; | |||
| fromBase64URL = new int[256]; | |||
| Arrays.fill(fromBase64URL, -1); | |||
| for (i = 0; i < Base64.Encoder.toBase64URL.length; fromBase64URL[Base64.Encoder.toBase64URL[i]] = i++) { | |||
| ; | |||
| } | |||
| fromBase64URL[61] = -2; | |||
| RFC4648 = new Base64.Decoder(false, false); | |||
| RFC4648_URLSAFE = new Base64.Decoder(true, false); | |||
| RFC2045 = new Base64.Decoder(false, true); | |||
| } | |||
| } | |||
| public static class Encoder { | |||
| private final byte[] newline; | |||
| private final int linemax; | |||
| private final boolean isURL; | |||
| private final boolean doPadding; | |||
| private static final char[] toBase64 = new char[]{'A', 'B', 'C', 'D', 'E', 'F', 'G', 'H', 'I', 'J', 'K', 'L', 'M', 'N', 'O', 'P', 'Q', 'R', 'S', 'T', 'U', 'V', 'W', 'X', 'Y', 'Z', 'a', 'b', 'c', 'd', 'e', 'f', 'g', 'h', 'i', 'j', 'k', 'l', 'm', 'n', 'o', 'p', 'q', 'r', 's', 't', 'u', 'v', 'w', 'x', 'y', 'z', '0', '1', '2', '3', '4', '5', '6', '7', '8', '9', '+', '/'}; | |||
| private static final char[] toBase64URL = new char[]{'A', 'B', 'C', 'D', 'E', 'F', 'G', 'H', 'I', 'J', 'K', 'L', 'M', 'N', 'O', 'P', 'Q', 'R', 'S', 'T', 'U', 'V', 'W', 'X', 'Y', 'Z', 'a', 'b', 'c', 'd', 'e', 'f', 'g', 'h', 'i', 'j', 'k', 'l', 'm', 'n', 'o', 'p', 'q', 'r', 's', 't', 'u', 'v', 'w', 'x', 'y', 'z', '0', '1', '2', '3', '4', '5', '6', '7', '8', '9', '-', '_'}; | |||
| static final Base64.Encoder RFC4648 = new Base64.Encoder(false, (byte[]) null, -1, true); | |||
| private Encoder(boolean isURL, byte[] newline, int linemax, boolean doPadding) { | |||
| this.isURL = isURL; | |||
| this.newline = newline; | |||
| this.linemax = linemax; | |||
| this.doPadding = doPadding; | |||
| } | |||
| private final int outLength(int srclen) { | |||
| int len = 0; | |||
| if (this.doPadding) { | |||
| len = 4 * ((srclen + 2) / 3); | |||
| } else { | |||
| int n = srclen % 3; | |||
| len = 4 * (srclen / 3) + (n == 0 ? 0 : n + 1); | |||
| } | |||
| if (this.linemax > 0) { | |||
| len += (len - 1) / this.linemax * this.newline.length; | |||
| } | |||
| return len; | |||
| } | |||
| public byte[] encode(byte[] src) { | |||
| int len = this.outLength(src.length); | |||
| byte[] dst = new byte[len]; | |||
| int ret = this.encode0(src, 0, src.length, dst); | |||
| return ret != dst.length ? Arrays.copyOf(dst, ret) : dst; | |||
| } | |||
| public int encode(byte[] src, byte[] dst) { | |||
| int len = this.outLength(src.length); | |||
| if (dst.length < len) { | |||
| throw new IllegalArgumentException("Output byte array is too small for encoding all input bytes"); | |||
| } else { | |||
| return this.encode0(src, 0, src.length, dst); | |||
| } | |||
| } | |||
| public String encodeToString(byte[] src) { | |||
| byte[] encoded = this.encode(src); | |||
| return new String(encoded, 0, 0, encoded.length); | |||
| } | |||
| public Base64.Encoder withoutPadding() { | |||
| return !this.doPadding ? this : new Base64.Encoder(this.isURL, this.newline, this.linemax, false); | |||
| } | |||
| private int encode0(byte[] src, int off, int end, byte[] dst) { | |||
| char[] base64 = this.isURL ? toBase64URL : toBase64; | |||
| int sp = off; | |||
| int slen = (end - off) / 3 * 3; | |||
| int sl = off + slen; | |||
| if (this.linemax > 0 && slen > this.linemax / 4 * 3) { | |||
| slen = this.linemax / 4 * 3; | |||
| } | |||
| int dp = 0; | |||
| while (true) { | |||
| int sl0; | |||
| int dlen; | |||
| int bits; | |||
| do { | |||
| do { | |||
| if (sp >= sl) { | |||
| if (sp < end) { | |||
| sl0 = src[sp++] & 255; | |||
| dst[dp++] = (byte) base64[sl0 >> 2]; | |||
| if (sp == end) { | |||
| dst[dp++] = (byte) base64[sl0 << 4 & 63]; | |||
| if (this.doPadding) { | |||
| dst[dp++] = 61; | |||
| dst[dp++] = 61; | |||
| } | |||
| } else { | |||
| dlen = src[sp++] & 255; | |||
| dst[dp++] = (byte) base64[sl0 << 4 & 63 | dlen >> 4]; | |||
| dst[dp++] = (byte) base64[dlen << 2 & 63]; | |||
| if (this.doPadding) { | |||
| dst[dp++] = 61; | |||
| } | |||
| } | |||
| } | |||
| return dp; | |||
| } | |||
| sl0 = Math.min(sp + slen, sl); | |||
| dlen = sp; | |||
| for (int var12 = dp; dlen < sl0; dst[var12++] = (byte) base64[bits & 63]) { | |||
| bits = (src[dlen++] & 255) << 16 | (src[dlen++] & 255) << 8 | src[dlen++] & 255; | |||
| dst[var12++] = (byte) base64[bits >>> 18 & 63]; | |||
| dst[var12++] = (byte) base64[bits >>> 12 & 63]; | |||
| dst[var12++] = (byte) base64[bits >>> 6 & 63]; | |||
| } | |||
| dlen = (sl0 - sp) / 3 * 4; | |||
| dp += dlen; | |||
| sp = sl0; | |||
| } while (dlen != this.linemax); | |||
| } while (sl0 >= end); | |||
| byte[] var16 = this.newline; | |||
| bits = var16.length; | |||
| for (int var14 = 0; var14 < bits; ++var14) { | |||
| byte b = var16[var14]; | |||
| dst[dp++] = b; | |||
| } | |||
| } | |||
| } | |||
| } | |||
| } | |||
| @ -1,13 +0,0 @@ | |||
| package com.inspect.access.common; | |||
| import javax.swing.BorderFactory; | |||
| import javax.swing.JComponent; | |||
| import javax.swing.border.Border; | |||
| public class BorderEx { | |||
| public static void set(JComponent object, String title, int width) { | |||
| Border innerBorder = BorderFactory.createTitledBorder(title); | |||
| Border outerBorder = BorderFactory.createEmptyBorder(width, width, width, width); | |||
| object.setBorder(BorderFactory.createCompoundBorder(outerBorder, innerBorder)); | |||
| } | |||
| } | |||
| @ -1,92 +0,0 @@ | |||
| package com.inspect.access.common; | |||
| import java.io.PrintStream; | |||
| import java.lang.reflect.Method; | |||
| import java.util.Iterator; | |||
| import java.util.NoSuchElementException; | |||
| import java.util.Scanner; | |||
| import java.util.Vector; | |||
| public class CaseMenu { | |||
| private Vector<CaseMenu.Item> items = new Vector(); | |||
| public void addItem(CaseMenu.Item item) { | |||
| this.items.add(item); | |||
| } | |||
| private void showItem() { | |||
| String format = "%2d\t%-20s\n"; | |||
| int index = 0; | |||
| PrintStream var10000 = System.out; | |||
| Object[] var10002 = new Object[2]; | |||
| int var6 = index + 1; | |||
| var10002[0] = Integer.valueOf(index); | |||
| var10002[1] = "exit App"; | |||
| var10000.printf("%2d\t%-20s\n", var10002); | |||
| Iterator var3 = this.items.iterator(); | |||
| while(var3.hasNext()) { | |||
| CaseMenu.Item item = (CaseMenu.Item)var3.next(); | |||
| System.out.printf("%2d\t%-20s\n", new Object[]{Integer.valueOf(var6++), item.getItemName()}); | |||
| } | |||
| System.out.println("Please input a item index to invoke the method:"); | |||
| } | |||
| public void run() { | |||
| Scanner scanner = new Scanner(System.in); | |||
| while(true) { | |||
| this.showItem(); | |||
| try { | |||
| int input = Integer.parseInt(scanner.nextLine()); | |||
| if(input <= 0) { | |||
| System.err.println("input <= 0 || scanner.nextLine() == null"); | |||
| break; | |||
| } | |||
| if(input >= 0 && input <= this.items.size()) { | |||
| CaseMenu.Item item = (CaseMenu.Item)this.items.get(input - 1); | |||
| Class<?> itemClass = item.getObject().getClass(); | |||
| Method method = itemClass.getMethod(item.getMethodName(), new Class[0]); | |||
| method.invoke(item.getObject(), new Object[0]); | |||
| } else { | |||
| System.err.println("Input Error Item Index."); | |||
| } | |||
| } catch (NoSuchElementException var6) { | |||
| break; | |||
| } catch (NumberFormatException var7) { | |||
| System.err.println("Input Error NumberFormat."); | |||
| } catch (Exception var8) { | |||
| var8.printStackTrace(); | |||
| } | |||
| } | |||
| scanner.close(); | |||
| } | |||
| public static class Item { | |||
| private Object object; | |||
| private String itemName; | |||
| private String methodName; | |||
| public Item(Object object, String itemName, String methodName) { | |||
| this.object = object; | |||
| this.itemName = itemName; | |||
| this.methodName = methodName; | |||
| } | |||
| public Object getObject() { | |||
| return this.object; | |||
| } | |||
| public String getItemName() { | |||
| return this.itemName; | |||
| } | |||
| public String getMethodName() { | |||
| return this.methodName; | |||
| } | |||
| } | |||
| } | |||
| @ -1,539 +0,0 @@ | |||
| package com.inspect.access.common; | |||
| import java.awt.BorderLayout; | |||
| import java.awt.Color; | |||
| import java.awt.Component; | |||
| import java.awt.Cursor; | |||
| import java.awt.Dimension; | |||
| import java.awt.FlowLayout; | |||
| import java.awt.Font; | |||
| import java.awt.GridLayout; | |||
| import java.awt.event.ActionEvent; | |||
| import java.awt.event.ActionListener; | |||
| import java.awt.event.MouseEvent; | |||
| import java.awt.event.MouseListener; | |||
| import java.awt.event.WindowAdapter; | |||
| import java.awt.event.WindowEvent; | |||
| import java.text.ParseException; | |||
| import java.text.SimpleDateFormat; | |||
| import java.util.Calendar; | |||
| import java.util.Date; | |||
| import javax.swing.JButton; | |||
| import javax.swing.JDialog; | |||
| import javax.swing.JLabel; | |||
| import javax.swing.JPanel; | |||
| import javax.swing.JSpinner; | |||
| import javax.swing.SpinnerNumberModel; | |||
| import javax.swing.UIManager; | |||
| import javax.swing.JSpinner.NumberEditor; | |||
| import javax.swing.border.Border; | |||
| import javax.swing.border.LineBorder; | |||
| import javax.swing.event.ChangeEvent; | |||
| import javax.swing.event.ChangeListener; | |||
| public class DateChooserJButton extends JButton { | |||
| private static final long serialVersionUID = 1L; | |||
| int startYear; | |||
| int lastYear; | |||
| private DateChooserJButton.DateChooser dateChooser; | |||
| private String preLabel; | |||
| private String originalText; | |||
| private SimpleDateFormat sdf; | |||
| private JSpinner yearSpin; | |||
| private JSpinner monthSpin; | |||
| private JSpinner daySpin; | |||
| private JSpinner hourSpin; | |||
| private JSpinner minuteSpin; | |||
| private JSpinner secondSpin; | |||
| public DateChooserJButton() { | |||
| this(getNowDate()); | |||
| try { | |||
| UIManager.setLookAndFeel(UIManager.getSystemLookAndFeelClassName()); | |||
| } catch (Exception var2) { | |||
| var2.printStackTrace(); | |||
| } | |||
| } | |||
| public DateChooserJButton(String dateString) { | |||
| this(); | |||
| this.setText(getDefaultDateFormat(), dateString); | |||
| this.initOriginalText(dateString); | |||
| } | |||
| public DateChooserJButton(SimpleDateFormat df, String dateString) { | |||
| this(); | |||
| this.setText(df, dateString); | |||
| this.sdf = df; | |||
| Date originalDate = null; | |||
| try { | |||
| originalDate = df.parse(dateString); | |||
| } catch (ParseException var5) { | |||
| originalDate = getNowDate(); | |||
| } | |||
| this.initOriginalText(originalDate); | |||
| } | |||
| public DateChooserJButton(Date date) { | |||
| this("", date); | |||
| this.initOriginalText(date); | |||
| } | |||
| public DateChooserJButton(String preLabel, Date date) { | |||
| this.startYear = 1980; | |||
| this.lastYear = 2050; | |||
| this.dateChooser = null; | |||
| this.preLabel = ""; | |||
| this.originalText = null; | |||
| this.sdf = null; | |||
| if(preLabel != null) { | |||
| this.preLabel = preLabel; | |||
| } | |||
| this.setDate(date); | |||
| this.initOriginalText(date); | |||
| this.setBorder((Border)null); | |||
| this.setCursor(new Cursor(12)); | |||
| super.addActionListener(new ActionListener() { | |||
| public void actionPerformed(ActionEvent e) { | |||
| if(DateChooserJButton.this.dateChooser == null) { | |||
| DateChooserJButton.this.dateChooser = DateChooserJButton.this.new DateChooser(); | |||
| } | |||
| DateChooserJButton.this.dateChooser.showDateChooser(); | |||
| } | |||
| }); | |||
| } | |||
| public DateChooserJButton(int startYear, int lastYear) { | |||
| this(); | |||
| this.startYear = startYear; | |||
| this.lastYear = lastYear; | |||
| } | |||
| private static Date getNowDate() { | |||
| return Calendar.getInstance().getTime(); | |||
| } | |||
| private static SimpleDateFormat getDefaultDateFormat() { | |||
| return new SimpleDateFormat("yyyy-MM-dd HH:mm:ss"); | |||
| } | |||
| public SimpleDateFormat getCurrentSimpleDateFormat() { | |||
| return this.sdf != null?this.sdf:getDefaultDateFormat(); | |||
| } | |||
| private void initOriginalText(String dateString) { | |||
| this.originalText = dateString; | |||
| } | |||
| private void initOriginalText(Date date) { | |||
| this.originalText = this.preLabel + getDefaultDateFormat().format(date); | |||
| } | |||
| public String getOriginalText() { | |||
| return this.originalText; | |||
| } | |||
| public void setText(String s) { | |||
| Date date; | |||
| try { | |||
| date = getDefaultDateFormat().parse(s); | |||
| } catch (ParseException var4) { | |||
| date = getNowDate(); | |||
| } | |||
| this.setDate(date); | |||
| this.initOriginalText(date); | |||
| } | |||
| public void setText(SimpleDateFormat df, String s) { | |||
| Date date; | |||
| try { | |||
| date = df.parse(s); | |||
| } catch (ParseException var5) { | |||
| date = getNowDate(); | |||
| } | |||
| this.setDate(date); | |||
| this.initOriginalText(date); | |||
| } | |||
| public void setDate(Date date) { | |||
| super.setText(this.preLabel + getDefaultDateFormat().format(date)); | |||
| } | |||
| public Date getDate() { | |||
| String dateString = this.getText().substring(this.preLabel.length()); | |||
| try { | |||
| SimpleDateFormat currentSdf = this.getCurrentSimpleDateFormat(); | |||
| return currentSdf.parse(dateString); | |||
| } catch (ParseException var3) { | |||
| return getNowDate(); | |||
| } | |||
| } | |||
| public void addActionListener(ActionListener listener) { | |||
| } | |||
| private class DateChooser extends JPanel implements MouseListener, ChangeListener { | |||
| private static final long serialVersionUID = 1L; | |||
| JLabel yearLabel; | |||
| JLabel monthLabel; | |||
| JLabel dayLabel; | |||
| JLabel hourLabel; | |||
| JLabel minuteLabel; | |||
| JLabel secondLabel; | |||
| int width = 485; | |||
| int height = 230; | |||
| Color backGroundColor; | |||
| Color palletTableColor; | |||
| Color todayBackColor; | |||
| Color weekFontColor; | |||
| Color dateFontColor; | |||
| Color weekendFontColor; | |||
| Color controlLineColor; | |||
| Color controlTextColor; | |||
| JDialog dialog; | |||
| JLabel[][] daysLabels; | |||
| DateChooser() { | |||
| this.backGroundColor = Color.gray; | |||
| this.palletTableColor = Color.white; | |||
| this.todayBackColor = Color.orange; | |||
| this.weekFontColor = Color.blue; | |||
| this.dateFontColor = Color.black; | |||
| this.weekendFontColor = Color.red; | |||
| this.controlLineColor = Color.pink; | |||
| this.controlTextColor = Color.white; | |||
| this.daysLabels = new JLabel[6][7]; | |||
| this.setLayout(new BorderLayout()); | |||
| this.setBorder(new LineBorder(this.backGroundColor, 2)); | |||
| this.setBackground(this.backGroundColor); | |||
| JPanel topYearAndMonth = this.createYearAndMonthPanal(); | |||
| this.add(topYearAndMonth, "North"); | |||
| JPanel centerWeekAndDay = this.createWeekAndDayPanal(); | |||
| this.add(centerWeekAndDay, "Center"); | |||
| JPanel buttonBarPanel = this.createButtonBarPanel(); | |||
| this.add(buttonBarPanel, "South"); | |||
| } | |||
| private JPanel createYearAndMonthPanal() { | |||
| Calendar c = this.getCalendar(); | |||
| int currentYear = c.get(1); | |||
| int currentMonth = c.get(2) + 1; | |||
| int currentDay = c.get(5); | |||
| int currentHour = c.get(11); | |||
| int currentMinute = c.get(12); | |||
| int currentSecond = c.get(13); | |||
| JPanel result = new JPanel(); | |||
| result.setLayout(new FlowLayout()); | |||
| result.setBackground(this.controlLineColor); | |||
| DateChooserJButton.this.yearSpin = new JSpinner(new SpinnerNumberModel(currentYear, DateChooserJButton.this.startYear, DateChooserJButton.this.lastYear, 1)); | |||
| DateChooserJButton.this.yearSpin.setPreferredSize(new Dimension(48, 20)); | |||
| DateChooserJButton.this.yearSpin.setName("Year"); | |||
| DateChooserJButton.this.yearSpin.setEditor(new NumberEditor(DateChooserJButton.this.yearSpin, "####")); | |||
| DateChooserJButton.this.yearSpin.addChangeListener(this); | |||
| result.add(DateChooserJButton.this.yearSpin); | |||
| this.yearLabel = new JLabel(Res.string().getYear()); | |||
| this.yearLabel.setForeground(this.controlTextColor); | |||
| result.add(this.yearLabel); | |||
| DateChooserJButton.this.monthSpin = new JSpinner(new SpinnerNumberModel(currentMonth, 1, 12, 1)); | |||
| DateChooserJButton.this.monthSpin.setPreferredSize(new Dimension(35, 20)); | |||
| DateChooserJButton.this.monthSpin.setName("Month"); | |||
| DateChooserJButton.this.monthSpin.addChangeListener(this); | |||
| result.add(DateChooserJButton.this.monthSpin); | |||
| this.monthLabel = new JLabel(Res.string().getMonth()); | |||
| this.monthLabel.setForeground(this.controlTextColor); | |||
| result.add(this.monthLabel); | |||
| DateChooserJButton.this.daySpin = new JSpinner(new SpinnerNumberModel(currentDay, 1, 31, 1)); | |||
| DateChooserJButton.this.daySpin.setPreferredSize(new Dimension(35, 20)); | |||
| DateChooserJButton.this.daySpin.setName("Day"); | |||
| DateChooserJButton.this.daySpin.addChangeListener(this); | |||
| DateChooserJButton.this.daySpin.setEnabled(false); | |||
| result.add(DateChooserJButton.this.daySpin); | |||
| this.dayLabel = new JLabel(Res.string().getDay()); | |||
| this.dayLabel.setForeground(this.controlTextColor); | |||
| result.add(this.dayLabel); | |||
| DateChooserJButton.this.hourSpin = new JSpinner(new SpinnerNumberModel(currentHour, 0, 23, 1)); | |||
| DateChooserJButton.this.hourSpin.setPreferredSize(new Dimension(35, 20)); | |||
| DateChooserJButton.this.hourSpin.setName("Hour"); | |||
| DateChooserJButton.this.hourSpin.addChangeListener(this); | |||
| result.add(DateChooserJButton.this.hourSpin); | |||
| this.hourLabel = new JLabel(Res.string().getHour()); | |||
| this.hourLabel.setForeground(this.controlTextColor); | |||
| result.add(this.hourLabel); | |||
| DateChooserJButton.this.minuteSpin = new JSpinner(new SpinnerNumberModel(currentMinute, 0, 59, 1)); | |||
| DateChooserJButton.this.minuteSpin.setPreferredSize(new Dimension(35, 20)); | |||
| DateChooserJButton.this.minuteSpin.setName("Minute"); | |||
| DateChooserJButton.this.minuteSpin.addChangeListener(this); | |||
| result.add(DateChooserJButton.this.minuteSpin); | |||
| this.minuteLabel = new JLabel(Res.string().getMinute()); | |||
| this.minuteLabel.setForeground(this.controlTextColor); | |||
| result.add(this.minuteLabel); | |||
| DateChooserJButton.this.secondSpin = new JSpinner(new SpinnerNumberModel(currentSecond, 0, 59, 1)); | |||
| DateChooserJButton.this.secondSpin.setPreferredSize(new Dimension(35, 20)); | |||
| DateChooserJButton.this.secondSpin.setName("Second"); | |||
| DateChooserJButton.this.secondSpin.addChangeListener(this); | |||
| result.add(DateChooserJButton.this.secondSpin); | |||
| this.secondLabel = new JLabel(Res.string().getSecond()); | |||
| this.secondLabel.setForeground(this.controlTextColor); | |||
| result.add(this.secondLabel); | |||
| return result; | |||
| } | |||
| private JPanel createWeekAndDayPanal() { | |||
| Res.string().getWeek(); | |||
| JPanel result = new JPanel(); | |||
| result.setFont(new Font("宋体", 0, 12)); | |||
| result.setLayout(new GridLayout(7, 7)); | |||
| result.setBackground(Color.white); | |||
| int i; | |||
| for(i = 0; i < 7; ++i) { | |||
| JLabel cell = new JLabel(Res.string().getWeek()[i]); | |||
| cell.setHorizontalAlignment(4); | |||
| if(i != 0 && i != 6) { | |||
| cell.setForeground(this.weekFontColor); | |||
| } else { | |||
| cell.setForeground(this.weekendFontColor); | |||
| } | |||
| result.add(cell); | |||
| } | |||
| for(i = 0; i < 6; ++i) { | |||
| for(int j = 0; j < 7; ++j) { | |||
| JLabel numberLabel = new JLabel(); | |||
| numberLabel.setBorder((Border)null); | |||
| numberLabel.setHorizontalAlignment(4); | |||
| numberLabel.addMouseListener(this); | |||
| numberLabel.setBackground(this.palletTableColor); | |||
| numberLabel.setForeground(this.dateFontColor); | |||
| if(j != 0 && j != 6) { | |||
| numberLabel.setForeground(this.dateFontColor); | |||
| } else { | |||
| numberLabel.setForeground(this.weekendFontColor); | |||
| } | |||
| this.daysLabels[i][j] = numberLabel; | |||
| result.add(numberLabel); | |||
| } | |||
| } | |||
| return result; | |||
| } | |||
| public String getTextOfDateChooserButton() { | |||
| return DateChooserJButton.this.getText(); | |||
| } | |||
| public void restoreTheOriginalDate() { | |||
| String originalText = DateChooserJButton.this.getOriginalText(); | |||
| DateChooserJButton.this.setText(originalText); | |||
| } | |||
| private JPanel createButtonBarPanel() { | |||
| JPanel panel = new JPanel(); | |||
| panel.setLayout(new GridLayout(1, 2)); | |||
| JButton ok = new JButton(Res.string().getConfirm()); | |||
| ok.addActionListener(new ActionListener() { | |||
| public void actionPerformed(ActionEvent e) { | |||
| DateChooserJButton.this.initOriginalText(DateChooser.this.getTextOfDateChooserButton()); | |||
| DateChooser.this.dialog.setVisible(false); | |||
| } | |||
| }); | |||
| panel.add(ok); | |||
| JButton cancel = new JButton(Res.string().getCancel()); | |||
| cancel.addActionListener(new ActionListener() { | |||
| public void actionPerformed(ActionEvent e) { | |||
| DateChooser.this.restoreTheOriginalDate(); | |||
| DateChooser.this.dialog.setVisible(false); | |||
| } | |||
| }); | |||
| panel.add(cancel); | |||
| return panel; | |||
| } | |||
| private JDialog createDialog() { | |||
| JDialog result = new JDialog(); | |||
| result.setTitle(Res.string().getDateChooser()); | |||
| result.setDefaultCloseOperation(2); | |||
| result.getContentPane().add(this, "Center"); | |||
| result.pack(); | |||
| result.setSize(this.width, this.height); | |||
| result.setModal(true); | |||
| result.addWindowListener(new WindowAdapter() { | |||
| public void windowClosing(WindowEvent e) { | |||
| DateChooser.this.restoreTheOriginalDate(); | |||
| DateChooser.this.dialog.setVisible(false); | |||
| } | |||
| }); | |||
| return result; | |||
| } | |||
| void showDateChooser() { | |||
| if(this.dialog == null) { | |||
| this.dialog = this.createDialog(); | |||
| } | |||
| this.dialog.setLocationRelativeTo((Component)null); | |||
| this.flushWeekAndDay(); | |||
| this.dialog.setVisible(true); | |||
| } | |||
| private Calendar getCalendar() { | |||
| Calendar result = Calendar.getInstance(); | |||
| result.setTime(DateChooserJButton.this.getDate()); | |||
| return result; | |||
| } | |||
| private int getSelectedYear() { | |||
| return ((Integer)DateChooserJButton.this.yearSpin.getValue()).intValue(); | |||
| } | |||
| private int getSelectedMonth() { | |||
| return ((Integer)DateChooserJButton.this.monthSpin.getValue()).intValue(); | |||
| } | |||
| private int getSelectedHour() { | |||
| return ((Integer)DateChooserJButton.this.hourSpin.getValue()).intValue(); | |||
| } | |||
| private int getSelectedMinite() { | |||
| return ((Integer)DateChooserJButton.this.minuteSpin.getValue()).intValue(); | |||
| } | |||
| private int getSelectedSecond() { | |||
| return ((Integer)DateChooserJButton.this.secondSpin.getValue()).intValue(); | |||
| } | |||
| private void dayColorUpdate(boolean isOldDay) { | |||
| Calendar c = this.getCalendar(); | |||
| int day = c.get(5); | |||
| c.set(5, 1); | |||
| int actionCommandId = day - 2 + c.get(7); | |||
| int i = actionCommandId / 7; | |||
| int j = actionCommandId % 7; | |||
| if(isOldDay) { | |||
| this.daysLabels[i][j].setForeground(this.dateFontColor); | |||
| } else { | |||
| this.daysLabels[i][j].setForeground(this.todayBackColor); | |||
| } | |||
| } | |||
| private void flushWeekAndDay() { | |||
| Calendar c = this.getCalendar(); | |||
| c.set(5, 1); | |||
| int maxDayNo = c.getActualMaximum(5); | |||
| int dayNo = 2 - c.get(7); | |||
| for(int i = 0; i < 6; ++i) { | |||
| for(int jx = 0; jx < 7; ++jx) { | |||
| String s = ""; | |||
| if(dayNo >= 1 && dayNo <= maxDayNo) { | |||
| s = String.valueOf(dayNo); | |||
| } | |||
| this.daysLabels[i][jx].setText(s); | |||
| ++dayNo; | |||
| } | |||
| } | |||
| String[] date1 = DateChooserJButton.this.getText().split(" ")[0].split("-"); | |||
| String[] date2 = DateChooserJButton.this.getText().split(" ")[1].split(":"); | |||
| DateChooserJButton.this.yearSpin.setValue(new Integer(date1[0])); | |||
| DateChooserJButton.this.monthSpin.setValue(new Integer(date1[1])); | |||
| DateChooserJButton.this.daySpin.setValue(new Integer(date1[2])); | |||
| DateChooserJButton.this.hourSpin.setValue(new Integer(date2[0])); | |||
| DateChooserJButton.this.minuteSpin.setValue(new Integer(date2[1])); | |||
| DateChooserJButton.this.secondSpin.setValue(new Integer(date2[2])); | |||
| int j; | |||
| int ix; | |||
| for(ix = 0; ix < 6; ++ix) { | |||
| for(j = 0; j < 7; ++j) { | |||
| if(!this.daysLabels[ix][j].getText().equals("")) { | |||
| this.daysLabels[ix][j].setForeground(Color.BLACK); | |||
| } | |||
| } | |||
| } | |||
| for(ix = 0; ix < 6; ++ix) { | |||
| if(!this.daysLabels[ix][0].getText().equals("")) { | |||
| this.daysLabels[ix][0].setForeground(this.weekendFontColor); | |||
| } | |||
| if(!this.daysLabels[ix][6].getText().equals("")) { | |||
| this.daysLabels[ix][6].setForeground(this.weekendFontColor); | |||
| } | |||
| } | |||
| for(ix = 0; ix < 6; ++ix) { | |||
| for(j = 0; j < 7; ++j) { | |||
| if(this.daysLabels[ix][j].getText().equals(date1[2])) { | |||
| this.daysLabels[ix][j].setForeground(this.todayBackColor); | |||
| } | |||
| } | |||
| } | |||
| this.dayColorUpdate(false); | |||
| } | |||
| public void stateChanged(ChangeEvent e) { | |||
| JSpinner source = (JSpinner)e.getSource(); | |||
| Calendar c = this.getCalendar(); | |||
| if(source.getName().equals("Hour")) { | |||
| c.set(11, this.getSelectedHour()); | |||
| DateChooserJButton.this.setDate(c.getTime()); | |||
| } else if(source.getName().equals("Minute")) { | |||
| c.set(12, this.getSelectedMinite()); | |||
| DateChooserJButton.this.setDate(c.getTime()); | |||
| } else if(source.getName().equals("Second")) { | |||
| c.set(13, this.getSelectedSecond()); | |||
| DateChooserJButton.this.setDate(c.getTime()); | |||
| } else { | |||
| this.dayColorUpdate(true); | |||
| if(source.getName().equals("Year")) { | |||
| c.set(1, this.getSelectedYear()); | |||
| } else if(source.getName().equals("Month")) { | |||
| c.set(2, this.getSelectedMonth() - 1); | |||
| } | |||
| DateChooserJButton.this.setDate(c.getTime()); | |||
| this.flushWeekAndDay(); | |||
| } | |||
| } | |||
| public void mouseClicked(MouseEvent e) { | |||
| JLabel source = (JLabel)e.getSource(); | |||
| if(source.getText().length() != 0) { | |||
| this.dayColorUpdate(true); | |||
| source.setForeground(this.todayBackColor); | |||
| int newDay = Integer.parseInt(source.getText()); | |||
| Calendar c = this.getCalendar(); | |||
| c.set(5, newDay); | |||
| DateChooserJButton.this.setDate(c.getTime()); | |||
| DateChooserJButton.this.daySpin.setValue(Integer.valueOf(newDay)); | |||
| } | |||
| } | |||
| public void mouseEntered(MouseEvent arg0) { | |||
| } | |||
| public void mouseExited(MouseEvent arg0) { | |||
| } | |||
| public void mousePressed(MouseEvent arg0) { | |||
| } | |||
| public void mouseReleased(MouseEvent arg0) { | |||
| } | |||
| } | |||
| } | |||
| @ -1,507 +0,0 @@ | |||
| package com.inspect.access.common; | |||
| import java.awt.BorderLayout; | |||
| import java.awt.Color; | |||
| import java.awt.Component; | |||
| import java.awt.Cursor; | |||
| import java.awt.Dimension; | |||
| import java.awt.FlowLayout; | |||
| import java.awt.Font; | |||
| import java.awt.GridLayout; | |||
| import java.awt.event.ActionEvent; | |||
| import java.awt.event.ActionListener; | |||
| import java.awt.event.MouseEvent; | |||
| import java.awt.event.MouseListener; | |||
| import java.awt.event.WindowAdapter; | |||
| import java.awt.event.WindowEvent; | |||
| import java.text.ParseException; | |||
| import java.text.SimpleDateFormat; | |||
| import java.util.Calendar; | |||
| import java.util.Date; | |||
| import javax.swing.JButton; | |||
| import javax.swing.JDialog; | |||
| import javax.swing.JLabel; | |||
| import javax.swing.JPanel; | |||
| import javax.swing.JSpinner; | |||
| import javax.swing.SpinnerNumberModel; | |||
| import javax.swing.UIManager; | |||
| import javax.swing.JSpinner.NumberEditor; | |||
| import javax.swing.border.Border; | |||
| import javax.swing.border.LineBorder; | |||
| import javax.swing.event.ChangeEvent; | |||
| import javax.swing.event.ChangeListener; | |||
| public class DateChooserJButtonEx extends JButton { | |||
| private static final long serialVersionUID = 1L; | |||
| int startYear; | |||
| int lastYear; | |||
| private DateChooserJButtonEx.DateChooser dateChooser; | |||
| private String preLabel; | |||
| private String originalText; | |||
| private SimpleDateFormat sdf; | |||
| private JSpinner yearSpin; | |||
| private JSpinner monthSpin; | |||
| private JSpinner daySpin; | |||
| private JSpinner hourSpin; | |||
| private JSpinner minuteSpin; | |||
| private JSpinner secondSpin; | |||
| public DateChooserJButtonEx() { | |||
| this(getNowDate()); | |||
| try { | |||
| UIManager.setLookAndFeel(UIManager.getSystemLookAndFeelClassName()); | |||
| } catch (Exception var2) { | |||
| var2.printStackTrace(); | |||
| } | |||
| } | |||
| public DateChooserJButtonEx(String dateString) { | |||
| this(); | |||
| this.setText(getDefaultDateFormat(), dateString); | |||
| this.initOriginalText(dateString); | |||
| } | |||
| public DateChooserJButtonEx(SimpleDateFormat df, String dateString) { | |||
| this(); | |||
| this.setText(df, dateString); | |||
| this.sdf = df; | |||
| Date originalDate = null; | |||
| try { | |||
| originalDate = df.parse(dateString); | |||
| } catch (ParseException var5) { | |||
| originalDate = getNowDate(); | |||
| } | |||
| this.initOriginalText(originalDate); | |||
| } | |||
| public DateChooserJButtonEx(Date date) { | |||
| this("", date); | |||
| this.initOriginalText(date); | |||
| } | |||
| public DateChooserJButtonEx(String preLabel, Date date) { | |||
| this.startYear = 1980; | |||
| this.lastYear = 2050; | |||
| this.dateChooser = null; | |||
| this.preLabel = ""; | |||
| this.originalText = null; | |||
| this.sdf = null; | |||
| if(preLabel != null) { | |||
| this.preLabel = preLabel; | |||
| } | |||
| this.setDate(date); | |||
| this.initOriginalText(date); | |||
| this.setBorder((Border)null); | |||
| this.setCursor(new Cursor(12)); | |||
| super.addActionListener(new ActionListener() { | |||
| public void actionPerformed(ActionEvent e) { | |||
| if(DateChooserJButtonEx.this.dateChooser == null) { | |||
| DateChooserJButtonEx.this.dateChooser = DateChooserJButtonEx.this.new DateChooser(); | |||
| } | |||
| DateChooserJButtonEx.this.dateChooser.showDateChooser(); | |||
| } | |||
| }); | |||
| } | |||
| public void setStartYear(int startYear) { | |||
| this.startYear = startYear; | |||
| } | |||
| public void setLastYear(int lastYear) { | |||
| this.lastYear = lastYear; | |||
| } | |||
| private static Date getNowDate() { | |||
| return Calendar.getInstance().getTime(); | |||
| } | |||
| private static SimpleDateFormat getDefaultDateFormat() { | |||
| return new SimpleDateFormat("yyyy-MM-dd"); | |||
| } | |||
| public SimpleDateFormat getCurrentSimpleDateFormat() { | |||
| return this.sdf != null?this.sdf:getDefaultDateFormat(); | |||
| } | |||
| private void initOriginalText(String dateString) { | |||
| this.originalText = dateString; | |||
| } | |||
| private void initOriginalText(Date date) { | |||
| this.originalText = this.preLabel + getDefaultDateFormat().format(date); | |||
| } | |||
| public String getOriginalText() { | |||
| return this.originalText; | |||
| } | |||
| public void setText(String s) { | |||
| Date date; | |||
| try { | |||
| date = getDefaultDateFormat().parse(s); | |||
| } catch (ParseException var4) { | |||
| date = getNowDate(); | |||
| } | |||
| this.setDate(date); | |||
| this.initOriginalText(date); | |||
| } | |||
| public void setText(SimpleDateFormat df, String s) { | |||
| Date date; | |||
| try { | |||
| date = df.parse(s); | |||
| } catch (ParseException var5) { | |||
| date = getNowDate(); | |||
| } | |||
| this.setDate(date); | |||
| this.initOriginalText(date); | |||
| } | |||
| public void setDate(Date date) { | |||
| super.setText(this.preLabel + getDefaultDateFormat().format(date)); | |||
| } | |||
| public Date getDate() { | |||
| String dateString = this.getText().substring(this.preLabel.length()); | |||
| try { | |||
| SimpleDateFormat currentSdf = this.getCurrentSimpleDateFormat(); | |||
| return currentSdf.parse(dateString); | |||
| } catch (ParseException var3) { | |||
| return getNowDate(); | |||
| } | |||
| } | |||
| public void addActionListener(ActionListener listener) { | |||
| } | |||
| private class DateChooser extends JPanel implements MouseListener, ChangeListener { | |||
| private static final long serialVersionUID = 1L; | |||
| JLabel yearLabel; | |||
| JLabel monthLabel; | |||
| JLabel dayLabel; | |||
| int width = 485; | |||
| int height = 230; | |||
| Color backGroundColor; | |||
| Color palletTableColor; | |||
| Color todayBackColor; | |||
| Color weekFontColor; | |||
| Color dateFontColor; | |||
| Color weekendFontColor; | |||
| Color controlLineColor; | |||
| Color controlTextColor; | |||
| JDialog dialog; | |||
| JLabel[][] daysLabels; | |||
| DateChooser() { | |||
| this.backGroundColor = Color.gray; | |||
| this.palletTableColor = Color.white; | |||
| this.todayBackColor = Color.orange; | |||
| this.weekFontColor = Color.blue; | |||
| this.dateFontColor = Color.black; | |||
| this.weekendFontColor = Color.red; | |||
| this.controlLineColor = Color.pink; | |||
| this.controlTextColor = Color.white; | |||
| this.daysLabels = new JLabel[6][7]; | |||
| this.setLayout(new BorderLayout()); | |||
| this.setBorder(new LineBorder(this.backGroundColor, 2)); | |||
| this.setBackground(this.backGroundColor); | |||
| JPanel topYearAndMonth = this.createYearAndMonthPanal(); | |||
| this.add(topYearAndMonth, "North"); | |||
| JPanel centerWeekAndDay = this.createWeekAndDayPanal(); | |||
| this.add(centerWeekAndDay, "Center"); | |||
| JPanel buttonBarPanel = this.createButtonBarPanel(); | |||
| this.add(buttonBarPanel, "South"); | |||
| } | |||
| private JPanel createYearAndMonthPanal() { | |||
| Calendar c = this.getCalendar(); | |||
| int currentYear = c.get(1); | |||
| int currentMonth = c.get(2) + 1; | |||
| int currentDay = c.get(5); | |||
| JPanel result = new JPanel(); | |||
| result.setLayout(new FlowLayout()); | |||
| result.setBackground(this.controlLineColor); | |||
| DateChooserJButtonEx.this.yearSpin = new JSpinner(new SpinnerNumberModel(currentYear, DateChooserJButtonEx.this.startYear, DateChooserJButtonEx.this.lastYear, 1)); | |||
| DateChooserJButtonEx.this.yearSpin.setPreferredSize(new Dimension(48, 20)); | |||
| DateChooserJButtonEx.this.yearSpin.setName("Year"); | |||
| DateChooserJButtonEx.this.yearSpin.setEditor(new NumberEditor(DateChooserJButtonEx.this.yearSpin, "####")); | |||
| DateChooserJButtonEx.this.yearSpin.addChangeListener(this); | |||
| result.add(DateChooserJButtonEx.this.yearSpin); | |||
| this.yearLabel = new JLabel(Res.string().getYear()); | |||
| this.yearLabel.setForeground(this.controlTextColor); | |||
| result.add(this.yearLabel); | |||
| DateChooserJButtonEx.this.monthSpin = new JSpinner(new SpinnerNumberModel(currentMonth, 1, 12, 1)); | |||
| DateChooserJButtonEx.this.monthSpin.setPreferredSize(new Dimension(35, 20)); | |||
| DateChooserJButtonEx.this.monthSpin.setName("Month"); | |||
| DateChooserJButtonEx.this.monthSpin.addChangeListener(this); | |||
| result.add(DateChooserJButtonEx.this.monthSpin); | |||
| this.monthLabel = new JLabel(Res.string().getMonth()); | |||
| this.monthLabel.setForeground(this.controlTextColor); | |||
| result.add(this.monthLabel); | |||
| DateChooserJButtonEx.this.daySpin = new JSpinner(new SpinnerNumberModel(currentDay, 1, 31, 1)); | |||
| DateChooserJButtonEx.this.daySpin.setPreferredSize(new Dimension(35, 20)); | |||
| DateChooserJButtonEx.this.daySpin.setName("Day"); | |||
| DateChooserJButtonEx.this.daySpin.addChangeListener(this); | |||
| DateChooserJButtonEx.this.daySpin.setEnabled(false); | |||
| result.add(DateChooserJButtonEx.this.daySpin); | |||
| this.dayLabel = new JLabel(Res.string().getDay()); | |||
| this.dayLabel.setForeground(this.controlTextColor); | |||
| result.add(this.dayLabel); | |||
| return result; | |||
| } | |||
| private JPanel createWeekAndDayPanal() { | |||
| Res.string().getWeek(); | |||
| JPanel result = new JPanel(); | |||
| result.setFont(new Font("宋体", 0, 12)); | |||
| result.setLayout(new GridLayout(7, 7)); | |||
| result.setBackground(Color.white); | |||
| int i; | |||
| for(i = 0; i < 7; ++i) { | |||
| JLabel cell = new JLabel(Res.string().getWeek()[i]); | |||
| cell.setHorizontalAlignment(4); | |||
| if(i != 0 && i != 6) { | |||
| cell.setForeground(this.weekFontColor); | |||
| } else { | |||
| cell.setForeground(this.weekendFontColor); | |||
| } | |||
| result.add(cell); | |||
| } | |||
| for(i = 0; i < 6; ++i) { | |||
| for(int j = 0; j < 7; ++j) { | |||
| JLabel numberLabel = new JLabel(); | |||
| numberLabel.setBorder((Border)null); | |||
| numberLabel.setHorizontalAlignment(4); | |||
| numberLabel.addMouseListener(this); | |||
| numberLabel.setBackground(this.palletTableColor); | |||
| numberLabel.setForeground(this.dateFontColor); | |||
| if(j != 0 && j != 6) { | |||
| numberLabel.setForeground(this.dateFontColor); | |||
| } else { | |||
| numberLabel.setForeground(this.weekendFontColor); | |||
| } | |||
| this.daysLabels[i][j] = numberLabel; | |||
| result.add(numberLabel); | |||
| } | |||
| } | |||
| return result; | |||
| } | |||
| public String getTextOfDateChooserButton() { | |||
| return DateChooserJButtonEx.this.getText(); | |||
| } | |||
| public void restoreTheOriginalDate() { | |||
| String originalText = DateChooserJButtonEx.this.getOriginalText(); | |||
| DateChooserJButtonEx.this.setText(originalText); | |||
| } | |||
| private JPanel createButtonBarPanel() { | |||
| JPanel panel = new JPanel(); | |||
| panel.setLayout(new GridLayout(1, 2)); | |||
| JButton ok = new JButton(Res.string().getConfirm()); | |||
| ok.addActionListener(new ActionListener() { | |||
| public void actionPerformed(ActionEvent e) { | |||
| DateChooserJButtonEx.this.initOriginalText(DateChooser.this.getTextOfDateChooserButton()); | |||
| DateChooser.this.dialog.setVisible(false); | |||
| } | |||
| }); | |||
| panel.add(ok); | |||
| JButton cancel = new JButton(Res.string().getCancel()); | |||
| cancel.addActionListener(new ActionListener() { | |||
| public void actionPerformed(ActionEvent e) { | |||
| DateChooser.this.restoreTheOriginalDate(); | |||
| DateChooser.this.dialog.setVisible(false); | |||
| } | |||
| }); | |||
| panel.add(cancel); | |||
| return panel; | |||
| } | |||
| private JDialog createDialog() { | |||
| JDialog result = new JDialog(); | |||
| result.setTitle(Res.string().getDateChooser()); | |||
| result.setDefaultCloseOperation(2); | |||
| result.getContentPane().add(this, "Center"); | |||
| result.pack(); | |||
| result.setSize(this.width, this.height); | |||
| result.setModal(true); | |||
| result.addWindowListener(new WindowAdapter() { | |||
| public void windowClosing(WindowEvent e) { | |||
| DateChooser.this.restoreTheOriginalDate(); | |||
| DateChooser.this.dialog.setVisible(false); | |||
| } | |||
| }); | |||
| return result; | |||
| } | |||
| void showDateChooser() { | |||
| if(this.dialog == null) { | |||
| this.dialog = this.createDialog(); | |||
| } | |||
| this.dialog.setLocationRelativeTo((Component)null); | |||
| this.flushWeekAndDay(); | |||
| this.dialog.setVisible(true); | |||
| } | |||
| private Calendar getCalendar() { | |||
| Calendar result = Calendar.getInstance(); | |||
| result.setTime(DateChooserJButtonEx.this.getDate()); | |||
| return result; | |||
| } | |||
| private int getSelectedYear() { | |||
| return ((Integer)DateChooserJButtonEx.this.yearSpin.getValue()).intValue(); | |||
| } | |||
| private int getSelectedMonth() { | |||
| return ((Integer)DateChooserJButtonEx.this.monthSpin.getValue()).intValue(); | |||
| } | |||
| private int getSelectedHour() { | |||
| return ((Integer)DateChooserJButtonEx.this.hourSpin.getValue()).intValue(); | |||
| } | |||
| private int getSelectedMinite() { | |||
| return ((Integer)DateChooserJButtonEx.this.minuteSpin.getValue()).intValue(); | |||
| } | |||
| private int getSelectedSecond() { | |||
| return ((Integer)DateChooserJButtonEx.this.secondSpin.getValue()).intValue(); | |||
| } | |||
| private void dayColorUpdate(boolean isOldDay) { | |||
| Calendar c = this.getCalendar(); | |||
| int day = c.get(5); | |||
| c.set(5, 1); | |||
| int actionCommandId = day - 2 + c.get(7); | |||
| int i = actionCommandId / 7; | |||
| int j = actionCommandId % 7; | |||
| if(isOldDay) { | |||
| this.daysLabels[i][j].setForeground(this.dateFontColor); | |||
| } else { | |||
| this.daysLabels[i][j].setForeground(this.todayBackColor); | |||
| } | |||
| } | |||
| private void flushWeekAndDay() { | |||
| Calendar c = this.getCalendar(); | |||
| c.set(5, 1); | |||
| int maxDayNo = c.getActualMaximum(5); | |||
| int dayNo = 2 - c.get(7); | |||
| int ix; | |||
| for(int i = 0; i < 6; ++i) { | |||
| for(ix = 0; ix < 7; ++ix) { | |||
| String s = ""; | |||
| if(dayNo >= 1 && dayNo <= maxDayNo) { | |||
| s = String.valueOf(dayNo); | |||
| } | |||
| this.daysLabels[i][ix].setText(s); | |||
| ++dayNo; | |||
| } | |||
| } | |||
| String[] date1 = DateChooserJButtonEx.this.getText().split(" ")[0].split("-"); | |||
| DateChooserJButtonEx.this.yearSpin.setValue(new Integer(date1[0])); | |||
| DateChooserJButtonEx.this.monthSpin.setValue(new Integer(date1[1])); | |||
| DateChooserJButtonEx.this.daySpin.setValue(new Integer(date1[2])); | |||
| int j; | |||
| for(ix = 0; ix < 6; ++ix) { | |||
| for(j = 0; j < 7; ++j) { | |||
| if(!this.daysLabels[ix][j].getText().equals("")) { | |||
| this.daysLabels[ix][j].setForeground(Color.BLACK); | |||
| } | |||
| } | |||
| } | |||
| for(ix = 0; ix < 6; ++ix) { | |||
| if(!this.daysLabels[ix][0].getText().equals("")) { | |||
| this.daysLabels[ix][0].setForeground(this.weekendFontColor); | |||
| } | |||
| if(!this.daysLabels[ix][6].getText().equals("")) { | |||
| this.daysLabels[ix][6].setForeground(this.weekendFontColor); | |||
| } | |||
| } | |||
| for(ix = 0; ix < 6; ++ix) { | |||
| for(j = 0; j < 7; ++j) { | |||
| if(this.daysLabels[ix][j].getText().equals(date1[2])) { | |||
| this.daysLabels[ix][j].setForeground(this.todayBackColor); | |||
| } | |||
| } | |||
| } | |||
| this.dayColorUpdate(false); | |||
| } | |||
| public void stateChanged(ChangeEvent e) { | |||
| JSpinner source = (JSpinner)e.getSource(); | |||
| Calendar c = this.getCalendar(); | |||
| if(source.getName().equals("Hour")) { | |||
| c.set(11, this.getSelectedHour()); | |||
| DateChooserJButtonEx.this.setDate(c.getTime()); | |||
| } else if(source.getName().equals("Minute")) { | |||
| c.set(12, this.getSelectedMinite()); | |||
| DateChooserJButtonEx.this.setDate(c.getTime()); | |||
| } else if(source.getName().equals("Second")) { | |||
| c.set(13, this.getSelectedSecond()); | |||
| DateChooserJButtonEx.this.setDate(c.getTime()); | |||
| } else { | |||
| this.dayColorUpdate(true); | |||
| if(source.getName().equals("Year")) { | |||
| c.set(1, this.getSelectedYear()); | |||
| } else if(source.getName().equals("Month")) { | |||
| c.set(2, this.getSelectedMonth() - 1); | |||
| } | |||
| DateChooserJButtonEx.this.setDate(c.getTime()); | |||
| this.flushWeekAndDay(); | |||
| } | |||
| } | |||
| public void mouseClicked(MouseEvent e) { | |||
| JLabel source = (JLabel)e.getSource(); | |||
| if(source.getText().length() != 0) { | |||
| this.dayColorUpdate(true); | |||
| source.setForeground(this.todayBackColor); | |||
| int newDay = Integer.parseInt(source.getText()); | |||
| Calendar c = this.getCalendar(); | |||
| c.set(5, newDay); | |||
| DateChooserJButtonEx.this.setDate(c.getTime()); | |||
| DateChooserJButtonEx.this.daySpin.setValue(Integer.valueOf(newDay)); | |||
| } | |||
| } | |||
| public void mouseEntered(MouseEvent arg0) { | |||
| } | |||
| public void mouseExited(MouseEvent arg0) { | |||
| } | |||
| public void mousePressed(MouseEvent arg0) { | |||
| } | |||
| public void mouseReleased(MouseEvent arg0) { | |||
| } | |||
| } | |||
| } | |||
| @ -1,5 +0,0 @@ | |||
| package com.inspect.access.common; | |||
| public interface DeviceManagerListener { | |||
| void onDeviceManager(String var1, String var2, String var3); | |||
| } | |||
| @ -1,859 +0,0 @@ | |||
| package com.inspect.access.common; | |||
| public class ErrorCode { | |||
| public static String getErrorCode(int err) { | |||
| String msg = ""; | |||
| switch(err) { | |||
| case -2147483647: | |||
| msg = Res.string().getBundle().getString("NET_SYSTEM_ERROR"); | |||
| break; | |||
| case -2147483646: | |||
| msg = Res.string().getBundle().getString("NET_NETWORK_ERROR"); | |||
| break; | |||
| case -2147483645: | |||
| msg = Res.string().getBundle().getString("NET_DEV_VER_NOMATCH"); | |||
| break; | |||
| case -2147483644: | |||
| msg = Res.string().getBundle().getString("NET_INVALID_HANDLE"); | |||
| break; | |||
| case -2147483643: | |||
| msg = Res.string().getBundle().getString("NET_OPEN_CHANNEL_ERROR"); | |||
| break; | |||
| case -2147483642: | |||
| msg = Res.string().getBundle().getString("NET_CLOSE_CHANNEL_ERROR"); | |||
| break; | |||
| case -2147483641: | |||
| msg = Res.string().getBundle().getString("NET_ILLEGAL_PARAM"); | |||
| break; | |||
| case -2147483640: | |||
| msg = Res.string().getBundle().getString("NET_SDK_INIT_ERROR"); | |||
| break; | |||
| case -2147483639: | |||
| msg = Res.string().getBundle().getString("NET_SDK_UNINIT_ERROR"); | |||
| break; | |||
| case -2147483638: | |||
| msg = Res.string().getBundle().getString("NET_RENDER_OPEN_ERROR"); | |||
| break; | |||
| case -2147483637: | |||
| msg = Res.string().getBundle().getString("NET_DEC_OPEN_ERROR"); | |||
| break; | |||
| case -2147483636: | |||
| msg = Res.string().getBundle().getString("NET_DEC_CLOSE_ERROR"); | |||
| break; | |||
| case -2147483635: | |||
| msg = Res.string().getBundle().getString("NET_MULTIPLAY_NOCHANNEL"); | |||
| break; | |||
| case -2147483634: | |||
| msg = Res.string().getBundle().getString("NET_TALK_INIT_ERROR"); | |||
| break; | |||
| case -2147483633: | |||
| msg = Res.string().getBundle().getString("NET_TALK_NOT_INIT"); | |||
| break; | |||
| case -2147483632: | |||
| msg = Res.string().getBundle().getString("NET_TALK_SENDDATA_ERROR"); | |||
| break; | |||
| case -2147483631: | |||
| msg = Res.string().getBundle().getString("NET_REAL_ALREADY_SAVING"); | |||
| break; | |||
| case -2147483630: | |||
| msg = Res.string().getBundle().getString("NET_NOT_SAVING"); | |||
| break; | |||
| case -2147483629: | |||
| msg = Res.string().getBundle().getString("NET_OPEN_FILE_ERROR"); | |||
| break; | |||
| case -2147483628: | |||
| msg = Res.string().getBundle().getString("NET_PTZ_SET_TIMER_ERROR"); | |||
| break; | |||
| case -2147483627: | |||
| msg = Res.string().getBundle().getString("NET_RETURN_DATA_ERROR"); | |||
| break; | |||
| case -2147483626: | |||
| msg = Res.string().getBundle().getString("NET_INSUFFICIENT_BUFFER"); | |||
| break; | |||
| case -2147483625: | |||
| msg = Res.string().getBundle().getString("NET_NOT_SUPPORTED"); | |||
| break; | |||
| case -2147483624: | |||
| msg = Res.string().getBundle().getString("NET_NO_RECORD_FOUND"); | |||
| break; | |||
| case -2147483623: | |||
| msg = Res.string().getBundle().getString("NET_NOT_AUTHORIZED"); | |||
| break; | |||
| case -2147483622: | |||
| msg = Res.string().getBundle().getString("NET_NOT_NOW"); | |||
| break; | |||
| case -2147483621: | |||
| msg = Res.string().getBundle().getString("NET_NO_TALK_CHANNEL"); | |||
| break; | |||
| case -2147483620: | |||
| msg = Res.string().getBundle().getString("NET_NO_AUDIO"); | |||
| break; | |||
| case -2147483619: | |||
| msg = Res.string().getBundle().getString("NET_NO_INIT"); | |||
| break; | |||
| case -2147483618: | |||
| msg = Res.string().getBundle().getString("NET_DOWNLOAD_END"); | |||
| break; | |||
| case -2147483617: | |||
| msg = Res.string().getBundle().getString("NET_EMPTY_LIST"); | |||
| break; | |||
| case -2147483616: | |||
| msg = Res.string().getBundle().getString("NET_ERROR_GETCFG_SYSATTR"); | |||
| break; | |||
| case -2147483615: | |||
| msg = Res.string().getBundle().getString("NET_ERROR_GETCFG_SERIAL"); | |||
| break; | |||
| case -2147483614: | |||
| msg = Res.string().getBundle().getString("NET_ERROR_GETCFG_GENERAL"); | |||
| break; | |||
| case -2147483613: | |||
| msg = Res.string().getBundle().getString("NET_ERROR_GETCFG_DSPCAP"); | |||
| break; | |||
| case -2147483612: | |||
| msg = Res.string().getBundle().getString("NET_ERROR_GETCFG_NETCFG"); | |||
| break; | |||
| case -2147483611: | |||
| msg = Res.string().getBundle().getString("NET_ERROR_GETCFG_CHANNAME"); | |||
| break; | |||
| case -2147483610: | |||
| msg = Res.string().getBundle().getString("NET_ERROR_GETCFG_VIDEO"); | |||
| break; | |||
| case -2147483609: | |||
| msg = Res.string().getBundle().getString("NET_ERROR_GETCFG_RECORD"); | |||
| break; | |||
| case -2147483608: | |||
| msg = Res.string().getBundle().getString("NET_ERROR_GETCFG_PRONAME"); | |||
| break; | |||
| case -2147483607: | |||
| msg = Res.string().getBundle().getString("NET_ERROR_GETCFG_FUNCNAME"); | |||
| break; | |||
| case -2147483606: | |||
| msg = Res.string().getBundle().getString("NET_ERROR_GETCFG_485DECODER"); | |||
| break; | |||
| case -2147483605: | |||
| msg = Res.string().getBundle().getString("NET_ERROR_GETCFG_232COM"); | |||
| break; | |||
| case -2147483604: | |||
| msg = Res.string().getBundle().getString("NET_ERROR_GETCFG_ALARMIN"); | |||
| break; | |||
| case -2147483603: | |||
| msg = Res.string().getBundle().getString("NET_ERROR_GETCFG_ALARMDET"); | |||
| break; | |||
| case -2147483602: | |||
| msg = Res.string().getBundle().getString("NET_ERROR_GETCFG_SYSTIME"); | |||
| break; | |||
| case -2147483601: | |||
| msg = Res.string().getBundle().getString("NET_ERROR_GETCFG_PREVIEW"); | |||
| break; | |||
| case -2147483600: | |||
| msg = Res.string().getBundle().getString("NET_ERROR_GETCFG_AUTOMT"); | |||
| break; | |||
| case -2147483599: | |||
| msg = Res.string().getBundle().getString("NET_ERROR_GETCFG_VIDEOMTRX"); | |||
| break; | |||
| case -2147483598: | |||
| msg = Res.string().getBundle().getString("NET_ERROR_GETCFG_COVER"); | |||
| break; | |||
| case -2147483597: | |||
| msg = Res.string().getBundle().getString("NET_ERROR_GETCFG_WATERMAKE"); | |||
| break; | |||
| case -2147483596: | |||
| msg = Res.string().getBundle().getString("NET_ERROR_GETCFG_MULTICAST"); | |||
| break; | |||
| case -2147483593: | |||
| msg = Res.string().getBundle().getString("NET_ERROR_SETCFG_GENERAL"); | |||
| break; | |||
| case -2147483592: | |||
| msg = Res.string().getBundle().getString("NET_ERROR_SETCFG_NETCFG"); | |||
| break; | |||
| case -2147483591: | |||
| msg = Res.string().getBundle().getString("NET_ERROR_SETCFG_CHANNAME"); | |||
| break; | |||
| case -2147483590: | |||
| msg = Res.string().getBundle().getString("NET_ERROR_SETCFG_VIDEO"); | |||
| break; | |||
| case -2147483589: | |||
| msg = Res.string().getBundle().getString("NET_ERROR_SETCFG_RECORD"); | |||
| break; | |||
| case -2147483588: | |||
| msg = Res.string().getBundle().getString("NET_ERROR_SETCFG_485DECODER"); | |||
| break; | |||
| case -2147483587: | |||
| msg = Res.string().getBundle().getString("NET_ERROR_SETCFG_232COM"); | |||
| break; | |||
| case -2147483586: | |||
| msg = Res.string().getBundle().getString("NET_ERROR_SETCFG_ALARMIN"); | |||
| break; | |||
| case -2147483585: | |||
| msg = Res.string().getBundle().getString("NET_ERROR_SETCFG_ALARMDET"); | |||
| break; | |||
| case -2147483584: | |||
| msg = Res.string().getBundle().getString("NET_ERROR_SETCFG_SYSTIME"); | |||
| break; | |||
| case -2147483583: | |||
| msg = Res.string().getBundle().getString("NET_ERROR_SETCFG_PREVIEW"); | |||
| break; | |||
| case -2147483582: | |||
| msg = Res.string().getBundle().getString("NET_ERROR_SETCFG_AUTOMT"); | |||
| break; | |||
| case -2147483581: | |||
| msg = Res.string().getBundle().getString("NET_ERROR_SETCFG_VIDEOMTRX"); | |||
| break; | |||
| case -2147483580: | |||
| msg = Res.string().getBundle().getString("NET_ERROR_SETCFG_COVER"); | |||
| break; | |||
| case -2147483579: | |||
| msg = Res.string().getBundle().getString("NET_ERROR_SETCFG_WATERMAKE"); | |||
| break; | |||
| case -2147483578: | |||
| msg = Res.string().getBundle().getString("NET_ERROR_SETCFG_WLAN"); | |||
| break; | |||
| case -2147483577: | |||
| msg = Res.string().getBundle().getString("NET_ERROR_SETCFG_WLANDEV"); | |||
| break; | |||
| case -2147483576: | |||
| msg = Res.string().getBundle().getString("NET_ERROR_SETCFG_REGISTER"); | |||
| break; | |||
| case -2147483575: | |||
| msg = Res.string().getBundle().getString("NET_ERROR_SETCFG_CAMERA"); | |||
| break; | |||
| case -2147483574: | |||
| msg = Res.string().getBundle().getString("NET_ERROR_SETCFG_INFRARED"); | |||
| break; | |||
| case -2147483573: | |||
| msg = Res.string().getBundle().getString("NET_ERROR_SETCFG_SOUNDALARM"); | |||
| break; | |||
| case -2147483572: | |||
| msg = Res.string().getBundle().getString("NET_ERROR_SETCFG_STORAGE"); | |||
| break; | |||
| case -2147483571: | |||
| msg = Res.string().getBundle().getString("NET_AUDIOENCODE_NOTINIT"); | |||
| break; | |||
| case -2147483570: | |||
| msg = Res.string().getBundle().getString("NET_DATA_TOOLONGH"); | |||
| break; | |||
| case -2147483569: | |||
| msg = Res.string().getBundle().getString("NET_UNSUPPORTED"); | |||
| break; | |||
| case -2147483568: | |||
| msg = Res.string().getBundle().getString("NET_DEVICE_BUSY"); | |||
| break; | |||
| case -2147483567: | |||
| msg = Res.string().getBundle().getString("NET_SERVER_STARTED"); | |||
| break; | |||
| case -2147483566: | |||
| msg = Res.string().getBundle().getString("NET_SERVER_STOPPED"); | |||
| break; | |||
| case -2147483565: | |||
| msg = Res.string().getBundle().getString("NET_LISTER_INCORRECT_SERIAL"); | |||
| break; | |||
| case -2147483564: | |||
| msg = Res.string().getBundle().getString("NET_QUERY_DISKINFO_FAILED"); | |||
| break; | |||
| case -2147483563: | |||
| msg = Res.string().getBundle().getString("NET_ERROR_GETCFG_SESSION"); | |||
| break; | |||
| case -2147483562: | |||
| msg = Res.string().getBundle().getString("NET_USER_FLASEPWD_TRYTIME"); | |||
| break; | |||
| case -2147483548: | |||
| msg = Res.string().getBundle().getString("NET_LOGIN_ERROR_PASSWORD"); | |||
| break; | |||
| case -2147483547: | |||
| msg = Res.string().getBundle().getString("NET_LOGIN_ERROR_USER"); | |||
| break; | |||
| case -2147483546: | |||
| msg = Res.string().getBundle().getString("NET_LOGIN_ERROR_TIMEOUT"); | |||
| break; | |||
| case -2147483545: | |||
| msg = Res.string().getBundle().getString("NET_LOGIN_ERROR_RELOGGIN"); | |||
| break; | |||
| case -2147483544: | |||
| msg = Res.string().getBundle().getString("NET_LOGIN_ERROR_LOCKED"); | |||
| break; | |||
| case -2147483543: | |||
| msg = Res.string().getBundle().getString("NET_LOGIN_ERROR_BLACKLIST"); | |||
| break; | |||
| case -2147483542: | |||
| msg = Res.string().getBundle().getString("NET_LOGIN_ERROR_BUSY"); | |||
| break; | |||
| case -2147483541: | |||
| msg = Res.string().getBundle().getString("NET_LOGIN_ERROR_CONNECT"); | |||
| break; | |||
| case -2147483540: | |||
| msg = Res.string().getBundle().getString("NET_LOGIN_ERROR_NETWORK"); | |||
| break; | |||
| case -2147483539: | |||
| msg = Res.string().getBundle().getString("NET_LOGIN_ERROR_SUBCONNECT"); | |||
| break; | |||
| case -2147483538: | |||
| msg = Res.string().getBundle().getString("NET_LOGIN_ERROR_MAXCONNECT"); | |||
| break; | |||
| case -2147483537: | |||
| msg = Res.string().getBundle().getString("NET_LOGIN_ERROR_PROTOCOL3_ONLY"); | |||
| break; | |||
| case -2147483536: | |||
| msg = Res.string().getBundle().getString("NET_LOGIN_ERROR_UKEY_LOST"); | |||
| break; | |||
| case -2147483535: | |||
| msg = Res.string().getBundle().getString("NET_LOGIN_ERROR_NO_AUTHORIZED"); | |||
| break; | |||
| case -2147483531: | |||
| msg = Res.string().getBundle().getString("NET_LOGIN_ERROR_USER_OR_PASSOWRD"); | |||
| break; | |||
| case -2147483530: | |||
| msg = Res.string().getBundle().getString("NET_LOGIN_ERROR_DEVICE_NOT_INIT"); | |||
| break; | |||
| case -2147483528: | |||
| msg = Res.string().getBundle().getString("NET_RENDER_SOUND_ON_ERROR"); | |||
| break; | |||
| case -2147483527: | |||
| msg = Res.string().getBundle().getString("NET_RENDER_SOUND_OFF_ERROR"); | |||
| break; | |||
| case -2147483526: | |||
| msg = Res.string().getBundle().getString("NET_RENDER_SET_VOLUME_ERROR"); | |||
| break; | |||
| case -2147483525: | |||
| msg = Res.string().getBundle().getString("NET_RENDER_ADJUST_ERROR"); | |||
| break; | |||
| case -2147483524: | |||
| msg = Res.string().getBundle().getString("NET_RENDER_PAUSE_ERROR"); | |||
| break; | |||
| case -2147483523: | |||
| msg = Res.string().getBundle().getString("NET_RENDER_SNAP_ERROR"); | |||
| break; | |||
| case -2147483522: | |||
| msg = Res.string().getBundle().getString("NET_RENDER_STEP_ERROR"); | |||
| break; | |||
| case -2147483521: | |||
| msg = Res.string().getBundle().getString("NET_RENDER_FRAMERATE_ERROR"); | |||
| break; | |||
| case -2147483520: | |||
| msg = Res.string().getBundle().getString("NET_RENDER_DISPLAYREGION_ERROR"); | |||
| break; | |||
| case -2147483519: | |||
| msg = Res.string().getBundle().getString("NET_RENDER_GETOSDTIME_ERROR"); | |||
| break; | |||
| case -2147483508: | |||
| msg = Res.string().getBundle().getString("NET_GROUP_EXIST"); | |||
| break; | |||
| case -2147483507: | |||
| msg = Res.string().getBundle().getString("NET_GROUP_NOEXIST"); | |||
| break; | |||
| case -2147483506: | |||
| msg = Res.string().getBundle().getString("NET_GROUP_RIGHTOVER"); | |||
| break; | |||
| case -2147483505: | |||
| msg = Res.string().getBundle().getString("NET_GROUP_HAVEUSER"); | |||
| break; | |||
| case -2147483504: | |||
| msg = Res.string().getBundle().getString("NET_GROUP_RIGHTUSE"); | |||
| break; | |||
| case -2147483503: | |||
| msg = Res.string().getBundle().getString("NET_GROUP_SAMENAME"); | |||
| break; | |||
| case -2147483502: | |||
| msg = Res.string().getBundle().getString("NET_USER_EXIST"); | |||
| break; | |||
| case -2147483501: | |||
| msg = Res.string().getBundle().getString("NET_USER_NOEXIST"); | |||
| break; | |||
| case -2147483500: | |||
| msg = Res.string().getBundle().getString("NET_USER_RIGHTOVER"); | |||
| break; | |||
| case -2147483499: | |||
| msg = Res.string().getBundle().getString("NET_USER_PWD"); | |||
| break; | |||
| case -2147483498: | |||
| msg = Res.string().getBundle().getString("NET_USER_FLASEPWD"); | |||
| break; | |||
| case -2147483497: | |||
| msg = Res.string().getBundle().getString("NET_USER_NOMATCHING"); | |||
| break; | |||
| case -2147483496: | |||
| msg = Res.string().getBundle().getString("NET_USER_INUSE"); | |||
| break; | |||
| case -2147483348: | |||
| msg = Res.string().getBundle().getString("NET_ERROR_GETCFG_ETHERNET"); | |||
| break; | |||
| case -2147483347: | |||
| msg = Res.string().getBundle().getString("NET_ERROR_GETCFG_WLAN"); | |||
| break; | |||
| case -2147483346: | |||
| msg = Res.string().getBundle().getString("NET_ERROR_GETCFG_WLANDEV"); | |||
| break; | |||
| case -2147483345: | |||
| msg = Res.string().getBundle().getString("NET_ERROR_GETCFG_REGISTER"); | |||
| break; | |||
| case -2147483344: | |||
| msg = Res.string().getBundle().getString("NET_ERROR_GETCFG_CAMERA"); | |||
| break; | |||
| case -2147483343: | |||
| msg = Res.string().getBundle().getString("NET_ERROR_GETCFG_INFRARED"); | |||
| break; | |||
| case -2147483342: | |||
| msg = Res.string().getBundle().getString("NET_ERROR_GETCFG_SOUNDALARM"); | |||
| break; | |||
| case -2147483341: | |||
| msg = Res.string().getBundle().getString("NET_ERROR_GETCFG_STORAGE"); | |||
| break; | |||
| case -2147483340: | |||
| msg = Res.string().getBundle().getString("NET_ERROR_GETCFG_MAIL"); | |||
| break; | |||
| case -2147483339: | |||
| msg = Res.string().getBundle().getString("NET_CONFIG_DEVBUSY"); | |||
| break; | |||
| case -2147483338: | |||
| msg = Res.string().getBundle().getString("NET_CONFIG_DATAILLEGAL"); | |||
| break; | |||
| case -2147483337: | |||
| msg = Res.string().getBundle().getString("NET_ERROR_GETCFG_DST"); | |||
| break; | |||
| case -2147483336: | |||
| msg = Res.string().getBundle().getString("NET_ERROR_SETCFG_DST"); | |||
| break; | |||
| case -2147483335: | |||
| msg = Res.string().getBundle().getString("NET_ERROR_GETCFG_VIDEO_OSD"); | |||
| break; | |||
| case -2147483334: | |||
| msg = Res.string().getBundle().getString("NET_ERROR_SETCFG_VIDEO_OSD"); | |||
| break; | |||
| case -2147483333: | |||
| msg = Res.string().getBundle().getString("NET_ERROR_GETCFG_GPRSCDMA"); | |||
| break; | |||
| case -2147483332: | |||
| msg = Res.string().getBundle().getString("NET_ERROR_SETCFG_GPRSCDMA"); | |||
| break; | |||
| case -2147483331: | |||
| msg = Res.string().getBundle().getString("NET_ERROR_GETCFG_IPFILTER"); | |||
| break; | |||
| case -2147483330: | |||
| msg = Res.string().getBundle().getString("NET_ERROR_SETCFG_IPFILTER"); | |||
| break; | |||
| case -2147483329: | |||
| msg = Res.string().getBundle().getString("NET_ERROR_GETCFG_TALKENCODE"); | |||
| break; | |||
| case -2147483328: | |||
| msg = Res.string().getBundle().getString("NET_ERROR_SETCFG_TALKENCODE"); | |||
| break; | |||
| case -2147483327: | |||
| msg = Res.string().getBundle().getString("NET_ERROR_GETCFG_RECORDLEN"); | |||
| break; | |||
| case -2147483326: | |||
| msg = Res.string().getBundle().getString("NET_ERROR_SETCFG_RECORDLEN"); | |||
| break; | |||
| case -2147483325: | |||
| msg = Res.string().getBundle().getString("NET_DONT_SUPPORT_SUBAREA"); | |||
| break; | |||
| case -2147483324: | |||
| msg = Res.string().getBundle().getString("NET_ERROR_GET_AUTOREGSERVER"); | |||
| break; | |||
| case -2147483323: | |||
| msg = Res.string().getBundle().getString("NET_ERROR_CONTROL_AUTOREGISTER"); | |||
| break; | |||
| case -2147483322: | |||
| msg = Res.string().getBundle().getString("NET_ERROR_DISCONNECT_AUTOREGISTER"); | |||
| break; | |||
| case -2147483321: | |||
| msg = Res.string().getBundle().getString("NET_ERROR_GETCFG_MMS"); | |||
| break; | |||
| case -2147483320: | |||
| msg = Res.string().getBundle().getString("NET_ERROR_SETCFG_MMS"); | |||
| break; | |||
| case -2147483319: | |||
| msg = Res.string().getBundle().getString("NET_ERROR_GETCFG_SMSACTIVATION"); | |||
| break; | |||
| case -2147483318: | |||
| msg = Res.string().getBundle().getString("NET_ERROR_SETCFG_SMSACTIVATION"); | |||
| break; | |||
| case -2147483317: | |||
| msg = Res.string().getBundle().getString("NET_ERROR_GETCFG_DIALINACTIVATION"); | |||
| break; | |||
| case -2147483316: | |||
| msg = Res.string().getBundle().getString("NET_ERROR_SETCFG_DIALINACTIVATION"); | |||
| break; | |||
| case -2147483315: | |||
| msg = Res.string().getBundle().getString("NET_ERROR_GETCFG_VIDEOOUT"); | |||
| break; | |||
| case -2147483314: | |||
| msg = Res.string().getBundle().getString("NET_ERROR_SETCFG_VIDEOOUT"); | |||
| break; | |||
| case -2147483313: | |||
| msg = Res.string().getBundle().getString("NET_ERROR_GETCFG_OSDENABLE"); | |||
| break; | |||
| case -2147483312: | |||
| msg = Res.string().getBundle().getString("NET_ERROR_SETCFG_OSDENABLE"); | |||
| break; | |||
| case -2147483311: | |||
| msg = Res.string().getBundle().getString("NET_ERROR_SETCFG_ENCODERINFO"); | |||
| break; | |||
| case -2147483310: | |||
| msg = Res.string().getBundle().getString("NET_ERROR_GETCFG_TVADJUST"); | |||
| break; | |||
| case -2147483309: | |||
| msg = Res.string().getBundle().getString("NET_ERROR_SETCFG_TVADJUST"); | |||
| break; | |||
| case -2147483308: | |||
| msg = Res.string().getBundle().getString("NET_ERROR_CONNECT_FAILED"); | |||
| break; | |||
| case -2147483307: | |||
| msg = Res.string().getBundle().getString("NET_ERROR_SETCFG_BURNFILE"); | |||
| break; | |||
| case -2147483306: | |||
| msg = Res.string().getBundle().getString("NET_ERROR_SNIFFER_GETCFG"); | |||
| break; | |||
| case -2147483305: | |||
| msg = Res.string().getBundle().getString("NET_ERROR_SNIFFER_SETCFG"); | |||
| break; | |||
| case -2147483304: | |||
| msg = Res.string().getBundle().getString("NET_ERROR_DOWNLOADRATE_GETCFG"); | |||
| break; | |||
| case -2147483303: | |||
| msg = Res.string().getBundle().getString("NET_ERROR_DOWNLOADRATE_SETCFG"); | |||
| break; | |||
| case -2147483302: | |||
| msg = Res.string().getBundle().getString("NET_ERROR_SEARCH_TRANSCOM"); | |||
| break; | |||
| case -2147483301: | |||
| msg = Res.string().getBundle().getString("NET_ERROR_GETCFG_POINT"); | |||
| break; | |||
| case -2147483300: | |||
| msg = Res.string().getBundle().getString("NET_ERROR_SETCFG_POINT"); | |||
| break; | |||
| case -2147483299: | |||
| msg = Res.string().getBundle().getString("NET_SDK_LOGOUT_ERROR"); | |||
| break; | |||
| case -2147483298: | |||
| msg = Res.string().getBundle().getString("NET_ERROR_GET_VEHICLE_CFG"); | |||
| break; | |||
| case -2147483297: | |||
| msg = Res.string().getBundle().getString("NET_ERROR_SET_VEHICLE_CFG"); | |||
| break; | |||
| case -2147483296: | |||
| msg = Res.string().getBundle().getString("NET_ERROR_GET_ATM_OVERLAY_CFG"); | |||
| break; | |||
| case -2147483295: | |||
| msg = Res.string().getBundle().getString("NET_ERROR_SET_ATM_OVERLAY_CFG"); | |||
| break; | |||
| case -2147483294: | |||
| msg = Res.string().getBundle().getString("NET_ERROR_GET_ATM_OVERLAY_ABILITY"); | |||
| break; | |||
| case -2147483293: | |||
| msg = Res.string().getBundle().getString("NET_ERROR_GET_DECODER_TOUR_CFG"); | |||
| break; | |||
| case -2147483292: | |||
| msg = Res.string().getBundle().getString("NET_ERROR_SET_DECODER_TOUR_CFG"); | |||
| break; | |||
| case -2147483291: | |||
| msg = Res.string().getBundle().getString("NET_ERROR_CTRL_DECODER_TOUR"); | |||
| break; | |||
| case -2147483290: | |||
| msg = Res.string().getBundle().getString("NET_GROUP_OVERSUPPORTNUM"); | |||
| break; | |||
| case -2147483289: | |||
| msg = Res.string().getBundle().getString("NET_USER_OVERSUPPORTNUM"); | |||
| break; | |||
| case -2147483280: | |||
| msg = Res.string().getBundle().getString("NET_ERROR_GET_SIP_CFG"); | |||
| break; | |||
| case -2147483279: | |||
| msg = Res.string().getBundle().getString("NET_ERROR_SET_SIP_CFG"); | |||
| break; | |||
| case -2147483278: | |||
| msg = Res.string().getBundle().getString("NET_ERROR_GET_SIP_ABILITY"); | |||
| break; | |||
| case -2147483277: | |||
| msg = Res.string().getBundle().getString("NET_ERROR_GET_WIFI_AP_CFG"); | |||
| break; | |||
| case -2147483276: | |||
| msg = Res.string().getBundle().getString("NET_ERROR_SET_WIFI_AP_CFG"); | |||
| break; | |||
| case -2147483275: | |||
| msg = Res.string().getBundle().getString("NET_ERROR_GET_DECODE_POLICY"); | |||
| break; | |||
| case -2147483274: | |||
| msg = Res.string().getBundle().getString("NET_ERROR_SET_DECODE_POLICY"); | |||
| break; | |||
| case -2147483273: | |||
| msg = Res.string().getBundle().getString("NET_ERROR_TALK_REJECT"); | |||
| break; | |||
| case -2147483272: | |||
| msg = Res.string().getBundle().getString("NET_ERROR_TALK_OPENED"); | |||
| break; | |||
| case -2147483271: | |||
| msg = Res.string().getBundle().getString("NET_ERROR_TALK_RESOURCE_CONFLICIT"); | |||
| break; | |||
| case -2147483270: | |||
| msg = Res.string().getBundle().getString("NET_ERROR_TALK_UNSUPPORTED_ENCODE"); | |||
| break; | |||
| case -2147483269: | |||
| msg = Res.string().getBundle().getString("NET_ERROR_TALK_RIGHTLESS"); | |||
| break; | |||
| case -2147483268: | |||
| msg = Res.string().getBundle().getString("NET_ERROR_TALK_FAILED"); | |||
| break; | |||
| case -2147483267: | |||
| msg = Res.string().getBundle().getString("NET_ERROR_GET_MACHINE_CFG"); | |||
| break; | |||
| case -2147483266: | |||
| msg = Res.string().getBundle().getString("NET_ERROR_SET_MACHINE_CFG"); | |||
| break; | |||
| case -2147483265: | |||
| msg = Res.string().getBundle().getString("NET_ERROR_GET_DATA_FAILED"); | |||
| break; | |||
| case -2147483264: | |||
| msg = Res.string().getBundle().getString("NET_ERROR_MAC_VALIDATE_FAILED"); | |||
| break; | |||
| case -2147483263: | |||
| msg = Res.string().getBundle().getString("NET_ERROR_GET_INSTANCE"); | |||
| break; | |||
| case -2147483262: | |||
| msg = Res.string().getBundle().getString("NET_ERROR_JSON_REQUEST"); | |||
| break; | |||
| case -2147483261: | |||
| msg = Res.string().getBundle().getString("NET_ERROR_JSON_RESPONSE"); | |||
| break; | |||
| case -2147483260: | |||
| msg = Res.string().getBundle().getString("NET_ERROR_VERSION_HIGHER"); | |||
| break; | |||
| case -2147483259: | |||
| msg = Res.string().getBundle().getString("NET_SPARE_NO_CAPACITY"); | |||
| break; | |||
| case -2147483258: | |||
| msg = Res.string().getBundle().getString("NET_ERROR_SOURCE_IN_USE"); | |||
| break; | |||
| case -2147483257: | |||
| msg = Res.string().getBundle().getString("NET_ERROR_REAVE"); | |||
| break; | |||
| case -2147483256: | |||
| msg = Res.string().getBundle().getString("NET_ERROR_NETFORBID"); | |||
| break; | |||
| case -2147483255: | |||
| msg = Res.string().getBundle().getString("NET_ERROR_GETCFG_MACFILTER"); | |||
| break; | |||
| case -2147483254: | |||
| msg = Res.string().getBundle().getString("NET_ERROR_SETCFG_MACFILTER"); | |||
| break; | |||
| case -2147483253: | |||
| msg = Res.string().getBundle().getString("NET_ERROR_GETCFG_IPMACFILTER"); | |||
| break; | |||
| case -2147483252: | |||
| msg = Res.string().getBundle().getString("NET_ERROR_SETCFG_IPMACFILTER"); | |||
| break; | |||
| case -2147483251: | |||
| msg = Res.string().getBundle().getString("NET_ERROR_OPERATION_OVERTIME"); | |||
| break; | |||
| case -2147483250: | |||
| msg = Res.string().getBundle().getString("NET_ERROR_SENIOR_VALIDATE_FAILED"); | |||
| break; | |||
| case -2147483249: | |||
| msg = Res.string().getBundle().getString("NET_ERROR_DEVICE_ID_NOT_EXIST"); | |||
| break; | |||
| case -2147483248: | |||
| msg = Res.string().getBundle().getString("NET_ERROR_UNSUPPORTED"); | |||
| break; | |||
| case -2147483247: | |||
| msg = Res.string().getBundle().getString("NET_ERROR_PROXY_DLLLOAD"); | |||
| break; | |||
| case -2147483246: | |||
| msg = Res.string().getBundle().getString("NET_ERROR_PROXY_ILLEGAL_PARAM"); | |||
| break; | |||
| case -2147483245: | |||
| msg = Res.string().getBundle().getString("NET_ERROR_PROXY_INVALID_HANDLE"); | |||
| break; | |||
| case -2147483244: | |||
| msg = Res.string().getBundle().getString("NET_ERROR_PROXY_LOGIN_DEVICE_ERROR"); | |||
| break; | |||
| case -2147483243: | |||
| msg = Res.string().getBundle().getString("NET_ERROR_PROXY_START_SERVER_ERROR"); | |||
| break; | |||
| case -2147483242: | |||
| msg = Res.string().getBundle().getString("NET_ERROR_SPEAK_FAILED"); | |||
| break; | |||
| case -2147483241: | |||
| msg = Res.string().getBundle().getString("NET_ERROR_NOT_SUPPORT_F6"); | |||
| break; | |||
| case -2147483240: | |||
| msg = Res.string().getBundle().getString("NET_ERROR_CD_UNREADY"); | |||
| break; | |||
| case -2147483239: | |||
| msg = Res.string().getBundle().getString("NET_ERROR_DIR_NOT_EXIST"); | |||
| break; | |||
| case -2147483238: | |||
| msg = Res.string().getBundle().getString("NET_ERROR_UNSUPPORTED_SPLIT_MODE"); | |||
| break; | |||
| case -2147483237: | |||
| msg = Res.string().getBundle().getString("NET_ERROR_OPEN_WND_PARAM"); | |||
| break; | |||
| case -2147483236: | |||
| msg = Res.string().getBundle().getString("NET_ERROR_LIMITED_WND_COUNT"); | |||
| break; | |||
| case -2147483235: | |||
| msg = Res.string().getBundle().getString("NET_ERROR_UNMATCHED_REQUEST"); | |||
| break; | |||
| case -2147483234: | |||
| msg = Res.string().getBundle().getString("NET_RENDER_ENABLELARGEPICADJUSTMENT_ERROR"); | |||
| break; | |||
| case -2147483233: | |||
| msg = Res.string().getBundle().getString("NET_ERROR_UPGRADE_FAILED"); | |||
| break; | |||
| case -2147483232: | |||
| msg = Res.string().getBundle().getString("NET_ERROR_NO_TARGET_DEVICE"); | |||
| break; | |||
| case -2147483231: | |||
| msg = Res.string().getBundle().getString("NET_ERROR_NO_VERIFY_DEVICE"); | |||
| break; | |||
| case -2147483230: | |||
| msg = Res.string().getBundle().getString("NET_ERROR_CASCADE_RIGHTLESS"); | |||
| break; | |||
| case -2147483229: | |||
| msg = Res.string().getBundle().getString("NET_ERROR_LOW_PRIORITY"); | |||
| break; | |||
| case -2147483228: | |||
| msg = Res.string().getBundle().getString("NET_ERROR_REMOTE_REQUEST_TIMEOUT"); | |||
| break; | |||
| case -2147483227: | |||
| msg = Res.string().getBundle().getString("NET_ERROR_LIMITED_INPUT_SOURCE"); | |||
| break; | |||
| case -2147483226: | |||
| msg = Res.string().getBundle().getString("NET_ERROR_SET_LOG_PRINT_INFO"); | |||
| break; | |||
| case -2147483225: | |||
| msg = Res.string().getBundle().getString("NET_ERROR_PARAM_DWSIZE_ERROR"); | |||
| break; | |||
| case -2147483224: | |||
| msg = Res.string().getBundle().getString("NET_ERROR_LIMITED_MONITORWALL_COUNT"); | |||
| break; | |||
| case -2147483223: | |||
| msg = Res.string().getBundle().getString("NET_ERROR_PART_PROCESS_FAILED"); | |||
| break; | |||
| case -2147483222: | |||
| msg = Res.string().getBundle().getString("NET_ERROR_TARGET_NOT_SUPPORT"); | |||
| break; | |||
| case -2147483138: | |||
| msg = Res.string().getBundle().getString("NET_ERROR_VISITE_FILE"); | |||
| break; | |||
| case -2147483137: | |||
| msg = Res.string().getBundle().getString("NET_ERROR_DEVICE_STATUS_BUSY"); | |||
| break; | |||
| case -2147483136: | |||
| msg = Res.string().getBundle().getString("NET_USER_PWD_NOT_AUTHORIZED"); | |||
| break; | |||
| case -2147483135: | |||
| msg = Res.string().getBundle().getString("NET_USER_PWD_NOT_STRONG"); | |||
| break; | |||
| case -2147483134: | |||
| msg = Res.string().getBundle().getString("NET_ERROR_NO_SUCH_CONFIG"); | |||
| break; | |||
| case -2147483133: | |||
| msg = Res.string().getBundle().getString("NET_ERROR_AUDIO_RECORD_FAILED"); | |||
| break; | |||
| case -2147483132: | |||
| msg = Res.string().getBundle().getString("NET_ERROR_SEND_DATA_FAILED"); | |||
| break; | |||
| case -2147483131: | |||
| msg = Res.string().getBundle().getString("NET_ERROR_OBSOLESCENT_INTERFACE"); | |||
| break; | |||
| case -2147483130: | |||
| msg = Res.string().getBundle().getString("NET_ERROR_INSUFFICIENT_INTERAL_BUF"); | |||
| break; | |||
| case -2147483129: | |||
| msg = Res.string().getBundle().getString("NET_ERROR_NEED_ENCRYPTION_PASSWORD"); | |||
| break; | |||
| case -2147483128: | |||
| msg = Res.string().getBundle().getString("NET_ERROR_NOSUPPORT_RECORD"); | |||
| break; | |||
| case -2147482638: | |||
| msg = Res.string().getBundle().getString("NET_ERROR_SERIALIZE_ERROR"); | |||
| break; | |||
| case -2147482637: | |||
| msg = Res.string().getBundle().getString("NET_ERROR_DESERIALIZE_ERROR"); | |||
| break; | |||
| case -2147482636: | |||
| msg = Res.string().getBundle().getString("NET_ERROR_LOWRATEWPAN_ID_EXISTED"); | |||
| break; | |||
| case -2147482635: | |||
| msg = Res.string().getBundle().getString("NET_ERROR_LOWRATEWPAN_ID_LIMIT"); | |||
| break; | |||
| case -2147482634: | |||
| msg = Res.string().getBundle().getString("NET_ERROR_LOWRATEWPAN_ID_ABNORMAL"); | |||
| break; | |||
| case -2147482633: | |||
| msg = Res.string().getBundle().getString("NET_ERROR_ENCRYPT"); | |||
| break; | |||
| case -2147482632: | |||
| msg = Res.string().getBundle().getString("NET_ERROR_PWD_ILLEGAL"); | |||
| break; | |||
| case -2147482631: | |||
| msg = Res.string().getBundle().getString("NET_ERROR_DEVICE_ALREADY_INIT"); | |||
| break; | |||
| case -2147482630: | |||
| msg = Res.string().getBundle().getString("NET_ERROR_SECURITY_CODE"); | |||
| break; | |||
| case -2147482629: | |||
| msg = Res.string().getBundle().getString("NET_ERROR_SECURITY_CODE_TIMEOUT"); | |||
| break; | |||
| case -2147482628: | |||
| msg = Res.string().getBundle().getString("NET_ERROR_GET_PWD_SPECI"); | |||
| break; | |||
| case -2147482627: | |||
| msg = Res.string().getBundle().getString("NET_ERROR_NO_AUTHORITY_OF_OPERATION"); | |||
| break; | |||
| case -2147482626: | |||
| msg = Res.string().getBundle().getString("NET_ERROR_DECRYPT"); | |||
| break; | |||
| case -2147482625: | |||
| msg = Res.string().getBundle().getString("NET_ERROR_2D_CODE"); | |||
| break; | |||
| case -2147482624: | |||
| msg = Res.string().getBundle().getString("NET_ERROR_INVALID_REQUEST"); | |||
| break; | |||
| case -2147482623: | |||
| msg = Res.string().getBundle().getString("NET_ERROR_PWD_RESET_DISABLE"); | |||
| break; | |||
| case -2147482622: | |||
| msg = Res.string().getBundle().getString("NET_ERROR_PLAY_PRIVATE_DATA"); | |||
| break; | |||
| case -2147482621: | |||
| msg = Res.string().getBundle().getString("NET_ERROR_ROBOT_OPERATE_FAILED"); | |||
| break; | |||
| case -2147482620: | |||
| msg = Res.string().getBundle().getString("NET_ERROR_PHOTOSIZE_EXCEEDSLIMIT"); | |||
| break; | |||
| case -2147482619: | |||
| msg = Res.string().getBundle().getString("NET_ERROR_USERID_INVALID"); | |||
| break; | |||
| case -2147482618: | |||
| msg = Res.string().getBundle().getString("NET_ERROR_EXTRACTFEATURE_FAILED"); | |||
| break; | |||
| case -2147482617: | |||
| msg = Res.string().getBundle().getString("NET_ERROR_PHOTO_EXIST"); | |||
| break; | |||
| case -2147482616: | |||
| msg = Res.string().getBundle().getString("NET_ERROR_PHOTO_OVERFLOW"); | |||
| break; | |||
| case -2147482615: | |||
| msg = Res.string().getBundle().getString("NET_ERROR_CHANNEL_ALREADY_OPENED"); | |||
| break; | |||
| case -2147482614: | |||
| msg = Res.string().getBundle().getString("NET_ERROR_CREATE_SOCKET"); | |||
| break; | |||
| case -2147482613: | |||
| msg = Res.string().getBundle().getString("NET_ERROR_CHANNEL_NUM"); | |||
| break; | |||
| case -2147482597: | |||
| msg = Res.string().getBundle().getString("NET_ERROR_FACE_RECOGNITION_SERVER_GROUP_ID_EXCEED"); | |||
| break; | |||
| case -1: | |||
| msg = Res.string().getBundle().getString("NET_ERROR"); | |||
| break; | |||
| case 0: | |||
| msg = Res.string().getBundle().getString("NET_ERROR"); | |||
| break; | |||
| default: | |||
| msg = Res.string().getBundle().getString("NET_ERROR"); | |||
| } | |||
| return msg; | |||
| } | |||
| } | |||
| @ -1,71 +0,0 @@ | |||
| package com.inspect.access.common; | |||
| import java.util.concurrent.ExecutorService; | |||
| import java.util.concurrent.Executors; | |||
| import java.util.concurrent.Future; | |||
| import java.util.concurrent.LinkedBlockingDeque; | |||
| public class EventTaskCommonQueue { | |||
| private final int MAX_TASK_COUNT = 10000; | |||
| private final LinkedBlockingDeque<EventTaskHandler> eventTasks = new LinkedBlockingDeque(10000); | |||
| private final int MAX_THREAD_COUNT = 10; | |||
| private ExecutorService eventQueueService = Executors.newFixedThreadPool(10); | |||
| private volatile boolean running = true; | |||
| private Future<?> eventQueueThreadStatus; | |||
| public void init() { | |||
| this.eventQueueThreadStatus = this.eventQueueService.submit(new Thread(new Runnable() { | |||
| public void run() { | |||
| while(EventTaskCommonQueue.this.running) { | |||
| try { | |||
| EventTaskHandler task = (EventTaskHandler)EventTaskCommonQueue.this.eventTasks.take(); | |||
| try { | |||
| task.eventTaskProcess(); | |||
| } catch (Exception var3) { | |||
| System.err.println("任务处理发生错误"); | |||
| } | |||
| } catch (InterruptedException var4) { | |||
| System.err.println("任务已意外停止"); | |||
| EventTaskCommonQueue.this.running = false; | |||
| } | |||
| } | |||
| } | |||
| }, "Event call back thread init")); | |||
| } | |||
| public boolean addEvent(EventTaskHandler eventHandler) { | |||
| if(!this.running) { | |||
| System.out.println("任务已停止"); | |||
| return false; | |||
| } else { | |||
| boolean success = this.eventTasks.offer(eventHandler); | |||
| if(!success) { | |||
| System.out.println("添加到事件队列失败"); | |||
| } | |||
| return success; | |||
| } | |||
| } | |||
| public void activeService() { | |||
| this.running = true; | |||
| if(this.eventQueueService.isShutdown()) { | |||
| this.eventQueueService = Executors.newFixedThreadPool(10); | |||
| this.init(); | |||
| System.out.println("线程池已关闭,重新初始化线程池及任务"); | |||
| } | |||
| if(this.eventQueueThreadStatus.isDone()) { | |||
| this.init(); | |||
| System.out.println("线程池任务结束,重新初始化任务"); | |||
| } | |||
| } | |||
| public void destroy() { | |||
| this.running = false; | |||
| this.eventQueueService.shutdownNow(); | |||
| } | |||
| } | |||
| @ -1,5 +0,0 @@ | |||
| package com.inspect.access.common; | |||
| public interface EventTaskHandler { | |||
| void eventTaskProcess(); | |||
| } | |||
| @ -1,29 +0,0 @@ | |||
| package com.inspect.access.common; | |||
| import java.awt.BorderLayout; | |||
| import java.awt.Component; | |||
| import java.awt.event.WindowAdapter; | |||
| import java.awt.event.WindowEvent; | |||
| import javax.swing.JDialog; | |||
| public class ListPictureShowDialog extends JDialog { | |||
| private static final long serialVersionUID = 1L; | |||
| public PaintPanel listPanel; | |||
| public ListPictureShowDialog() { | |||
| this.setLayout(new BorderLayout()); | |||
| this.setModal(true); | |||
| this.pack(); | |||
| this.setSize(800, 600); | |||
| this.setResizable(false); | |||
| this.setLocationRelativeTo((Component)null); | |||
| this.setDefaultCloseOperation(2); | |||
| this.listPanel = new PaintPanel(); | |||
| this.add(this.listPanel, "Center"); | |||
| this.addWindowListener(new WindowAdapter() { | |||
| public void windowClosing(WindowEvent e) { | |||
| ListPictureShowDialog.this.dispose(); | |||
| } | |||
| }); | |||
| } | |||
| } | |||
| @ -1,95 +0,0 @@ | |||
| package com.inspect.access.common; | |||
| import com.inspect.access.lib.ToolKits; | |||
| import java.awt.Component; | |||
| import java.awt.Dimension; | |||
| import java.awt.FlowLayout; | |||
| import java.awt.event.ActionListener; | |||
| import javax.swing.JButton; | |||
| import javax.swing.JLabel; | |||
| import javax.swing.JOptionPane; | |||
| import javax.swing.JPanel; | |||
| import javax.swing.JPasswordField; | |||
| import javax.swing.JTextField; | |||
| public class LoginPanel extends JPanel { | |||
| private static final long serialVersionUID = 1L; | |||
| private String s_strIp = "10.10.18.108"; | |||
| private Integer s_nPort = new Integer("37777"); | |||
| private String s_strUser = "admin"; | |||
| private String s_strPassword = "xg123456"; | |||
| public JLabel nameLabel; | |||
| public JLabel passwordLabel; | |||
| public JLabel ipLabel; | |||
| public JLabel portLabel; | |||
| public JTextField ipTextArea; | |||
| public JTextField portTextArea; | |||
| public JTextField nameTextArea; | |||
| public JPasswordField passwordTextArea; | |||
| public JButton loginBtn; | |||
| public JButton logoutBtn; | |||
| public LoginPanel() { | |||
| BorderEx.set(this, Res.string().getLogin(), 2); | |||
| this.setLayout(new FlowLayout()); | |||
| this.loginBtn = new JButton(Res.string().getLogin()); | |||
| this.logoutBtn = new JButton(Res.string().getLogout()); | |||
| this.ipLabel = new JLabel(Res.string().getDeviceIp()); | |||
| this.portLabel = new JLabel(" " + Res.string().getPort()); | |||
| this.nameLabel = new JLabel(" " + Res.string().getUserName()); | |||
| this.passwordLabel = new JLabel(" " + Res.string().getPassword()); | |||
| this.ipTextArea = new JTextField(this.s_strIp); | |||
| this.nameTextArea = new JTextField(this.s_strUser); | |||
| this.passwordTextArea = new JPasswordField(this.s_strPassword); | |||
| this.portTextArea = new JTextField(this.s_nPort.toString()); | |||
| this.add(this.ipLabel); | |||
| this.add(this.ipTextArea); | |||
| this.add(this.portLabel); | |||
| this.add(this.portTextArea); | |||
| this.add(this.nameLabel); | |||
| this.add(this.nameTextArea); | |||
| this.add(this.passwordLabel); | |||
| this.add(this.passwordTextArea); | |||
| this.add(this.loginBtn); | |||
| this.add(this.logoutBtn); | |||
| this.ipTextArea.setPreferredSize(new Dimension(90, 20)); | |||
| this.nameTextArea.setPreferredSize(new Dimension(90, 20)); | |||
| this.passwordTextArea.setPreferredSize(new Dimension(90, 20)); | |||
| this.portTextArea.setPreferredSize(new Dimension(90, 20)); | |||
| this.loginBtn.setPreferredSize(new Dimension(80, 20)); | |||
| this.logoutBtn.setPreferredSize(new Dimension(80, 20)); | |||
| ToolKits.limitTextFieldLength(this.portTextArea, 6); | |||
| this.logoutBtn.setEnabled(false); | |||
| } | |||
| public void addLoginBtnActionListener(ActionListener e) { | |||
| this.loginBtn.addActionListener(e); | |||
| } | |||
| public void addLogoutBtnActionListener(ActionListener e) { | |||
| this.logoutBtn.addActionListener(e); | |||
| } | |||
| public void setButtonEnable(boolean bln) { | |||
| this.loginBtn.setEnabled(!bln); | |||
| this.logoutBtn.setEnabled(bln); | |||
| } | |||
| public boolean checkLoginText() { | |||
| if(this.ipTextArea.getText().equals("")) { | |||
| JOptionPane.showMessageDialog((Component)null, Res.string().getInputDeviceIP(), Res.string().getErrorMessage(), 0); | |||
| return false; | |||
| } else if(this.portTextArea.getText().equals("")) { | |||
| JOptionPane.showMessageDialog((Component)null, Res.string().getInputDevicePort(), Res.string().getErrorMessage(), 0); | |||
| return false; | |||
| } else if(this.nameTextArea.getText().equals("")) { | |||
| JOptionPane.showMessageDialog((Component)null, Res.string().getInputUsername(), Res.string().getErrorMessage(), 0); | |||
| return false; | |||
| } else if((new String(this.passwordTextArea.getPassword())).equals("")) { | |||
| JOptionPane.showMessageDialog((Component)null, Res.string().getInputPassword(), Res.string().getErrorMessage(), 0); | |||
| return false; | |||
| } else { | |||
| return true; | |||
| } | |||
| } | |||
| } | |||
| @ -1,31 +0,0 @@ | |||
| package com.inspect.access.common; | |||
| import java.awt.Color; | |||
| import java.awt.Graphics; | |||
| import java.awt.Image; | |||
| import java.awt.LayoutManager; | |||
| import javax.swing.JPanel; | |||
| public class PaintPanel extends JPanel { | |||
| private static final long serialVersionUID = 1L; | |||
| private Image image; | |||
| public PaintPanel() { | |||
| this.setOpaque(true); | |||
| this.setLayout((LayoutManager)null); | |||
| this.setBackground(Color.GRAY); | |||
| this.setForeground(new Color(0, 0, 0)); | |||
| } | |||
| public void setImage(Image image) { | |||
| this.image = image; | |||
| } | |||
| protected void paintComponent(Graphics g) { | |||
| if(this.image != null) { | |||
| g.drawImage(this.image, 0, 0, this.getWidth(), this.getHeight(), this); | |||
| } | |||
| super.paintComponent(g); | |||
| } | |||
| } | |||
| @ -1,73 +0,0 @@ | |||
| package com.inspect.access.common; | |||
| import com.inspect.access.lib.ToolKits; | |||
| import java.io.File; | |||
| public class SavePath { | |||
| String s_captureSavePath; | |||
| String s_imageSavePath; | |||
| String s_recordFileSavePath; | |||
| private SavePath() { | |||
| this.s_captureSavePath = "./Capture/" + ToolKits.getDay() + "/"; | |||
| this.s_imageSavePath = "./Image/" + ToolKits.getDay() + "/"; | |||
| this.s_recordFileSavePath = "./RecordFile/" + ToolKits.getDay() + "/"; | |||
| } | |||
| public static SavePath getSavePath() { | |||
| return SavePath.SavePathHolder.instance; | |||
| } | |||
| public String getSaveCapturePath() { | |||
| File path1 = new File("./Capture/"); | |||
| if(!path1.exists()) { | |||
| path1.mkdir(); | |||
| } | |||
| File path2 = new File(this.s_captureSavePath); | |||
| if(!path2.exists()) { | |||
| path2.mkdir(); | |||
| } | |||
| String strFileName = path2.getAbsolutePath() + "/" + ToolKits.getDate() + ".jpg"; | |||
| return strFileName; | |||
| } | |||
| public String getSaveTrafficImagePath() { | |||
| File path1 = new File("./Image/"); | |||
| if(!path1.exists()) { | |||
| path1.mkdir(); | |||
| } | |||
| File path = new File(this.s_imageSavePath); | |||
| if(!path.exists()) { | |||
| path.mkdir(); | |||
| } | |||
| return this.s_imageSavePath; | |||
| } | |||
| public String getSaveRecordFilePath() { | |||
| File path1 = new File("./RecordFile/"); | |||
| if(!path1.exists()) { | |||
| path1.mkdir(); | |||
| } | |||
| File path2 = new File(this.s_recordFileSavePath); | |||
| if(!path2.exists()) { | |||
| path2.mkdir(); | |||
| } | |||
| String SavedFileName = this.s_recordFileSavePath + ToolKits.getDate() + ".dav"; | |||
| return SavedFileName; | |||
| } | |||
| // $FF: synthetic method | |||
| SavePath(Object x0) { | |||
| this(); | |||
| } | |||
| private static class SavePathHolder { | |||
| private static SavePath instance = new SavePath(); | |||
| } | |||
| } | |||
| @ -1,25 +0,0 @@ | |||
| package com.inspect.access.common; | |||
| public class TimeUtil { | |||
| public static String second2Time(Long second) { | |||
| if(second != null && second.longValue() >= 0L) { | |||
| long h = second.longValue() / 3600L; | |||
| long m = second.longValue() % 3600L / 60L; | |||
| long s = second.longValue() % 60L; | |||
| String str = ""; | |||
| if(h > 0L) { | |||
| str = (h < 10L?"0" + h:Long.valueOf(h)) + ":"; | |||
| } | |||
| str = str + (m < 10L?"0" + m:Long.valueOf(m)) + ":"; | |||
| str = str + (s < 10L?"0" + s:Long.valueOf(s)); | |||
| return str; | |||
| } else { | |||
| return "00:00"; | |||
| } | |||
| } | |||
| public static int second2Minute(Long second) { | |||
| return second != null && second.longValue() >= 0L?(int)(second.longValue() / 60L):0; | |||
| } | |||
| } | |||
| @ -1,5 +0,0 @@ | |||
| package com.inspect.access.common; | |||
| public interface WindowCloseListener { | |||
| void windowClosing(); | |||
| } | |||
| @ -1,14 +0,0 @@ | |||
| package com.inspect.access.connetion; | |||
| import com.inspect.access.module.dhModule; | |||
| import java.util.HashMap; | |||
| import java.util.Map; | |||
| public class SdkConnectCollection { | |||
| public static final Map<String, dhModule> poor = new HashMap<>(); | |||
| public static final String SDK_QUEUE_ = "SDK_QUEUE_"; | |||
| public static final String SDK_CONNECT_ = "SDK_CONNECT_"; | |||
| public static final String SDK_PROCESSING = "SDK_PROCESSING"; | |||
| public static final int SDK_PROCESSING_EXPIRE = 10; | |||
| } | |||
| @ -1,261 +0,0 @@ | |||
| package com.inspect.access.controller; | |||
| import com.inspect.access.base.model.InfraredModel; | |||
| import com.inspect.access.base.model.LoginModel; | |||
| import com.inspect.access.base.model.RecordCompleteModel; | |||
| import com.inspect.access.base.model.RuleCollectionModel; | |||
| import com.inspect.access.base.model.TemperPortModel; | |||
| import com.inspect.access.base.vo.DeviceStorageVo; | |||
| import com.inspect.access.base.vo.OnlineStatsVo; | |||
| import com.inspect.access.base.vo.RecordCompleteVo; | |||
| import com.inspect.access.base.vo.RecordCycleVo; | |||
| import com.inspect.access.common.TimeUtil; | |||
| import com.inspect.access.connetion.SdkConnectCollection; | |||
| import com.inspect.access.lib.NetSDKLib; | |||
| import com.inspect.access.lib.structure.NET_OUT_STORAGE_DEV_INFOS; | |||
| import com.inspect.access.lib.structure.NET_STORAGE_DEVICE; | |||
| import com.inspect.access.module.DeviceModule; | |||
| import com.inspect.access.module.LoginModule; | |||
| import com.inspect.access.module.ThermalCameraModule; | |||
| import com.inspect.access.module.dhModule; | |||
| import com.inspect.base.core.domain.Response; | |||
| import com.inspect.base.core.exception.ServiceException; | |||
| import com.inspect.base.core.utils.DateUtils; | |||
| import com.inspect.base.core.utils.StringUtils; | |||
| import com.inspect.base.redis.service.RedisService; | |||
| import java.util.ArrayList; | |||
| import java.util.Calendar; | |||
| import java.util.Date; | |||
| import java.util.HashMap; | |||
| import java.util.List; | |||
| import java.util.Map; | |||
| import java.util.UUID; | |||
| import java.util.concurrent.TimeUnit; | |||
| import java.util.concurrent.atomic.AtomicLong; | |||
| import java.util.stream.Collectors; | |||
| import org.slf4j.Logger; | |||
| import org.slf4j.LoggerFactory; | |||
| import org.springframework.web.bind.annotation.GetMapping; | |||
| import org.springframework.web.bind.annotation.PostMapping; | |||
| import org.springframework.web.bind.annotation.RequestBody; | |||
| import org.springframework.web.bind.annotation.RequestMapping; | |||
| import org.springframework.web.bind.annotation.RestController; | |||
| @RestController | |||
| @RequestMapping({"/access"}) | |||
| public class AccessController { | |||
| private final Logger log = LoggerFactory.getLogger(AccessController.class); | |||
| private final RedisService redisService; | |||
| private final String REDIS_ACCESS_INFRARED_RESULT = "REDIS_ACCESS_INFRARED_RESULT"; | |||
| public AccessController(RedisService redisService) { | |||
| this.redisService = redisService; | |||
| } | |||
| @PostMapping({"query_temper_point"}) | |||
| public Response<Float> queryTemperPoint(@RequestBody TemperPortModel temperPortModel) { | |||
| List<NetSDKLib.NET_RADIOMETRYINFO> list = new ArrayList<>(); | |||
| this.connect(temperPortModel, (module) -> { | |||
| NetSDKLib.NET_RADIOMETRYINFO net_radiometryinfo | |||
| = ThermalCameraModule.queryPointTemper( | |||
| temperPortModel.getnChannel(), | |||
| temperPortModel.getX(), | |||
| temperPortModel.getY()); | |||
| list.add(net_radiometryinfo); | |||
| }); | |||
| return Response.ok(list.get(0).fTemperMax); | |||
| } | |||
| @PostMapping({"set_measure_param"}) | |||
| public Response setMeasureParam(@RequestBody RuleCollectionModel ruleCollectionModel) { | |||
| this.connect(ruleCollectionModel, (module) -> { | |||
| ThermalCameraModule.saveRules(ruleCollectionModel.getRuleModels()); | |||
| }); | |||
| return Response.ok(); | |||
| } | |||
| @PostMapping({"remove_measure_param"}) | |||
| public Response removeMeasureParam(@RequestBody RuleCollectionModel ruleCollectionModel) { | |||
| this.connect(ruleCollectionModel, (module) -> { | |||
| ThermalCameraModule.removeRulesByPresetIds(ruleCollectionModel.getRuleModels().stream().map((item) -> { | |||
| return item.nPresetId; | |||
| }).collect(Collectors.toList())); | |||
| }); | |||
| return Response.ok(); | |||
| } | |||
| @PostMapping({"online_stats"}) | |||
| public Response<List<OnlineStatsVo>> online(@RequestBody LoginModel loginModel) { | |||
| List<NetSDKLib.NET_OUT_GET_CAMERA_STATEINFO> list = new ArrayList<>(); | |||
| this.connect(loginModel, (module) -> { | |||
| NetSDKLib.NET_OUT_GET_CAMERA_STATEINFO info = DeviceModule.QueryCameraStatus(); | |||
| list.add(info); | |||
| }); | |||
| NetSDKLib.NET_CAMERA_STATE_INFO[] pCameraStateInfo = list.get(0).pCameraStateInfo; | |||
| List<OnlineStatsVo> onlineStatsVos = new ArrayList<>(); | |||
| for (NetSDKLib.NET_CAMERA_STATE_INFO info : pCameraStateInfo) { | |||
| if (onlineStatsVos.stream().noneMatch((item) -> { | |||
| return item.getChannelSerial() == info.nChannel; | |||
| })) { | |||
| onlineStatsVos.add(new OnlineStatsVo(info.nChannel, info.emConnectionState)); | |||
| } | |||
| } | |||
| return Response.ok(onlineStatsVos); | |||
| } | |||
| @PostMapping({"storage"}) | |||
| public Response<DeviceStorageVo> storage(@RequestBody LoginModel loginModel) { | |||
| List<NET_OUT_STORAGE_DEV_INFOS> list = new ArrayList<>(); | |||
| this.connect(loginModel, (module) -> { | |||
| NET_OUT_STORAGE_DEV_INFOS info = DeviceModule.QueryStorageInfo(); | |||
| list.add(info); | |||
| }); | |||
| NET_STORAGE_DEVICE stuStorageDevInfo = list.get(0).stuStorageDevInfos[0]; | |||
| return Response.ok(new DeviceStorageVo(stuStorageDevInfo.nTotalSpace, stuStorageDevInfo.nFreeSpace)); | |||
| } | |||
| @PostMapping({"record"}) | |||
| public Response<RecordCompleteVo> record(@RequestBody RecordCompleteModel recordModel) throws Exception { | |||
| log.info("[ACCESS] Record param: {}", recordModel); | |||
| List<NetSDKLib.NET_RECORDFILE_INFO> list = new ArrayList<>(); | |||
| List<RecordCycleVo> cycleList = new ArrayList<>(); | |||
| this.connect(recordModel, (module) -> { | |||
| List<NetSDKLib.NET_RECORDFILE_INFO> netRecordFileInfos = module.queryAllRecordFile(recordModel.getDate()); | |||
| list.addAll(netRecordFileInfos); | |||
| List<NetSDKLib.CFG_RECORD_INFO> cfgRecordInfos = module.queryAllRecordCycle(); | |||
| cycleList.addAll(cfgRecordInfos.stream().map((item) -> { | |||
| return new RecordCycleVo(item.nChannelID, item.nPreRecTime); | |||
| }).distinct().collect(Collectors.toList())); | |||
| }); | |||
| Calendar cal = Calendar.getInstance(); | |||
| Map<Integer, AtomicLong> channelAndDuration = new HashMap<>(); | |||
| for (NetSDKLib.NET_RECORDFILE_INFO info : list) { | |||
| if (!channelAndDuration.containsKey(info.ch)) { | |||
| channelAndDuration.put(info.ch, new AtomicLong(0L)); | |||
| } | |||
| Date endTime = DateUtils.dateTime(DateUtils.YYYYMMDDHHMMSS, info.endtime.toString()); | |||
| cal.setTime(endTime); | |||
| long end = cal.getTimeInMillis(); | |||
| Date startTime = DateUtils.dateTime(DateUtils.YYYYMMDDHHMMSS, info.starttime.toString()); | |||
| cal.setTime(startTime); | |||
| long start = cal.getTimeInMillis(); | |||
| long remain = end - start; | |||
| (channelAndDuration.get(info.ch)).addAndGet(remain); | |||
| } | |||
| RecordCompleteVo recordVo = new RecordCompleteVo(); | |||
| recordVo.setDuration(TimeUtil.second2Minute(channelAndDuration.get(0).get() / 1000L)); | |||
| recordVo.setComplete((int) Math.round((double) channelAndDuration.get(0).get() / 8.64E7D * 100.0D)); | |||
| recordVo.setCycle(cycleList.get(0).getCycle()); | |||
| return Response.ok(recordVo); | |||
| } | |||
| @PostMapping({"infrared"}) | |||
| public Response<String> infrared(@RequestBody InfraredModel infraredModel) { | |||
| (new Thread(() -> { | |||
| this.connect(infraredModel, (module) -> { | |||
| module.setInfraredModel(infraredModel); | |||
| module.getCbNotify().setFilePath(infraredModel.getInfraredFileNameGenerator().toStringNoSuffix()); | |||
| module.getCbNotify().setParseInfraredSuccess(false); | |||
| module.attach(1); | |||
| module.fetch(1); | |||
| int expire = 0; | |||
| while (!module.getCbNotify().isParseInfraredSuccess()) { | |||
| try { | |||
| Thread.sleep(1000L); | |||
| ++expire; | |||
| if (module.getCbNotify().isProcessFail()) { | |||
| log.warn("[ACCESS] Empty infra pic, retry it!"); | |||
| module.getCbNotify().setProcessFail(false); | |||
| module.fetch(1); | |||
| } | |||
| if (expire == 30) { | |||
| break; | |||
| } | |||
| } catch (InterruptedException var5) { | |||
| ; | |||
| } | |||
| } | |||
| log.info("[ACCESS] Infra pic, file path: {}", module.getCbNotify().getFilePath()); | |||
| redisService.setCacheObject(REDIS_ACCESS_INFRARED_RESULT, module.getCbNotify().getFilePath() + ".jpg"); | |||
| }); | |||
| })).start(); | |||
| return Response.ok(); | |||
| } | |||
| public void connect(LoginModel loginModel, AccessController.JoinCut joinCut) { | |||
| boolean exists = SdkConnectCollection.poor.containsKey(loginModel.getIp()); | |||
| String uuid = UUID.randomUUID().toString(); | |||
| String ip = loginModel.getIp(); | |||
| dhModule module; | |||
| if (exists) { | |||
| module = SdkConnectCollection.poor.get(ip); | |||
| } else { | |||
| long start = System.currentTimeMillis(); | |||
| module = new dhModule(); | |||
| LoginModule.init(module.disConnect, module.haveReConnect); | |||
| module.login(ip, loginModel.getPort(), loginModel.getUsername(), loginModel.getPassword()); | |||
| SdkConnectCollection.poor.put(ip, module); | |||
| log.info("[ACCESS] SDK connect cost: {}", (System.currentTimeMillis() - start)); | |||
| } | |||
| String queue = SdkConnectCollection.SDK_QUEUE_ + ip; | |||
| String connect = SdkConnectCollection.SDK_CONNECT_ + uuid; | |||
| redisService.redisTemplate.opsForList().rightPush(queue, uuid); | |||
| redisService.redisTemplate.opsForValue().set(connect, 1); | |||
| redisService.expire(connect, SdkConnectCollection.SDK_PROCESSING_EXPIRE, TimeUnit.SECONDS); | |||
| while (redisService.hasKey(connect)) { | |||
| if (redisService.hasKey(SdkConnectCollection.SDK_PROCESSING)) { | |||
| try { | |||
| Thread.sleep(1000L); | |||
| } catch (InterruptedException var13) { | |||
| ; | |||
| } | |||
| } else { | |||
| String key = (String) redisService.redisTemplate.opsForList().index(queue, 0L); | |||
| if (!StringUtils.isEmpty(key) && key.equals(uuid)) { | |||
| redisService.redisTemplate.opsForValue().set(SdkConnectCollection.SDK_PROCESSING, 1); | |||
| redisService.expire(SdkConnectCollection.SDK_PROCESSING, 10L, TimeUnit.SECONDS); | |||
| redisService.redisTemplate.opsForList().leftPop(queue); | |||
| long start = System.currentTimeMillis(); | |||
| joinCut.run(module); | |||
| log.info("[ACCESS] SDK cost: {}", (System.currentTimeMillis() - start)); | |||
| redisService.deleteObject(SdkConnectCollection.SDK_PROCESSING); | |||
| return; | |||
| } | |||
| try { | |||
| Thread.sleep(1000L); | |||
| } catch (InterruptedException var14) { | |||
| ; | |||
| } | |||
| } | |||
| } | |||
| redisService.redisTemplate.opsForList().remove(queue, 1L, uuid); | |||
| throw new ServiceException("SDK Conn Expire!"); | |||
| } | |||
| @GetMapping({"test"}) | |||
| public Response test() { | |||
| log.info("[ACCESS] test!!!"); | |||
| RecordCompleteModel recordCompleteModel = new RecordCompleteModel(); | |||
| recordCompleteModel.init("www.weaxin.com", '鎑', "admin", "xg123456"); | |||
| recordCompleteModel.setDate(new Date(System.currentTimeMillis() - 86400000L)); | |||
| return this.storage(recordCompleteModel); | |||
| } | |||
| public interface JoinCut { | |||
| void run(dhModule module); | |||
| } | |||
| } | |||
| @ -1,4 +0,0 @@ | |||
| package com.inspect.access.druid; | |||
| public class ConnectionPoor { | |||
| } | |||
| @ -1,125 +0,0 @@ | |||
| package com.inspect.access.lib; | |||
| import java.io.IOException; | |||
| import java.io.InputStream; | |||
| import java.util.ArrayList; | |||
| import java.util.Arrays; | |||
| import java.util.HashMap; | |||
| import java.util.Iterator; | |||
| import java.util.List; | |||
| import javax.xml.parsers.ParserConfigurationException; | |||
| import javax.xml.parsers.SAXParser; | |||
| import javax.xml.parsers.SAXParserFactory; | |||
| import org.xml.sax.Attributes; | |||
| import org.xml.sax.SAXException; | |||
| import org.xml.sax.helpers.DefaultHandler; | |||
| public class DynamicParseUtil { | |||
| private DynamicParseUtil.DynamicLibParseHandler handler; | |||
| private SAXParserFactory saxParserFactory; | |||
| private SAXParser saxParser; | |||
| public String compareLibName(String currentSystem, String libName) { | |||
| String dynamicLibName = libName; | |||
| List<String> libs = this.handler.getLibsBySystem(currentSystem); | |||
| if (currentSystem.toLowerCase().contains("win")) { | |||
| return this.findLibs(libs, libName); | |||
| } else { | |||
| if (libName.startsWith("com/netsdk/lib")) { | |||
| dynamicLibName = libName.substring(3); | |||
| } | |||
| return this.findLibs(libs, dynamicLibName); | |||
| } | |||
| } | |||
| private String findLibs(List<String> libs, String libName) { | |||
| Iterator<String> iterator = libs.iterator(); | |||
| String lib; | |||
| do { | |||
| if (!iterator.hasNext()) { | |||
| return ""; | |||
| } | |||
| lib = iterator.next(); | |||
| } while (!libName.equalsIgnoreCase(lib)); | |||
| return lib; | |||
| } | |||
| public List<String> getLibsSystem(String system) { | |||
| return this.handler.getLibsBySystem(system); | |||
| } | |||
| private DynamicParseUtil() throws ParserConfigurationException { | |||
| this.saxParserFactory = SAXParserFactory.newInstance(); | |||
| try { | |||
| this.saxParser = this.saxParserFactory.newSAXParser(); | |||
| this.handler = new DynamicParseUtil.DynamicLibParseHandler(); | |||
| } catch (Exception e) { | |||
| e.printStackTrace(); | |||
| } | |||
| } | |||
| public DynamicParseUtil(InputStream inputSteam) throws ParserConfigurationException, IOException, SAXException { | |||
| this(); | |||
| this.saxParser.parse(inputSteam, this.handler); | |||
| } | |||
| private class DynamicLibParseHandler extends DefaultHandler { | |||
| private HashMap<String, List<String>> dynamics; | |||
| private List<String> systems; | |||
| private String currentDynamicSystem; | |||
| private List<String> libs; | |||
| private DynamicLibParseHandler() { | |||
| this.dynamics = new HashMap<>(); | |||
| this.systems = Arrays.asList("win64", "win32", "linux64", "linux32", "mac64", "linuxARM"); | |||
| } | |||
| public List<String> getLibsBySystem(String system) { | |||
| return (List) this.dynamics.get(system); | |||
| } | |||
| public void startDocument() throws SAXException { | |||
| super.startDocument(); | |||
| } | |||
| public void startElement(String uri, String localName, String qName, Attributes attributes) throws SAXException { | |||
| super.startElement(uri, localName, qName, attributes); | |||
| if (this.systems.contains(qName)) { | |||
| this.currentDynamicSystem = qName; | |||
| if (this.libs == null) { | |||
| this.libs = new ArrayList<>(); | |||
| } | |||
| } | |||
| } | |||
| public void endElement(String uri, String localName, String qName) throws SAXException { | |||
| super.endElement(uri, localName, qName); | |||
| if (this.systems.contains(qName)) { | |||
| this.dynamics.put(this.currentDynamicSystem, this.libs); | |||
| this.libs = null; | |||
| } | |||
| } | |||
| public void characters(char[] ch, int start, int length) throws SAXException { | |||
| super.characters(ch, start, length); | |||
| String lib = new String(ch, start, length); | |||
| if (!lib.trim().isEmpty()) { | |||
| this.libs.add(lib); | |||
| } | |||
| } | |||
| // $FF: synthetic method | |||
| DynamicLibParseHandler(Object x1) { | |||
| this(); | |||
| } | |||
| } | |||
| } | |||
| @ -1,10 +0,0 @@ | |||
| package com.inspect.access.lib; | |||
| import com.sun.jna.Library; | |||
| import com.sun.jna.Native; | |||
| public interface ImageAlgLib extends Library { | |||
| ImageAlgLib IMAGE_ALG_INSTANCE = Native.load(LibraryLoad.getLoadLibrary("ImageAlg"), ImageAlgLib.class); | |||
| int drcTable(short[] pGrayImg, short nWidth, short nHeight, int flag, byte[] pYData, short[] params); | |||
| } | |||
| @ -1,471 +0,0 @@ | |||
| package com.inspect.access.lib; | |||
| public class LastError { | |||
| public static final int NET_NOERROR = 0; | |||
| public static final int NET_ERROR = -1; | |||
| public static final int NET_SYSTEM_ERROR = -2147483647; | |||
| public static final int NET_NETWORK_ERROR = -2147483646; | |||
| public static final int NET_DEV_VER_NOMATCH = -2147483645; | |||
| public static final int NET_INVALID_HANDLE = -2147483644; | |||
| public static final int NET_OPEN_CHANNEL_ERROR = -2147483643; | |||
| public static final int NET_CLOSE_CHANNEL_ERROR = -2147483642; | |||
| public static final int NET_ILLEGAL_PARAM = -2147483641; | |||
| public static final int NET_SDK_INIT_ERROR = -2147483640; | |||
| public static final int NET_SDK_UNINIT_ERROR = -2147483639; | |||
| public static final int NET_RENDER_OPEN_ERROR = -2147483638; | |||
| public static final int NET_DEC_OPEN_ERROR = -2147483637; | |||
| public static final int NET_DEC_CLOSE_ERROR = -2147483636; | |||
| public static final int NET_MULTIPLAY_NOCHANNEL = -2147483635; | |||
| public static final int NET_TALK_INIT_ERROR = -2147483634; | |||
| public static final int NET_TALK_NOT_INIT = -2147483633; | |||
| public static final int NET_TALK_SENDDATA_ERROR = -2147483632; | |||
| public static final int NET_REAL_ALREADY_SAVING = -2147483631; | |||
| public static final int NET_NOT_SAVING = -2147483630; | |||
| public static final int NET_OPEN_FILE_ERROR = -2147483629; | |||
| public static final int NET_PTZ_SET_TIMER_ERROR = -2147483628; | |||
| public static final int NET_RETURN_DATA_ERROR = -2147483627; | |||
| public static final int NET_INSUFFICIENT_BUFFER = -2147483626; | |||
| public static final int NET_NOT_SUPPORTED = -2147483625; | |||
| public static final int NET_NO_RECORD_FOUND = -2147483624; | |||
| public static final int NET_NOT_AUTHORIZED = -2147483623; | |||
| public static final int NET_NOT_NOW = -2147483622; | |||
| public static final int NET_NO_TALK_CHANNEL = -2147483621; | |||
| public static final int NET_NO_AUDIO = -2147483620; | |||
| public static final int NET_NO_INIT = -2147483619; | |||
| public static final int NET_DOWNLOAD_END = -2147483618; | |||
| public static final int NET_EMPTY_LIST = -2147483617; | |||
| public static final int NET_ERROR_GETCFG_SYSATTR = -2147483616; | |||
| public static final int NET_ERROR_GETCFG_SERIAL = -2147483615; | |||
| public static final int NET_ERROR_GETCFG_GENERAL = -2147483614; | |||
| public static final int NET_ERROR_GETCFG_DSPCAP = -2147483613; | |||
| public static final int NET_ERROR_GETCFG_NETCFG = -2147483612; | |||
| public static final int NET_ERROR_GETCFG_CHANNAME = -2147483611; | |||
| public static final int NET_ERROR_GETCFG_VIDEO = -2147483610; | |||
| public static final int NET_ERROR_GETCFG_RECORD = -2147483609; | |||
| public static final int NET_ERROR_GETCFG_PRONAME = -2147483608; | |||
| public static final int NET_ERROR_GETCFG_FUNCNAME = -2147483607; | |||
| public static final int NET_ERROR_GETCFG_485DECODER = -2147483606; | |||
| public static final int NET_ERROR_GETCFG_232COM = -2147483605; | |||
| public static final int NET_ERROR_GETCFG_ALARMIN = -2147483604; | |||
| public static final int NET_ERROR_GETCFG_ALARMDET = -2147483603; | |||
| public static final int NET_ERROR_GETCFG_SYSTIME = -2147483602; | |||
| public static final int NET_ERROR_GETCFG_PREVIEW = -2147483601; | |||
| public static final int NET_ERROR_GETCFG_AUTOMT = -2147483600; | |||
| public static final int NET_ERROR_GETCFG_VIDEOMTRX = -2147483599; | |||
| public static final int NET_ERROR_GETCFG_COVER = -2147483598; | |||
| public static final int NET_ERROR_GETCFG_WATERMAKE = -2147483597; | |||
| public static final int NET_ERROR_GETCFG_MULTICAST = -2147483596; | |||
| public static final int NET_ERROR_SETCFG_GENERAL = -2147483593; | |||
| public static final int NET_ERROR_SETCFG_NETCFG = -2147483592; | |||
| public static final int NET_ERROR_SETCFG_CHANNAME = -2147483591; | |||
| public static final int NET_ERROR_SETCFG_VIDEO = -2147483590; | |||
| public static final int NET_ERROR_SETCFG_RECORD = -2147483589; | |||
| public static final int NET_ERROR_SETCFG_485DECODER = -2147483588; | |||
| public static final int NET_ERROR_SETCFG_232COM = -2147483587; | |||
| public static final int NET_ERROR_SETCFG_ALARMIN = -2147483586; | |||
| public static final int NET_ERROR_SETCFG_ALARMDET = -2147483585; | |||
| public static final int NET_ERROR_SETCFG_SYSTIME = -2147483584; | |||
| public static final int NET_ERROR_SETCFG_PREVIEW = -2147483583; | |||
| public static final int NET_ERROR_SETCFG_AUTOMT = -2147483582; | |||
| public static final int NET_ERROR_SETCFG_VIDEOMTRX = -2147483581; | |||
| public static final int NET_ERROR_SETCFG_COVER = -2147483580; | |||
| public static final int NET_ERROR_SETCFG_WATERMAKE = -2147483579; | |||
| public static final int NET_ERROR_SETCFG_WLAN = -2147483578; | |||
| public static final int NET_ERROR_SETCFG_WLANDEV = -2147483577; | |||
| public static final int NET_ERROR_SETCFG_REGISTER = -2147483576; | |||
| public static final int NET_ERROR_SETCFG_CAMERA = -2147483575; | |||
| public static final int NET_ERROR_SETCFG_INFRARED = -2147483574; | |||
| public static final int NET_ERROR_SETCFG_SOUNDALARM = -2147483573; | |||
| public static final int NET_ERROR_SETCFG_STORAGE = -2147483572; | |||
| public static final int NET_AUDIOENCODE_NOTINIT = -2147483571; | |||
| public static final int NET_DATA_TOOLONGH = -2147483570; | |||
| public static final int NET_UNSUPPORTED = -2147483569; | |||
| public static final int NET_DEVICE_BUSY = -2147483568; | |||
| public static final int NET_SERVER_STARTED = -2147483567; | |||
| public static final int NET_SERVER_STOPPED = -2147483566; | |||
| public static final int NET_LISTER_INCORRECT_SERIAL = -2147483565; | |||
| public static final int NET_QUERY_DISKINFO_FAILED = -2147483564; | |||
| public static final int NET_ERROR_GETCFG_SESSION = -2147483563; | |||
| public static final int NET_USER_FLASEPWD_TRYTIME = -2147483562; | |||
| public static final int NET_LOGIN_ERROR_PASSWORD = -2147483548; | |||
| public static final int NET_LOGIN_ERROR_USER = -2147483547; | |||
| public static final int NET_LOGIN_ERROR_TIMEOUT = -2147483546; | |||
| public static final int NET_LOGIN_ERROR_RELOGGIN = -2147483545; | |||
| public static final int NET_LOGIN_ERROR_LOCKED = -2147483544; | |||
| public static final int NET_LOGIN_ERROR_BLACKLIST = -2147483543; | |||
| public static final int NET_LOGIN_ERROR_BUSY = -2147483542; | |||
| public static final int NET_LOGIN_ERROR_CONNECT = -2147483541; | |||
| public static final int NET_LOGIN_ERROR_NETWORK = -2147483540; | |||
| public static final int NET_LOGIN_ERROR_SUBCONNECT = -2147483539; | |||
| public static final int NET_LOGIN_ERROR_MAXCONNECT = -2147483538; | |||
| public static final int NET_LOGIN_ERROR_PROTOCOL3_ONLY = -2147483537; | |||
| public static final int NET_LOGIN_ERROR_UKEY_LOST = -2147483536; | |||
| public static final int NET_LOGIN_ERROR_NO_AUTHORIZED = -2147483535; | |||
| public static final int NET_LOGIN_ERROR_USER_OR_PASSOWRD = -2147483531; | |||
| public static final int NET_LOGIN_ERROR_DEVICE_NOT_INIT = -2147483530; | |||
| public static final int NET_RENDER_SOUND_ON_ERROR = -2147483528; | |||
| public static final int NET_RENDER_SOUND_OFF_ERROR = -2147483527; | |||
| public static final int NET_RENDER_SET_VOLUME_ERROR = -2147483526; | |||
| public static final int NET_RENDER_ADJUST_ERROR = -2147483525; | |||
| public static final int NET_RENDER_PAUSE_ERROR = -2147483524; | |||
| public static final int NET_RENDER_SNAP_ERROR = -2147483523; | |||
| public static final int NET_RENDER_STEP_ERROR = -2147483522; | |||
| public static final int NET_RENDER_FRAMERATE_ERROR = -2147483521; | |||
| public static final int NET_RENDER_DISPLAYREGION_ERROR = -2147483520; | |||
| public static final int NET_RENDER_GETOSDTIME_ERROR = -2147483519; | |||
| public static final int NET_GROUP_EXIST = -2147483508; | |||
| public static final int NET_GROUP_NOEXIST = -2147483507; | |||
| public static final int NET_GROUP_RIGHTOVER = -2147483506; | |||
| public static final int NET_GROUP_HAVEUSER = -2147483505; | |||
| public static final int NET_GROUP_RIGHTUSE = -2147483504; | |||
| public static final int NET_GROUP_SAMENAME = -2147483503; | |||
| public static final int NET_USER_EXIST = -2147483502; | |||
| public static final int NET_USER_NOEXIST = -2147483501; | |||
| public static final int NET_USER_RIGHTOVER = -2147483500; | |||
| public static final int NET_USER_PWD = -2147483499; | |||
| public static final int NET_USER_FLASEPWD = -2147483498; | |||
| public static final int NET_USER_NOMATCHING = -2147483497; | |||
| public static final int NET_USER_INUSE = -2147483496; | |||
| public static final int NET_ERROR_GETCFG_ETHERNET = -2147483348; | |||
| public static final int NET_ERROR_GETCFG_WLAN = -2147483347; | |||
| public static final int NET_ERROR_GETCFG_WLANDEV = -2147483346; | |||
| public static final int NET_ERROR_GETCFG_REGISTER = -2147483345; | |||
| public static final int NET_ERROR_GETCFG_CAMERA = -2147483344; | |||
| public static final int NET_ERROR_GETCFG_INFRARED = -2147483343; | |||
| public static final int NET_ERROR_GETCFG_SOUNDALARM = -2147483342; | |||
| public static final int NET_ERROR_GETCFG_STORAGE = -2147483341; | |||
| public static final int NET_ERROR_GETCFG_MAIL = -2147483340; | |||
| public static final int NET_CONFIG_DEVBUSY = -2147483339; | |||
| public static final int NET_CONFIG_DATAILLEGAL = -2147483338; | |||
| public static final int NET_ERROR_GETCFG_DST = -2147483337; | |||
| public static final int NET_ERROR_SETCFG_DST = -2147483336; | |||
| public static final int NET_ERROR_GETCFG_VIDEO_OSD = -2147483335; | |||
| public static final int NET_ERROR_SETCFG_VIDEO_OSD = -2147483334; | |||
| public static final int NET_ERROR_GETCFG_GPRSCDMA = -2147483333; | |||
| public static final int NET_ERROR_SETCFG_GPRSCDMA = -2147483332; | |||
| public static final int NET_ERROR_GETCFG_IPFILTER = -2147483331; | |||
| public static final int NET_ERROR_SETCFG_IPFILTER = -2147483330; | |||
| public static final int NET_ERROR_GETCFG_TALKENCODE = -2147483329; | |||
| public static final int NET_ERROR_SETCFG_TALKENCODE = -2147483328; | |||
| public static final int NET_ERROR_GETCFG_RECORDLEN = -2147483327; | |||
| public static final int NET_ERROR_SETCFG_RECORDLEN = -2147483326; | |||
| public static final int NET_DONT_SUPPORT_SUBAREA = -2147483325; | |||
| public static final int NET_ERROR_GET_AUTOREGSERVER = -2147483324; | |||
| public static final int NET_ERROR_CONTROL_AUTOREGISTER = -2147483323; | |||
| public static final int NET_ERROR_DISCONNECT_AUTOREGISTER = -2147483322; | |||
| public static final int NET_ERROR_GETCFG_MMS = -2147483321; | |||
| public static final int NET_ERROR_SETCFG_MMS = -2147483320; | |||
| public static final int NET_ERROR_GETCFG_SMSACTIVATION = -2147483319; | |||
| public static final int NET_ERROR_SETCFG_SMSACTIVATION = -2147483318; | |||
| public static final int NET_ERROR_GETCFG_DIALINACTIVATION = -2147483317; | |||
| public static final int NET_ERROR_SETCFG_DIALINACTIVATION = -2147483316; | |||
| public static final int NET_ERROR_GETCFG_VIDEOOUT = -2147483315; | |||
| public static final int NET_ERROR_SETCFG_VIDEOOUT = -2147483314; | |||
| public static final int NET_ERROR_GETCFG_OSDENABLE = -2147483313; | |||
| public static final int NET_ERROR_SETCFG_OSDENABLE = -2147483312; | |||
| public static final int NET_ERROR_SETCFG_ENCODERINFO = -2147483311; | |||
| public static final int NET_ERROR_GETCFG_TVADJUST = -2147483310; | |||
| public static final int NET_ERROR_SETCFG_TVADJUST = -2147483309; | |||
| public static final int NET_ERROR_CONNECT_FAILED = -2147483308; | |||
| public static final int NET_ERROR_SETCFG_BURNFILE = -2147483307; | |||
| public static final int NET_ERROR_SNIFFER_GETCFG = -2147483306; | |||
| public static final int NET_ERROR_SNIFFER_SETCFG = -2147483305; | |||
| public static final int NET_ERROR_DOWNLOADRATE_GETCFG = -2147483304; | |||
| public static final int NET_ERROR_DOWNLOADRATE_SETCFG = -2147483303; | |||
| public static final int NET_ERROR_SEARCH_TRANSCOM = -2147483302; | |||
| public static final int NET_ERROR_GETCFG_POINT = -2147483301; | |||
| public static final int NET_ERROR_SETCFG_POINT = -2147483300; | |||
| public static final int NET_SDK_LOGOUT_ERROR = -2147483299; | |||
| public static final int NET_ERROR_GET_VEHICLE_CFG = -2147483298; | |||
| public static final int NET_ERROR_SET_VEHICLE_CFG = -2147483297; | |||
| public static final int NET_ERROR_GET_ATM_OVERLAY_CFG = -2147483296; | |||
| public static final int NET_ERROR_SET_ATM_OVERLAY_CFG = -2147483295; | |||
| public static final int NET_ERROR_GET_ATM_OVERLAY_ABILITY = -2147483294; | |||
| public static final int NET_ERROR_GET_DECODER_TOUR_CFG = -2147483293; | |||
| public static final int NET_ERROR_SET_DECODER_TOUR_CFG = -2147483292; | |||
| public static final int NET_ERROR_CTRL_DECODER_TOUR = -2147483291; | |||
| public static final int NET_GROUP_OVERSUPPORTNUM = -2147483290; | |||
| public static final int NET_USER_OVERSUPPORTNUM = -2147483289; | |||
| public static final int NET_ERROR_GET_SIP_CFG = -2147483280; | |||
| public static final int NET_ERROR_SET_SIP_CFG = -2147483279; | |||
| public static final int NET_ERROR_GET_SIP_ABILITY = -2147483278; | |||
| public static final int NET_ERROR_GET_WIFI_AP_CFG = -2147483277; | |||
| public static final int NET_ERROR_SET_WIFI_AP_CFG = -2147483276; | |||
| public static final int NET_ERROR_GET_DECODE_POLICY = -2147483275; | |||
| public static final int NET_ERROR_SET_DECODE_POLICY = -2147483274; | |||
| public static final int NET_ERROR_TALK_REJECT = -2147483273; | |||
| public static final int NET_ERROR_TALK_OPENED = -2147483272; | |||
| public static final int NET_ERROR_TALK_RESOURCE_CONFLICIT = -2147483271; | |||
| public static final int NET_ERROR_TALK_UNSUPPORTED_ENCODE = -2147483270; | |||
| public static final int NET_ERROR_TALK_RIGHTLESS = -2147483269; | |||
| public static final int NET_ERROR_TALK_FAILED = -2147483268; | |||
| public static final int NET_ERROR_GET_MACHINE_CFG = -2147483267; | |||
| public static final int NET_ERROR_SET_MACHINE_CFG = -2147483266; | |||
| public static final int NET_ERROR_GET_DATA_FAILED = -2147483265; | |||
| public static final int NET_ERROR_MAC_VALIDATE_FAILED = -2147483264; | |||
| public static final int NET_ERROR_GET_INSTANCE = -2147483263; | |||
| public static final int NET_ERROR_JSON_REQUEST = -2147483262; | |||
| public static final int NET_ERROR_JSON_RESPONSE = -2147483261; | |||
| public static final int NET_ERROR_VERSION_HIGHER = -2147483260; | |||
| public static final int NET_SPARE_NO_CAPACITY = -2147483259; | |||
| public static final int NET_ERROR_SOURCE_IN_USE = -2147483258; | |||
| public static final int NET_ERROR_REAVE = -2147483257; | |||
| public static final int NET_ERROR_NETFORBID = -2147483256; | |||
| public static final int NET_ERROR_GETCFG_MACFILTER = -2147483255; | |||
| public static final int NET_ERROR_SETCFG_MACFILTER = -2147483254; | |||
| public static final int NET_ERROR_GETCFG_IPMACFILTER = -2147483253; | |||
| public static final int NET_ERROR_SETCFG_IPMACFILTER = -2147483252; | |||
| public static final int NET_ERROR_OPERATION_OVERTIME = -2147483251; | |||
| public static final int NET_ERROR_SENIOR_VALIDATE_FAILED = -2147483250; | |||
| public static final int NET_ERROR_DEVICE_ID_NOT_EXIST = -2147483249; | |||
| public static final int NET_ERROR_UNSUPPORTED = -2147483248; | |||
| public static final int NET_ERROR_PROXY_DLLLOAD = -2147483247; | |||
| public static final int NET_ERROR_PROXY_ILLEGAL_PARAM = -2147483246; | |||
| public static final int NET_ERROR_PROXY_INVALID_HANDLE = -2147483245; | |||
| public static final int NET_ERROR_PROXY_LOGIN_DEVICE_ERROR = -2147483244; | |||
| public static final int NET_ERROR_PROXY_START_SERVER_ERROR = -2147483243; | |||
| public static final int NET_ERROR_SPEAK_FAILED = -2147483242; | |||
| public static final int NET_ERROR_NOT_SUPPORT_F6 = -2147483241; | |||
| public static final int NET_ERROR_CD_UNREADY = -2147483240; | |||
| public static final int NET_ERROR_DIR_NOT_EXIST = -2147483239; | |||
| public static final int NET_ERROR_UNSUPPORTED_SPLIT_MODE = -2147483238; | |||
| public static final int NET_ERROR_OPEN_WND_PARAM = -2147483237; | |||
| public static final int NET_ERROR_LIMITED_WND_COUNT = -2147483236; | |||
| public static final int NET_ERROR_UNMATCHED_REQUEST = -2147483235; | |||
| public static final int NET_RENDER_ENABLELARGEPICADJUSTMENT_ERROR = -2147483234; | |||
| public static final int NET_ERROR_UPGRADE_FAILED = -2147483233; | |||
| public static final int NET_ERROR_NO_TARGET_DEVICE = -2147483232; | |||
| public static final int NET_ERROR_NO_VERIFY_DEVICE = -2147483231; | |||
| public static final int NET_ERROR_CASCADE_RIGHTLESS = -2147483230; | |||
| public static final int NET_ERROR_LOW_PRIORITY = -2147483229; | |||
| public static final int NET_ERROR_REMOTE_REQUEST_TIMEOUT = -2147483228; | |||
| public static final int NET_ERROR_LIMITED_INPUT_SOURCE = -2147483227; | |||
| public static final int NET_ERROR_SET_LOG_PRINT_INFO = -2147483226; | |||
| public static final int NET_ERROR_PARAM_DWSIZE_ERROR = -2147483225; | |||
| public static final int NET_ERROR_LIMITED_MONITORWALL_COUNT = -2147483224; | |||
| public static final int NET_ERROR_PART_PROCESS_FAILED = -2147483223; | |||
| public static final int NET_ERROR_TARGET_NOT_SUPPORT = -2147483222; | |||
| public static final int NET_ERROR_VISITE_FILE = -2147483138; | |||
| public static final int NET_ERROR_DEVICE_STATUS_BUSY = -2147483137; | |||
| public static final int NET_USER_PWD_NOT_AUTHORIZED = -2147483136; | |||
| public static final int NET_USER_PWD_NOT_STRONG = -2147483135; | |||
| public static final int NET_ERROR_NO_SUCH_CONFIG = -2147483134; | |||
| public static final int NET_ERROR_AUDIO_RECORD_FAILED = -2147483133; | |||
| public static final int NET_ERROR_SEND_DATA_FAILED = -2147483132; | |||
| public static final int NET_ERROR_OBSOLESCENT_INTERFACE = -2147483131; | |||
| public static final int NET_ERROR_INSUFFICIENT_INTERAL_BUF = -2147483130; | |||
| public static final int NET_ERROR_NEED_ENCRYPTION_PASSWORD = -2147483129; | |||
| public static final int NET_ERROR_NOSUPPORT_RECORD = -2147483128; | |||
| public static final int NET_ERROR_SERIALIZE_ERROR = -2147482638; | |||
| public static final int NET_ERROR_DESERIALIZE_ERROR = -2147482637; | |||
| public static final int NET_ERROR_LOWRATEWPAN_ID_EXISTED = -2147482636; | |||
| public static final int NET_ERROR_LOWRATEWPAN_ID_LIMIT = -2147482635; | |||
| public static final int NET_ERROR_LOWRATEWPAN_ID_ABNORMAL = -2147482634; | |||
| public static final int NET_ERROR_ENCRYPT = -2147482633; | |||
| public static final int NET_ERROR_PWD_ILLEGAL = -2147482632; | |||
| public static final int NET_ERROR_DEVICE_ALREADY_INIT = -2147482631; | |||
| public static final int NET_ERROR_SECURITY_CODE = -2147482630; | |||
| public static final int NET_ERROR_SECURITY_CODE_TIMEOUT = -2147482629; | |||
| public static final int NET_ERROR_GET_PWD_SPECI = -2147482628; | |||
| public static final int NET_ERROR_NO_AUTHORITY_OF_OPERATION = -2147482627; | |||
| public static final int NET_ERROR_DECRYPT = -2147482626; | |||
| public static final int NET_ERROR_2D_CODE = -2147482625; | |||
| public static final int NET_ERROR_INVALID_REQUEST = -2147482624; | |||
| public static final int NET_ERROR_PWD_RESET_DISABLE = -2147482623; | |||
| public static final int NET_ERROR_PLAY_PRIVATE_DATA = -2147482622; | |||
| public static final int NET_ERROR_ROBOT_OPERATE_FAILED = -2147482621; | |||
| public static final int NET_ERROR_PHOTOSIZE_EXCEEDSLIMIT = -2147482620; | |||
| public static final int NET_ERROR_USERID_INVALID = -2147482619; | |||
| public static final int NET_ERROR_EXTRACTFEATURE_FAILED = -2147482618; | |||
| public static final int NET_ERROR_PHOTO_EXIST = -2147482617; | |||
| public static final int NET_ERROR_PHOTO_OVERFLOW = -2147482616; | |||
| public static final int NET_ERROR_CHANNEL_ALREADY_OPENED = -2147482615; | |||
| public static final int NET_ERROR_CREATE_SOCKET = -2147482614; | |||
| public static final int NET_ERROR_CHANNEL_NUM = -2147482613; | |||
| public static final int NET_ERROR_PHOTO_FORMAT = -2147482612; | |||
| public static final int NET_ERROR_DIGITAL_CERTIFICATE_INTERNAL_ERROR = -2147482611; | |||
| public static final int NET_ERROR_DIGITAL_CERTIFICATE_GET_ID_FAILED = -2147482610; | |||
| public static final int NET_ERROR_DIGITAL_CERTIFICATE_IMPORT_ILLEGAL = -2147482609; | |||
| public static final int NET_ERROR_DIGITAL_CERTIFICATE_SN_ERROR = -2147482608; | |||
| public static final int NET_ERROR_DIGITAL_CERTIFICATE_COMMON_NAME_ILLEGAL = -2147482607; | |||
| public static final int NET_ERROR_DIGITAL_CERTIFICATE_NO_ROOT_CERT = -2147482606; | |||
| public static final int NET_ERROR_DIGITAL_CERTIFICATE_CERT_REVOKED = -2147482605; | |||
| public static final int NET_ERROR_DIGITAL_CERTIFICATE_CERT_INVALID = -2147482604; | |||
| public static final int NET_ERROR_DIGITAL_CERTIFICATE_CERT_ERROR_SIGN = -2147482603; | |||
| public static final int NET_ERROR_DIGITAL_CERTIFICATE_COUNTS_UPPER_LIMIT = -2147482602; | |||
| public static final int NET_ERROR_DIGITAL_CERTIFICATE_CERT_NO_EXIST = -2147482601; | |||
| public static final int NET_ERROR_FACE_RECOGNITION_SERVER_MULTI_APPEND_STOUP = -2147482599; | |||
| public static final int NET_ERROR_FACE_RECOGNITION_SERVER_MULTI_APPEND_ERROR = -2147482598; | |||
| public static final int NET_ERROR_FACE_RECOGNITION_SERVER_GROUP_ID_EXCEED = -2147482597; | |||
| public static final int NET_ERROR_FACE_RECOGNITION_SERVER_GROUP_ID_NOT_IN_REGISTER_GROUP = -2147482596; | |||
| public static final int NET_ERROR_FACE_RECOGNITION_SERVER_PICTURE_NOT_FOUND = -2147482595; | |||
| public static final int NET_ERROR_FACE_RECOGNITION_SERVER_GENERATE_GROUP_ID_FAILED = -2147482594; | |||
| public static final int NET_ERROR_FACE_RECOGNITION_SERVER_SET_CONFIG_FAILED = -2147482593; | |||
| public static final int NET_ERROR_FACE_RECOGNITION_SERVER_FILE_OPEN_FAILED = -2147482592; | |||
| public static final int NET_ERROR_FACE_RECOGNITION_SERVER_FILE_READ_FAILED = -2147482591; | |||
| public static final int NET_ERROR_FACE_RECOGNITION_SERVER_FILE_WRITE_FAILED = -2147482590; | |||
| public static final int NET_ERROR_FACE_RECOGNITION_SERVER_PICTURE_DPI_ERROR = -2147482589; | |||
| public static final int NET_ERROR_FACE_RECOGNITION_SERVER_PICTURE_PX_ERROR = -2147482588; | |||
| public static final int NET_ERROR_FACE_RECOGNITION_SERVER_PICTURE_SIZE_ERROR = -2147482587; | |||
| public static final int NET_ERROR_FACE_RECOGNITION_SERVER_DATA_BASE_ERROR = -2147482586; | |||
| public static final int NET_ERROR_FACE_RECOGNITION_SERVER_FACE_MAX_NUM = -2147482585; | |||
| public static final int NET_ERROR_FACE_RECOGNITION_SERVER_BIRTH_DAY_FORMAT_ERROR = -2147482584; | |||
| public static final int NET_ERROR_FACE_RECOGNITION_SERVER_UID_ERROR = -2147482583; | |||
| public static final int NET_ERROR_FACE_RECOGNITION_SERVER_TOKEN_ERROR = -2147482582; | |||
| public static final int NET_ERROR_FACE_RECOGNITION_SERVER_BEGIN_NUM_OVER_RUN = -2147482581; | |||
| public static final int NET_ERROR_FACE_RECOGNITION_SERVER_ABSTRACT_NUM_ZERO = -2147482580; | |||
| public static final int NET_ERROR_FACE_RECOGNITION_SERVER_ABSTRACT_INIT_ERROR = -2147482579; | |||
| public static final int NET_ERROR_FACE_RECOGNITION_SERVER_AUTO_ABSTRACT_STATE = -2147482578; | |||
| public static final int NET_ERROR_FACE_RECOGNITION_SERVER_ABSTRACT_STATE = -2147482577; | |||
| public static final int NET_ERROR_FACE_RECOGNITION_SERVER_IM_EX_STATE = -2147482576; | |||
| public static final int NET_ERROR_FACE_RECOGNITION_SERVER_PIC_WRITE_FAILED = -2147482575; | |||
| public static final int NET_ERROR_FACE_RECOGNITION_SERVER_GROUP_SPACE_EXCEED = -2147482574; | |||
| public static final int NET_ERROR_FACE_RECOGNITION_SERVER_GROUP_PIC_COUNT_EXCEED = -2147482573; | |||
| public static final int NET_ERROR_FACE_RECOGNITION_SERVER_GROUP_NOT_FOUND = -2147482572; | |||
| public static final int NET_ERROR_FACE_RECOGNITION_SERVER_FIND_RECORDS_ERROR = -2147482571; | |||
| public static final int NET_ERROR_FACE_RECOGNITION_SERVER_DELETE_PERSON_ERROR = -2147482570; | |||
| public static final int NET_ERROR_FACE_RECOGNITION_SERVER_DELETE_GROUP_ERROR = -2147482569; | |||
| public static final int NET_ERROR_FACE_RECOGNITION_SERVER_NAME_FORMAT_ERROR = -2147482568; | |||
| public static final int NET_ERROR_FACE_RECOGNITION_SERVER_FILEPATH_NOT_SET = -2147482567; | |||
| public static final int NET_ERROR_DEVICE_PARSE_PROTOCOL = -2147482569; | |||
| public static final int NET_ERROR_DEVICE_INVALID_REQUEST = -2147482568; | |||
| public static final int NET_ERROR_DEVICE_INTERNAL_ERROR = -2147482567; | |||
| public static final int NET_ERROR_DEVICE_REQUEST_TIMEOUT = -2147482566; | |||
| public static final int NET_ERROR_DEVICE_KEEPALIVE_FAIL = -2147482565; | |||
| public static final int NET_ERROR_DEVICE_NETWORK_ERROR = -2147482564; | |||
| public static final int NET_ERROR_DEVICE_UNKNOWN_ERROR = -2147482563; | |||
| public static final int NET_ERROR_DEVICE_COM_INTERFACE_NOTFOUND = -2147482562; | |||
| public static final int NET_ERROR_DEVICE_COM_IMPLEMENT_NOTFOUND = -2147482561; | |||
| public static final int NET_ERROR_DEVICE_COM_NOTFOUND = -2147482560; | |||
| public static final int NET_ERROR_DEVICE_COM_INSTANCE_NOTEXIST = -2147482559; | |||
| public static final int NET_ERROR_DEVICE_CREATE_COM_FAIL = -2147482558; | |||
| public static final int NET_ERROR_DEVICE_GET_COM_FAIL = -2147482557; | |||
| public static final int NET_ERROR_DEVICE_BAD_REQUEST = -2147482556; | |||
| public static final int NET_ERROR_DEVICE_REQUEST_IN_PROGRESS = -2147482555; | |||
| public static final int NET_ERROR_DEVICE_LIMITED_RESOURCE = -2147482554; | |||
| public static final int NET_ERROR_DEVICE_BUSINESS_TIMEOUT = -2147482553; | |||
| public static final int NET_ERROR_DEVICE_TOO_MANY_REQUESTS = -2147482552; | |||
| public static final int NET_ERROR_DEVICE_NOT_ALREADY = -2147482551; | |||
| public static final int NET_ERROR_DEVICE_SEARCHRECORD_TIMEOUT = -2147482550; | |||
| public static final int NET_ERROR_DEVICE_SEARCHTIME_INVALID = -2147482549; | |||
| public static final int NET_ERROR_DEVICE_SSID_INVALID = -2147482548; | |||
| public static final int NET_ERROR_DEVICE_CHANNEL_STREAMTYPE_ERROR = -2147482547; | |||
| public static final int NET_ERROR_DEVICE_STREAM_PACKINGFORMAT_UNSUPPORT = -2147482546; | |||
| public static final int NET_ERROR_DEVICE_AUDIO_ENCODINGFORMAT_UNSUPPORT = -2147482545; | |||
| public static final int NET_ERROR_SECURITY_ERROR_SUPPORT_GUI = -2147482544; | |||
| public static final int NET_ERROR_SECURITY_ERROR_SUPPORT_MULT = -2147482543; | |||
| public static final int NET_ERROR_SECURITY_ERROR_SUPPORT_UNIQUE = -2147482542; | |||
| public static final int NET_ERROR_STREAMCONVERTOR_DEFECT = -2147482541; | |||
| public static final int NET_ERROR_SECURITY_GENERATE_SAFE_CODE = 134218836; | |||
| public static final int NET_ERROR_SECURITY_GET_CONTACT = 134218837; | |||
| public static final int NET_ERROR_SECURITY_GET_QRCODE = 134218838; | |||
| public static final int NET_ERROR_SECURITY_CANNOT_RESET = 134218839; | |||
| public static final int NET_ERROR_SECURITY_NOT_SUPPORT_CONTACT_MODE = 134218840; | |||
| public static final int NET_ERROR_SECURITY_RESPONSE_TIMEOUT = 134218841; | |||
| public static final int NET_ERROR_SECURITY_AUTHCODE_FORBIDDEN = 134218842; | |||
| public static final int NET_ERROR_TRANCODE_LOGIN_REMOTE_DEV = 134218843; | |||
| public static final int NET_ERROR_TRANCODE_NOFREE_CHANNEL = 134218844; | |||
| public static final int NET_ERROR_VK_INFO_DECRYPT_FAILED = 134218845; | |||
| public static final int NET_ERROR_VK_INFO_DESERIALIZE_FAILED = 134218846; | |||
| public static final int NET_ERROR_GDPR_ABILITY_NOT_ENABLE = 134218847; | |||
| public static final int NET_ERROR_FAST_CHECK_NO_AUTH = -2147482528; | |||
| public static final int NET_ERROR_FAST_CHECK_NO_FILE = -2147482527; | |||
| public static final int NET_ERROR_FAST_CHECK_FILE_FAIL = -2147482526; | |||
| public static final int NET_ERROR_FAST_CHECK_BUSY = -2147482525; | |||
| public static final int NET_ERROR_FAST_CHECK_NO_PASSWORD = -2147482524; | |||
| public static final int NET_ERROR_IMPORT_ACCESS_SEND_FAILD = -2147482523; | |||
| public static final int NET_ERROR_IMPORT_ACCESS_BUSY = -2147482522; | |||
| public static final int NET_ERROR_IMPORT_ACCESS_DATAERROR = -2147482521; | |||
| public static final int NET_ERROR_IMPORT_ACCESS_DATAINVALID = -2147482520; | |||
| public static final int NET_ERROR_IMPORT_ACCESS_SYNC_FALID = -2147482519; | |||
| public static final int NET_ERROR_IMPORT_ACCESS_DBFULL = -2147482518; | |||
| public static final int NET_ERROR_IMPORT_ACCESS_SDFULL = -2147482517; | |||
| public static final int NET_ERROR_IMPORT_ACCESS_CIPHER_ERROR = -2147482516; | |||
| public static final int NET_ERROR_INVALID_PARAM = -2147482515; | |||
| public static final int NET_ERROR_INVALID_PASSWORD = -2147482514; | |||
| public static final int NET_ERROR_INVALID_FINGERPRINT = -2147482513; | |||
| public static final int NET_ERROR_INVALID_FACE = -2147482512; | |||
| public static final int NET_ERROR_INVALID_CARD = -2147482511; | |||
| public static final int NET_ERROR_INVALID_USER = -2147482510; | |||
| public static final int NET_ERROR_GET_SUBSERVICE = -2147482509; | |||
| public static final int NET_ERROR_GET_METHOD = -2147482508; | |||
| public static final int NET_ERROR_GET_SUBCAPS = -2147482507; | |||
| public static final int NET_ERROR_UPTO_INSERT_LIMIT = -2147482506; | |||
| public static final int NET_ERROR_UPTO_MAX_INSERT_RATE = -2147482505; | |||
| public static final int NET_ERROR_ERASE_FINGERPRINT = -2147482504; | |||
| public static final int NET_ERROR_ERASE_FACE = -2147482503; | |||
| public static final int NET_ERROR_ERASE_CARD = -2147482502; | |||
| public static final int NET_ERROR_NO_RECORD = -2147482501; | |||
| public static final int NET_ERROR_NOMORE_RECORDS = -2147482500; | |||
| public static final int NET_ERROR_RECORD_ALREADY_EXISTS = -2147482499; | |||
| public static final int NET_ERROR_EXCEED_MAX_FINGERPRINT_PERUSER = -2147482498; | |||
| public static final int NET_ERROR_EXCEED_MAX_CARD_PERUSER = -2147482497; | |||
| public static final int NET_ERROR_EXCEED_ADMINISTRATOR_LIMIT = -2147482496; | |||
| public static final int NET_LOGIN_ERROR_DEVICE_NOT_SUPPORT_HIGHLEVEL_SECURITY_LOGIN = -2147482495; | |||
| public static final int NET_LOGIN_ERROR_DEVICE_ONLY_SUPPORT_HIGHLEVEL_SECURITY_LOGIN = -2147482494; | |||
| public static final int NET_ERROR_VIDEO_CHANNEL_OFFLINE = -2147482493; | |||
| public static final int NET_ERROR_USERID_FORMAT_INCORRECT = -2147482492; | |||
| public static final int NET_ERROR_CANNOT_FIND_CHANNEL_RELATE_TO_SN = -2147482491; | |||
| public static final int NET_ERROR_TASK_QUEUE_OF_CHANNEL_IS_FULL = -2147482490; | |||
| public static final int NET_ERROR_APPLY_USER_INFO_BLOCK_FAIL = -2147482489; | |||
| public static final int NET_ERROR_EXCEED_MAX_PASSWD_PERUSER = -2147482488; | |||
| public static final int NET_ERROR_PARSE_PROTOCOL = -2147482487; | |||
| public static final int NET_ERROR_CARD_NUM_EXIST = -2147482486; | |||
| public static final int NET_ERROR_FINGERPRINT_EXIST = -2147482485; | |||
| public static final int NET_ERROR_OPEN_PLAYGROUP_FAIL = -2147482484; | |||
| public static final int NET_ERROR_ALREADY_IN_PLAYGROUP = -2147482483; | |||
| public static final int NET_ERROR_QUERY_PLAYGROUP_TIME_FAIL = -2147482482; | |||
| public static final int NET_ERROR_SET_PLAYGROUP_BASECHANNEL_FAIL = -2147482481; | |||
| public static final int NET_ERROR_SET_PLAYGROUP_DIRECTION_FAIL = -2147482480; | |||
| public static final int NET_ERROR_SET_PLAYGROUP_SPEED_FAIL = -2147482479; | |||
| public static final int NET_ERROR_ADD_PLAYGROUP_FAIL = -2147482478; | |||
| public static final int NET_ERROR_EXPORT_AOL_LOGFILE_NO_AUTH = -2147482477; | |||
| public static final int NET_ERROR_EXPORT_AOL_LOGFILE_NO_FILE = -2147482476; | |||
| public static final int NET_ERROR_EXPORT_AOL_LOGFILE_FILE_FAIL = -2147482475; | |||
| public static final int NET_ERROR_EXPORT_AOL_LOGFILE_BUSY = -2147482474; | |||
| public static final int NET_ERROR_EMPTY_LICENSE = -2147482473; | |||
| public static final int NET_ERROR_UNSUPPORTED_MODE = -2147482472; | |||
| public static final int NET_ERROR_URL_APP_NOT_MATCH = -2147482471; | |||
| public static final int NET_ERROR_READ_INFO_FAILED = -2147482470; | |||
| public static final int NET_ERROR_WRITE_FAILED = -2147482469; | |||
| public static final int NET_ERROR_NO_SUCH_APP = -2147482468; | |||
| public static final int NET_ERROR_VERIFIF_FAILED = -2147482467; | |||
| public static final int NET_ERROR_LICENSE_OUT_DATE = -2147482466; | |||
| public static final int NET_ERROR_UPGRADE_PROGRAM_TOO_OLD = -2147482465; | |||
| public static final int NET_ERROR_SECURE_TRANSMIT_BEEN_CUT = -2147482464; | |||
| public static final int NET_ERROR_DEVICE_NOT_SUPPORT_SECURE_TRANSMIT = -2147482463; | |||
| public static final int NET_ERROR_EXTRA_STREAM_LOGIN_FAIL_CAUSE_BY_MAIN_STREAM = -2147482462; | |||
| public static final int NET_ERROR_EXTRA_STREAM_CLOSED_BY_REMOTE_DEVICE = -2147482461; | |||
| public static final int NET_ERROR_IMPORT_FACEDB_SEND_FAILD = -2147482460; | |||
| public static final int NET_ERROR_IMPORT_FACEDB_BUSY = -2147482459; | |||
| public static final int NET_ERROR_IMPORT_FACEDB_DATAERROR = -2147482458; | |||
| public static final int NET_ERROR_IMPORT_FACEDB_DATAINVALID = -2147482457; | |||
| public static final int NET_ERROR_IMPORT_FACEDB_UPGRADE_FAILD = -2147482456; | |||
| public static final int NET_ERROR_IMPORT_FACEDB_NO_AUTHORITY = -2147482455; | |||
| public static final int NET_ERROR_IMPORT_FACEDB_ABNORMAL_FILE = -2147482454; | |||
| public static final int NET_ERROR_IMPORT_FACEDB_SYNC_FALID = -2147482453; | |||
| public static final int NET_ERROR_IMPORT_FACEDB_DBFULL = -2147482452; | |||
| public static final int NET_ERROR_IMPORT_FACEDB_SDFULL = -2147482451; | |||
| public static final int NET_ERROR_IMPORT_FACEDB_CIPHER_ERROR = -2147482450; | |||
| public static final int NET_ERROR_EXPORT_FACEDB_NO_AUTH = -2147482449; | |||
| public static final int NET_ERROR_EXPORT_FACEDB_NO_FILE = -2147482448; | |||
| public static final int NET_ERROR_EXPORT_FACEDB_FILE_FAIL = -2147482447; | |||
| public static final int NET_ERROR_EXPORT_FACEDB_BUSY = -2147482446; | |||
| public static final int NET_ERROR_EXPORT_FACEDB_NO_PASSWORD = -2147482445; | |||
| public static final int NET_ERROR_FACEMANAGER_NO_FACE_DETECTED = -2147482348; | |||
| public static final int NET_ERROR_FACEMANAGER_MULTI_FACE_DETECTED = -2147482347; | |||
| public static final int NET_ERROR_FACEMANAGER_PICTURE_DECODING_ERROR = -2147482346; | |||
| public static final int NET_ERROR_FACEMANAGER_LOW_PICTURE_QUALITY = -2147482345; | |||
| public static final int NET_ERROR_FACEMANAGER_NOT_RECOMMENDED = -2147482344; | |||
| public static final int NET_ERROR_FACEMANAGER_FACE_FEATURE_ALREADY_EXIST = -2147482343; | |||
| public static final int NET_ERROR_FACEMANAGER_FACE_ANGLE_OVER_THRESHOLDS = -2147482341; | |||
| public static final int NET_ERROR_FACEMANAGER_FACE_RADIO_EXCEEDS_RANGE = -2147482340; | |||
| public static final int NET_ERROR_FACEMANAGER_FACE_OVER_EXPOSED = -2147482339; | |||
| public static final int NET_ERROR_FACEMANAGER_FACE_UNDER_EXPOSED = -2147482338; | |||
| public static final int NET_ERROR_FACEMANAGER_BRIGHTNESS_IMBALANCE = -2147482337; | |||
| public static final int NET_ERROR_FACEMANAGER_FACE_LOWER_CONFIDENCE = -2147482336; | |||
| public static final int NET_ERROR_FACEMANAGER_FACE_LOW_ALIGN = -2147482335; | |||
| public static final int NET_ERROR_FACEMANAGER_FRAGMENTARY_FACE_DETECTED = -2147482334; | |||
| public static final int NET_ERROR_FACEMANAGER_PUPIL_DISTANCE_NOT_ENOUGH = -2147482333; | |||
| public static final int NET_ERROR_FACEMANAGER_FACE_DATA_DOWNLOAD_FAILED = -2147482332; | |||
| } | |||
| @ -1,173 +0,0 @@ | |||
| package com.inspect.access.lib; | |||
| import java.io.BufferedInputStream; | |||
| import java.io.File; | |||
| import java.io.FileInputStream; | |||
| import java.io.FileOutputStream; | |||
| import java.io.InputStream; | |||
| import java.util.Iterator; | |||
| public class LibraryLoad { | |||
| private static final String ARCH_WINDOWS = "win"; | |||
| private static final String ARCH_LINUX = "linux"; | |||
| private static final String ARCH_MAC = "mac"; | |||
| private static final int PREFIX_64 = 64; | |||
| private static final int PREFIX_32 = 32; | |||
| private static final String PREFIX_ARM = "ARM"; | |||
| private static final String EXTERNAL_WIN = ".dll"; | |||
| private static final String EXTERNAL_LINUX = ".so"; | |||
| private static final String EXTERNAL_MAC = ".dylib"; | |||
| private static DynamicParseUtil dynamicParseUtil; | |||
| private static String currentFold; | |||
| private static String EXTRACT_PATH = System.getProperty("java.io.tmpdir"); | |||
| private static boolean written = false; | |||
| private static String INNER_PATH; | |||
| public static void setExtractPath(String path) { | |||
| EXTRACT_PATH = path; | |||
| } | |||
| public static String getExtractPath() { | |||
| return EXTRACT_PATH; | |||
| } | |||
| private static String extractNetSDKLib(String libName) { | |||
| return extractLibrary(libName); | |||
| } | |||
| public static String getLoadLibrary(String libraryName) { | |||
| currentFold = getLibraryFold(); | |||
| System.out.println("---------------=========" + currentFold); | |||
| currentFold = "linux64"; | |||
| String libName; | |||
| if (dynamicParseUtil == null) { | |||
| try { | |||
| dynamicParseUtil = new DynamicParseUtil(LibraryLoad.class.getClassLoader().getResourceAsStream("dynamic-lib-load.xml")); | |||
| if (!written) { | |||
| for (String s : dynamicParseUtil.getLibsSystem(currentFold)) { | |||
| libName = s; | |||
| extractLibrary("/libs/", libName); | |||
| } | |||
| written = true; | |||
| } | |||
| } catch (Exception e) { | |||
| e.printStackTrace(); | |||
| } | |||
| } | |||
| String fullName = getLibraryName(libraryName); | |||
| libName = EXTRACT_PATH; | |||
| if (!EXTRACT_PATH.endsWith("/") && !EXTRACT_PATH.endsWith("\\")) { | |||
| libName = EXTRACT_PATH + "/"; | |||
| } | |||
| System.out.println("load library: " + libName + fullName); | |||
| return libName + fullName; | |||
| } | |||
| private static String extractLibrary(String libName) { | |||
| return extractLibrary("", libName); | |||
| } | |||
| private static String extractLibrary(String relativePath, String libName) { | |||
| if (libName.trim().isEmpty()) { | |||
| return ""; | |||
| } else { | |||
| String libFullName = getLibraryName(libName); | |||
| String dir = getLibraryFold(); | |||
| if (!relativePath.endsWith("/") && !relativePath.endsWith("\\")) { | |||
| relativePath = relativePath + "/"; | |||
| } | |||
| String fileName = relativePath + dir + "/" + libFullName; | |||
| InputStream in = LibraryLoad.class.getResourceAsStream(fileName); | |||
| File extractedLibFile = null; | |||
| try { | |||
| if (in == null) { | |||
| in = new FileInputStream(fileName); | |||
| if (in == null) { | |||
| return ""; | |||
| } | |||
| } | |||
| String nativeTempDir = EXTRACT_PATH; | |||
| if (!nativeTempDir.endsWith("/") && !nativeTempDir.endsWith("\\")) { | |||
| nativeTempDir = nativeTempDir + "/"; | |||
| } | |||
| extractedLibFile = new File(nativeTempDir + libFullName); | |||
| BufferedInputStream reader = new BufferedInputStream(in); | |||
| FileOutputStream writer = new FileOutputStream(extractedLibFile); | |||
| byte[] buffer = new byte[1024]; | |||
| while (true) { | |||
| int len = reader.read(buffer); | |||
| if (len == 0 || len == -1) { | |||
| reader.close(); | |||
| writer.close(); | |||
| in.close(); | |||
| break; | |||
| } | |||
| writer.write(buffer, 0, len); | |||
| } | |||
| } catch (Exception var12) { | |||
| System.out.println("dynamic file[ " + fileName + " ] not found in project.please ensure you need this library."); | |||
| } | |||
| return extractedLibFile != null ? extractedLibFile.getAbsolutePath() : ""; | |||
| } | |||
| } | |||
| private static String getLibraryName(String libName) { | |||
| String dir = currentFold; | |||
| String libPrefix = ""; | |||
| String libExtension = ".dll"; | |||
| if (!dir.contains("win")) { | |||
| libPrefix = "lib"; | |||
| if (dir.contains("linux")) { | |||
| libExtension = ".so"; | |||
| } else { | |||
| libExtension = ".dylib"; | |||
| } | |||
| } | |||
| libName = dynamicParseUtil.compareLibName(currentFold, libName); | |||
| return (libName.startsWith("com/netsdk/lib") ? "" : libPrefix) + libName + libExtension; | |||
| } | |||
| private static String getLibraryFold() { | |||
| String osName = System.getProperty("os.name"); | |||
| String osType; | |||
| if (osName.toLowerCase().startsWith("linux")) { | |||
| osType = "linux"; | |||
| } else if (!osName.toLowerCase().startsWith("mac") && !osName.toLowerCase().startsWith("darwin")) { | |||
| if (osName.toLowerCase().startsWith("windows")) { | |||
| osType = "win"; | |||
| } else { | |||
| osType = ""; | |||
| } | |||
| } else { | |||
| osType = "mac"; | |||
| } | |||
| String arch = System.getProperty("os.arch"); | |||
| arch = arch.toLowerCase().trim(); | |||
| if (!"i386".equals(arch) && !"i686".equals(arch) && !"x86".equals(arch)) { | |||
| if (!"x86_64".equals(arch) && !"amd64".equals(arch)) { | |||
| if (arch.startsWith("arm")) { | |||
| arch = "ARM"; | |||
| } | |||
| } else { | |||
| arch = "64"; | |||
| } | |||
| } else { | |||
| arch = "32"; | |||
| } | |||
| return osType + arch; | |||
| } | |||
| } | |||
| @ -1,82 +0,0 @@ | |||
| package com.inspect.access.lib; | |||
| import com.sun.jna.Memory; | |||
| import com.sun.jna.Native; | |||
| import com.sun.jna.Pointer; | |||
| import java.io.UnsupportedEncodingException; | |||
| import java.nio.CharBuffer; | |||
| public class NativeString implements CharSequence, Comparable<Object> { | |||
| private Pointer pointer; | |||
| private boolean wide; | |||
| public NativeString(String string) { | |||
| this(string, false); | |||
| } | |||
| public NativeString(String string, boolean wide) { | |||
| if (string == null) { | |||
| throw new NullPointerException("String must not be null"); | |||
| } else { | |||
| this.wide = wide; | |||
| if (wide) { | |||
| int len = (string.length() + 1) * Native.WCHAR_SIZE; | |||
| this.pointer = new Memory((long) len); | |||
| this.pointer.setString(0L, string); | |||
| } else { | |||
| byte[] data = getBytes(string); | |||
| this.pointer = new Memory((long) (data.length + 1)); | |||
| this.pointer.write(0L, data, 0, data.length); | |||
| this.pointer.setByte((long) data.length, (byte) 0); | |||
| } | |||
| } | |||
| } | |||
| static byte[] getBytes(String s) { | |||
| try { | |||
| return getBytes(s, System.getProperty("jna.encoding")); | |||
| } catch (UnsupportedEncodingException var2) { | |||
| return s.getBytes(); | |||
| } | |||
| } | |||
| static byte[] getBytes(String s, String encoding) throws UnsupportedEncodingException { | |||
| return encoding != null ? s.getBytes(encoding) : s.getBytes(); | |||
| } | |||
| public int hashCode() { | |||
| return this.toString().hashCode(); | |||
| } | |||
| public boolean equals(Object other) { | |||
| return other instanceof CharSequence ? this.compareTo(other) == 0 : false; | |||
| } | |||
| public String toString() { | |||
| String s = this.wide ? "const wchar_t*" : "const char*"; | |||
| s = s + "(" + this.pointer.getString(0L) + ")"; | |||
| return s; | |||
| } | |||
| public Pointer getPointer() { | |||
| return this.pointer; | |||
| } | |||
| public char charAt(int index) { | |||
| return this.toString().charAt(index); | |||
| } | |||
| public int length() { | |||
| return this.toString().length(); | |||
| } | |||
| public CharSequence subSequence(int start, int end) { | |||
| return CharBuffer.wrap(this.toString()).subSequence(start, end); | |||
| } | |||
| public int compareTo(Object other) { | |||
| return other == null ? 1 : this.toString().compareTo(other.toString()); | |||
| } | |||
| } | |||
| @ -1,470 +0,0 @@ | |||
| package com.inspect.access.lib; | |||
| import com.inspect.access.common.ErrorCode; | |||
| import com.inspect.access.common.PaintPanel; | |||
| import com.inspect.access.module.LoginModule; | |||
| import com.sun.jna.Memory; | |||
| import com.sun.jna.Pointer; | |||
| import com.sun.jna.Structure; | |||
| import com.sun.jna.ptr.IntByReference; | |||
| import java.awt.Component; | |||
| import java.awt.event.ActionEvent; | |||
| import java.awt.event.KeyEvent; | |||
| import java.awt.event.KeyListener; | |||
| import java.awt.image.BufferedImage; | |||
| import java.io.File; | |||
| import java.io.FileInputStream; | |||
| import java.io.FileOutputStream; | |||
| import java.io.IOException; | |||
| import java.io.UnsupportedEncodingException; | |||
| import java.text.SimpleDateFormat; | |||
| import java.util.Date; | |||
| import javax.imageio.ImageIO; | |||
| import javax.swing.JButton; | |||
| import javax.swing.JFileChooser; | |||
| import javax.swing.JFrame; | |||
| import javax.swing.JTextField; | |||
| import javax.swing.UIManager; | |||
| import javax.swing.filechooser.FileFilter; | |||
| public class ToolKits { | |||
| static NetSDKLib netsdkapi; | |||
| static NetSDKLib configapi; | |||
| public static void GetPointerData(Pointer pNativeData, Structure pJavaStu) { | |||
| GetPointerDataToStruct(pNativeData, 0L, pJavaStu); | |||
| } | |||
| public static void GetPointerDataToStruct(Pointer pNativeData, long OffsetOfpNativeData, Structure pJavaStu) { | |||
| pJavaStu.write(); | |||
| Pointer pJavaMem = pJavaStu.getPointer(); | |||
| pJavaMem.write(0L, pNativeData.getByteArray(OffsetOfpNativeData, pJavaStu.size()), 0, pJavaStu.size()); | |||
| pJavaStu.read(); | |||
| } | |||
| public static void GetPointerDataToStructArr(Pointer pNativeData, Structure[] pJavaStuArr) { | |||
| long offset = 0L; | |||
| for (Structure structure : pJavaStuArr) { | |||
| GetPointerDataToStruct(pNativeData, offset, structure); | |||
| offset += structure.size(); | |||
| } | |||
| } | |||
| public static void SetStructArrToPointerData(Structure[] pJavaStuArr, Pointer pNativeData) { | |||
| long offset = 0L; | |||
| for (Structure structure : pJavaStuArr) { | |||
| SetStructDataToPointer(structure, pNativeData, offset); | |||
| offset += structure.size(); | |||
| } | |||
| } | |||
| public static void SetStructDataToPointer(Structure pJavaStu, Pointer pNativeData, long OffsetOfpNativeData) { | |||
| pJavaStu.write(); | |||
| Pointer pJavaMem = pJavaStu.getPointer(); | |||
| pNativeData.write(OffsetOfpNativeData, pJavaMem.getByteArray(0L, pJavaStu.size()), 0, pJavaStu.size()); | |||
| } | |||
| public static void savePicture(byte[] pBuf, String sDstFile) throws IOException { | |||
| FileOutputStream fos = null; | |||
| try { | |||
| fos = new FileOutputStream(sDstFile); | |||
| fos.write(pBuf); | |||
| } catch (Exception e) { | |||
| e.printStackTrace(); | |||
| } finally { | |||
| fos.close(); | |||
| } | |||
| } | |||
| public static void savePicture(byte[] pBuf, int dwBufOffset, int dwBufSize, String sDstFile) throws IOException { | |||
| FileOutputStream fos = null; | |||
| try { | |||
| fos = new FileOutputStream(sDstFile); | |||
| fos.write(pBuf, dwBufOffset, dwBufSize); | |||
| } catch (Exception e) { | |||
| e.printStackTrace(); | |||
| } finally { | |||
| fos.close(); | |||
| } | |||
| } | |||
| public static void savePicture(Pointer pBuf, int dwBufSize, String sDstFile) throws IOException { | |||
| FileOutputStream fos = null; | |||
| try { | |||
| fos = new FileOutputStream(sDstFile); | |||
| fos.write(pBuf.getByteArray(0L, dwBufSize), 0, dwBufSize); | |||
| } catch (Exception e) { | |||
| e.printStackTrace(); | |||
| } finally { | |||
| fos.close(); | |||
| } | |||
| } | |||
| public static void savePicture(Pointer pBuf, int dwBufOffset, int dwBufSize, String sDstFile) throws IOException { | |||
| FileOutputStream fos = null; | |||
| try { | |||
| fos = new FileOutputStream(sDstFile); | |||
| fos.write(pBuf.getByteArray(dwBufOffset, dwBufSize), 0, dwBufSize); | |||
| } catch (Exception e) { | |||
| e.printStackTrace(); | |||
| } finally { | |||
| fos.close(); | |||
| } | |||
| } | |||
| public static String GetPointerDataToByteArr(Pointer pointer) { | |||
| String str = ""; | |||
| if (pointer == null) { | |||
| return str; | |||
| } else { | |||
| int length = 0; | |||
| byte[] bufferPlace = new byte[1]; | |||
| for (int i = 0; i < 2048; ++i) { | |||
| pointer.read(i, bufferPlace, 0, 1); | |||
| if (bufferPlace[0] == 0) { | |||
| length = i; | |||
| break; | |||
| } | |||
| } | |||
| if (length > 0) { | |||
| byte[] buffer = new byte[length]; | |||
| pointer.read(0L, buffer, 0, length); | |||
| try { | |||
| str = (new String(buffer, "GBK")).trim(); | |||
| } catch (UnsupportedEncodingException var6) { | |||
| return str; | |||
| } | |||
| } | |||
| return str; | |||
| } | |||
| } | |||
| public static String getDate() { | |||
| SimpleDateFormat simpleDate = new SimpleDateFormat("yyyy-MM-dd HH:mm:ss"); | |||
| String date = simpleDate.format(new Date()).replace(" ", "_").replace(":", "-"); | |||
| return date; | |||
| } | |||
| public static String getDay() { | |||
| SimpleDateFormat simpleDate = new SimpleDateFormat("yyyy-MM-dd"); | |||
| String date = simpleDate.format(new Date()); | |||
| return date; | |||
| } | |||
| public static void limitTextFieldLength(final JTextField jTextField, final int size) { | |||
| jTextField.addKeyListener(new KeyListener() { | |||
| public void keyTyped(KeyEvent e) { | |||
| String number = "0123456789\b"; | |||
| if (number.indexOf(e.getKeyChar()) < 0 || jTextField.getText().trim().length() >= size) { | |||
| e.consume(); | |||
| } | |||
| } | |||
| public void keyReleased(KeyEvent e) { | |||
| } | |||
| public void keyPressed(KeyEvent e) { | |||
| } | |||
| }); | |||
| } | |||
| public static JFrame getFrame(ActionEvent e) { | |||
| JButton btn = (JButton) e.getSource(); | |||
| JFrame frame = (JFrame) btn.getRootPane().getParent(); | |||
| return frame; | |||
| } | |||
| public static String getLoadLibrary(String library) { | |||
| String path = ""; | |||
| String os = System.getProperty("os.name"); | |||
| if (os.toLowerCase().startsWith("win")) { | |||
| path = "./libs/"; | |||
| } else if (os.toLowerCase().startsWith("linux")) { | |||
| path = ""; | |||
| } | |||
| return path + library; | |||
| } | |||
| public static String getOsName() { | |||
| String osName = ""; | |||
| String os = System.getProperty("os.name"); | |||
| if (os.toLowerCase().startsWith("win")) { | |||
| osName = "win"; | |||
| } else if (os.toLowerCase().startsWith("linux")) { | |||
| osName = "linux"; | |||
| } | |||
| return osName; | |||
| } | |||
| public static long GetFileSize(String filePath) { | |||
| File f = new File(filePath); | |||
| return f.exists() && f.isFile() ? f.length() : 0L; | |||
| } | |||
| public static boolean ReadAllFileToMemory(String file, Memory memory) throws IOException { | |||
| if (memory != Memory.NULL) { | |||
| long fileLen = GetFileSize(file); | |||
| if (fileLen <= 0L) { | |||
| return false; | |||
| } else { | |||
| FileInputStream in = null; | |||
| try { | |||
| File infile = new File(file); | |||
| if (!infile.canRead()) { | |||
| System.err.println("Failed to open file %s for read!!!\n"); | |||
| return false; | |||
| } else { | |||
| in = new FileInputStream(infile); | |||
| int buffLen = 1024; | |||
| byte[] buffer = new byte[buffLen]; | |||
| long currFileLen = 0L; | |||
| int readLen; | |||
| for (; currFileLen < fileLen; currFileLen += readLen) { | |||
| readLen = in.read(buffer); | |||
| memory.write(currFileLen, buffer, 0, readLen); | |||
| } | |||
| return true; | |||
| } | |||
| } catch (Exception e) { | |||
| System.err.println("Failed to open file %s for read!!!\n"); | |||
| e.printStackTrace(); | |||
| return false; | |||
| } finally { | |||
| if (in != null) { | |||
| in.close(); | |||
| } | |||
| } | |||
| } | |||
| } else { | |||
| return false; | |||
| } | |||
| } | |||
| public static String openPictureFile(PaintPanel paintPanel) { | |||
| try { | |||
| UIManager.setLookAndFeel("javax.swing.plaf.metal.MetalLookAndFeel"); | |||
| } catch (Exception e) { | |||
| e.printStackTrace(); | |||
| } | |||
| String picPath = ""; | |||
| JFileChooser jfc = new JFileChooser("d:/"); | |||
| jfc.setMultiSelectionEnabled(false); | |||
| jfc.setAcceptAllFileFilterUsed(false); | |||
| ToolKits.JPGFilter filter = new ToolKits.JPGFilter(); | |||
| jfc.addChoosableFileFilter(filter); | |||
| jfc.setFileFilter(filter); | |||
| if (jfc.showOpenDialog(null) == 0) { | |||
| picPath = jfc.getSelectedFile().getAbsolutePath(); | |||
| BufferedImage bufferedImage = null; | |||
| if (picPath.isEmpty()) { | |||
| return ""; | |||
| } | |||
| File file = new File(picPath); | |||
| if (!file.exists()) { | |||
| return ""; | |||
| } | |||
| try { | |||
| bufferedImage = ImageIO.read(file); | |||
| } catch (IOException e) { | |||
| e.printStackTrace(); | |||
| } | |||
| if (bufferedImage == null) { | |||
| paintPanel.setOpaque(true); | |||
| paintPanel.repaint(); | |||
| System.err.println("打开图片失败,请重新选择!"); | |||
| return ""; | |||
| } | |||
| paintPanel.setOpaque(false); | |||
| paintPanel.setImage(bufferedImage); | |||
| paintPanel.repaint(); | |||
| } | |||
| try { | |||
| UIManager.setLookAndFeel(UIManager.getSystemLookAndFeelClassName()); | |||
| } catch (Exception e) { | |||
| e.printStackTrace(); | |||
| } | |||
| return picPath; | |||
| } | |||
| public static File openPictureFile(String picPath, PaintPanel paintPanel) { | |||
| BufferedImage bufferedImage = null; | |||
| if (picPath != null && !picPath.isEmpty()) { | |||
| File file = new File(picPath); | |||
| if (!file.exists()) { | |||
| return null; | |||
| } else { | |||
| try { | |||
| bufferedImage = ImageIO.read(file); | |||
| } catch (IOException e) { | |||
| e.printStackTrace(); | |||
| } | |||
| if (bufferedImage == null) { | |||
| paintPanel.setOpaque(true); | |||
| paintPanel.repaint(); | |||
| System.err.println("打开图片失败,请重新选择!"); | |||
| return null; | |||
| } else { | |||
| paintPanel.setOpaque(false); | |||
| paintPanel.setImage(bufferedImage); | |||
| paintPanel.repaint(); | |||
| return file; | |||
| } | |||
| } | |||
| } else { | |||
| return null; | |||
| } | |||
| } | |||
| public static Memory readPictureFile(String picPath) throws IOException { | |||
| int nPicBufLen = 0; | |||
| Memory memory = null; | |||
| nPicBufLen = (int) GetFileSize(picPath); | |||
| if (nPicBufLen <= 0) { | |||
| System.err.println("读取图片大小失败,请重新选择!"); | |||
| return null; | |||
| } else { | |||
| memory = new Memory(nPicBufLen); | |||
| memory.clear(); | |||
| if (!ReadAllFileToMemory(picPath, memory)) { | |||
| System.err.println("读取图片数据,请重新选择!"); | |||
| return null; | |||
| } else { | |||
| return memory; | |||
| } | |||
| } | |||
| } | |||
| public static String getErrorCodeShow() { | |||
| return ErrorCode.getErrorCode(LoginModule.netsdk.CLIENT_GetLastError()); | |||
| } | |||
| public static String getErrorCodePrint() { | |||
| return "\n{error code: (0x80000000|" + (LoginModule.netsdk.CLIENT_GetLastError() & Integer.MAX_VALUE) + ").参考 NetSDKLib.java } - {error info:" + ErrorCode.getErrorCode(LoginModule.netsdk.CLIENT_GetLastError()) + "}\n"; | |||
| } | |||
| public static boolean GetDevConfig(NetSDKLib.LLong hLoginHandle, int nChn, String strCmd, Structure cmdObject) { | |||
| boolean result; | |||
| IntByReference error = new IntByReference(0); | |||
| int nBufferLen = 2097152; | |||
| byte[] strBuffer = new byte[nBufferLen]; | |||
| if (netsdkapi.CLIENT_GetNewDevConfig(hLoginHandle, strCmd, nChn, strBuffer, nBufferLen, error, 3000)) { | |||
| cmdObject.write(); | |||
| if (configapi.CLIENT_ParseData(strCmd, strBuffer, cmdObject.getPointer(), cmdObject.size(), (Pointer) null)) { | |||
| cmdObject.read(); | |||
| result = true; | |||
| } else { | |||
| System.err.println("Parse " + strCmd + " Config Failed!" + getErrorCodePrint()); | |||
| result = false; | |||
| } | |||
| } else { | |||
| System.err.printf("Get %s Config Failed!Last Error = %s\n", new Object[]{strCmd, getErrorCodePrint()}); | |||
| result = false; | |||
| } | |||
| return result; | |||
| } | |||
| public static boolean SetDevConfig(NetSDKLib.LLong hLoginHandle, int nChn, String strCmd, Structure cmdObject) { | |||
| boolean result = false; | |||
| int nBufferLen = 2097152; | |||
| byte[] szBuffer = new byte[nBufferLen]; | |||
| for (int i = 0; i < nBufferLen; ++i) { | |||
| szBuffer[i] = 0; | |||
| } | |||
| IntByReference error = new IntByReference(0); | |||
| IntByReference restart = new IntByReference(0); | |||
| cmdObject.write(); | |||
| if (configapi.CLIENT_PacketData(strCmd, cmdObject.getPointer(), cmdObject.size(), szBuffer, nBufferLen)) { | |||
| cmdObject.read(); | |||
| if (netsdkapi.CLIENT_SetNewDevConfig(hLoginHandle, strCmd, nChn, szBuffer, nBufferLen, error, restart, 3000)) { | |||
| result = true; | |||
| } else { | |||
| System.err.printf("Set %s Config Failed! Last Error = %s\n", new Object[]{strCmd, getErrorCodePrint()}); | |||
| result = false; | |||
| } | |||
| } else { | |||
| System.err.println("Packet " + strCmd + " Config Failed!" + getErrorCodePrint()); | |||
| result = false; | |||
| } | |||
| return result; | |||
| } | |||
| public static Pointer GetGBKStringToPointer(String src) { | |||
| Memory pointer = null; | |||
| try { | |||
| byte[] b = src.getBytes("GBK"); | |||
| pointer = new Memory((long) (b.length + 1)); | |||
| pointer.clear(b.length + 1); | |||
| pointer.write(0L, b, 0, b.length); | |||
| } catch (UnsupportedEncodingException e) { | |||
| e.printStackTrace(); | |||
| } | |||
| return pointer; | |||
| } | |||
| public static void StringToByteArray(String src, byte[] dst) { | |||
| for (int i = 0; i < dst.length; ++i) { | |||
| dst[i] = 0; | |||
| } | |||
| System.arraycopy(src.getBytes(), 0, dst, 0, src.getBytes().length); | |||
| } | |||
| public static void ByteArrayToByteArray(byte[] src, byte[] dst) { | |||
| for (int i = 0; i < dst.length; ++i) { | |||
| dst[i] = 0; | |||
| } | |||
| System.arraycopy(src, 0, dst, 0, src.length); | |||
| } | |||
| static { | |||
| netsdkapi = NetSDKLib.NETSDK_INSTANCE; | |||
| configapi = NetSDKLib.CONFIG_INSTANCE; | |||
| } | |||
| static class JPGFilter extends FileFilter { | |||
| public boolean accept(File f) { | |||
| return f.getName().toLowerCase().endsWith(".JPG") || f.getName().toLowerCase().endsWith(".jpg") || f.isDirectory(); | |||
| } | |||
| public String getDescription() { | |||
| return "*.jpg; *.JPG"; | |||
| } | |||
| } | |||
| } | |||
| @ -1,185 +0,0 @@ | |||
| package com.inspect.access.lib; | |||
| import com.sun.jna.IntegerType; | |||
| import com.sun.jna.Native; | |||
| import com.sun.jna.Platform; | |||
| import com.sun.jna.Structure; | |||
| import java.lang.reflect.Field; | |||
| import java.lang.reflect.Modifier; | |||
| import java.text.SimpleDateFormat; | |||
| import java.util.ArrayList; | |||
| import java.util.Date; | |||
| import java.util.List; | |||
| public class Utils { | |||
| private static boolean checking = false; | |||
| public static String getPlatformEncode() { | |||
| String encode = ""; | |||
| String osPrefix = getOsPrefix(); | |||
| if (osPrefix.toLowerCase().startsWith("win32")) { | |||
| encode = "GBK"; | |||
| } else if (osPrefix.toLowerCase().startsWith("linux")) { | |||
| encode = "UTF-8"; | |||
| } else if (osPrefix.toLowerCase().startsWith("mac")) { | |||
| encode = "UTF-8"; | |||
| } | |||
| if (encode.isEmpty()) { | |||
| encode = "UTF-8"; | |||
| } | |||
| return encode; | |||
| } | |||
| public static String getOsPrefix() { | |||
| String arch = System.getProperty("os.arch").toLowerCase(); | |||
| String name = System.getProperty("os.name"); | |||
| String osPrefix; | |||
| switch (Platform.getOSType()) { | |||
| case 0: | |||
| arch = System.getProperty("sun.arch.data.model"); | |||
| osPrefix = "mac-" + arch; | |||
| break; | |||
| case 1: | |||
| if ("x86".equals(arch)) { | |||
| arch = "i386"; | |||
| } else if ("x86_64".equals(arch)) { | |||
| arch = "amd64"; | |||
| } | |||
| osPrefix = "linux-" + arch; | |||
| break; | |||
| case 2: | |||
| if ("i386".equals(arch)) { | |||
| arch = "x86"; | |||
| } | |||
| osPrefix = "win32-" + arch; | |||
| break; | |||
| default: | |||
| osPrefix = name.toLowerCase(); | |||
| if ("x86".equals(arch)) { | |||
| arch = "i386"; | |||
| } | |||
| if ("x86_64".equals(arch)) { | |||
| arch = "amd64"; | |||
| } | |||
| int space = osPrefix.indexOf(" "); | |||
| if (space != -1) { | |||
| osPrefix = osPrefix.substring(0, space); | |||
| } | |||
| osPrefix = osPrefix + "-" + arch; | |||
| } | |||
| return osPrefix; | |||
| } | |||
| public static String getOsName() { | |||
| String osName = ""; | |||
| String osPrefix = getOsPrefix(); | |||
| if (!osPrefix.toLowerCase().startsWith("win32-x86") && !osPrefix.toLowerCase().startsWith("win32-amd64")) { | |||
| if (!osPrefix.toLowerCase().startsWith("linux-i386") && !osPrefix.toLowerCase().startsWith("linux-amd64")) { | |||
| if (osPrefix.toLowerCase().startsWith("mac-64") || osPrefix.toLowerCase().startsWith("mac-32")) { | |||
| osName = "mac"; | |||
| } | |||
| } else { | |||
| osName = "linux"; | |||
| } | |||
| } else { | |||
| osName = "win"; | |||
| } | |||
| return osName; | |||
| } | |||
| public static String getLoadLibrary(String library) { | |||
| if (isChecking()) { | |||
| return null; | |||
| } else { | |||
| String loadLibrary = ""; | |||
| String osPrefix = getOsPrefix(); | |||
| if (osPrefix.toLowerCase().startsWith("win32-x86")) { | |||
| loadLibrary = "./libs/win32/"; | |||
| } else if (osPrefix.toLowerCase().startsWith("win32-amd64")) { | |||
| loadLibrary = "libs/win64/"; | |||
| } else if (osPrefix.toLowerCase().startsWith("linux-i386")) { | |||
| loadLibrary = ""; | |||
| } else if (osPrefix.toLowerCase().startsWith("linux-amd64")) { | |||
| loadLibrary = ""; | |||
| } else if (osPrefix.toLowerCase().startsWith("mac-64")) { | |||
| loadLibrary = ""; | |||
| } | |||
| System.out.printf("加载库[%s]\n", loadLibrary + library); | |||
| return loadLibrary + library; | |||
| } | |||
| } | |||
| public static void setChecking() { | |||
| checking = true; | |||
| } | |||
| public static void clearChecking() { | |||
| checking = false; | |||
| } | |||
| public static boolean isChecking() { | |||
| return checking; | |||
| } | |||
| public static String getDate() { | |||
| SimpleDateFormat simpleDate = new SimpleDateFormat("yyyy-MM-dd HH:mm:ss"); | |||
| return simpleDate.format(new Date()).replace(" ", "_").replace(":", "-"); | |||
| } | |||
| public static class SdkStructure extends Structure { | |||
| protected List<String> getFieldOrder() { | |||
| List<String> fieldOrderList = new ArrayList<>(); | |||
| for (Class cls = this.getClass(); !cls.equals(NetSDKLib.SdkStructure.class); cls = cls.getSuperclass()) { | |||
| Field[] fields = cls.getDeclaredFields(); | |||
| for (Field field : fields) { | |||
| int modifiers = field.getModifiers(); | |||
| if (!Modifier.isStatic(modifiers) && Modifier.isPublic(modifiers)) { | |||
| fieldOrderList.add(field.getName()); | |||
| } | |||
| } | |||
| } | |||
| return fieldOrderList; | |||
| } | |||
| } | |||
| public static class LLong extends IntegerType { | |||
| private static final long serialVersionUID = 1L; | |||
| public static int size; | |||
| public LLong() { | |||
| this(0L); | |||
| } | |||
| public LLong(long value) { | |||
| super(size, value); | |||
| } | |||
| static { | |||
| size = Native.LONG_SIZE; | |||
| if (!Utils.getOsPrefix().equalsIgnoreCase("linux-amd64") | |||
| && !Utils.getOsPrefix().equalsIgnoreCase("win32-amd64") | |||
| && !Utils.getOsPrefix().equalsIgnoreCase("mac-64")) { | |||
| if (Utils.getOsPrefix().equalsIgnoreCase("linux-i386") | |||
| || Utils.getOsPrefix().equalsIgnoreCase("win32-x86")) { | |||
| size = 4; | |||
| } | |||
| } else { | |||
| size = 8; | |||
| } | |||
| } | |||
| } | |||
| } | |||
| @ -1,33 +0,0 @@ | |||
| package com.inspect.access.lib.constant; | |||
| public class SDKStructureFieldLenth { | |||
| public static final int NET_MAX_NAME_LEN = 16; | |||
| public static final int MAX_OBJECT_LIST_SIZE = 16; | |||
| public static final int WEEK_DAY_NUM = 7; | |||
| public static final int MAX_REC_TSECT_EX = 10; | |||
| public static final int SDK_COMMON_STRING_512 = 512; | |||
| public static final int NET_MAX_COLLECTION_NUM = 64; | |||
| public static final int MAX_SCENICSPOT_POINTS_NUM = 256; | |||
| public static final int MAX_PROTOCOL_NAME_LEN = 32; | |||
| public static final int CFG_COMMON_STRING_32 = 32; | |||
| public static final int MAX_MASKTYPE_COUNT = 8; | |||
| public static final int MAX_MOSAICTYPE_COUNT = 8; | |||
| public static final int CFG_MAX_LOWER_MATRIX_OUTPUT = 32; | |||
| public static final int CFG_MAX_VIDEO_CHANNEL_NUM = 256; | |||
| public static final int SDK_MAX_DETECT_REGION_NUM = 20; | |||
| public static final int HDBJ_MAX_OBJECTS_NUM = 200; | |||
| public static final int DH_MAX_DETECT_REGION_NUM = 20; | |||
| public static final int MAX_EVENT_NAME_LEN = 128; | |||
| public static final int MAX_CALIBRATE_POINT_NUM = 64; | |||
| public static final int MAX_ADDRESS_LEN = 256; | |||
| public static final int MAX_PASSWORD_LEN = 64; | |||
| public static final int MAX_SIP_SVR_ID_LEN = 24; | |||
| public static final int MAX_SIP_DOMAIN_LEN = 128; | |||
| public static final int MAX_SIP_SVR_IP_LEN = 128; | |||
| public static final int MAX_SIP_SERVER_DEVICE_ID_LEN = 24; | |||
| public static final int MAX_REG_PASSWORD_LEN = 24; | |||
| public static final int MAX_CIVIL_CODE_LEN = 24; | |||
| public static final int MAX_INTERVIDEO_ID_LEN = 24; | |||
| public static final int MAX_CHANNEL_ID_LEN = 24; | |||
| public static final int MAX_SIP_SERVER_NUM = 5; | |||
| } | |||
| @ -1,8 +0,0 @@ | |||
| package com.inspect.access.lib.constant; | |||
| public class SDK_ALARM_Ex_TYPE { | |||
| public static final int SDK_ALARM_SOLARCELL_SYSTEM_INFO = 13407; | |||
| public static final int SDK_DISKFULL_ALARM_EX = 8454; | |||
| public static final int SDK_DISKERROR_ALARM_EX = 8455; | |||
| public static final int SDK_ALARM_NO_DISK = 8579; | |||
| } | |||
| @ -1,15 +0,0 @@ | |||
| package com.inspect.access.lib.enumeration; | |||
| public enum CFG_ACCESS_PROPERTY_TYPE { | |||
| CFG_ACCESS_PROPERTY_UNKNOWN(0, "未知"), | |||
| CFG_ACCESS_PROPERTY_BIDIRECT(1, "双向门禁"), | |||
| CFG_ACCESS_PROPERTY_UNIDIRECT(2, "单向门禁"); | |||
| private int type; | |||
| private String desc; | |||
| private CFG_ACCESS_PROPERTY_TYPE(int type, String desc) { | |||
| this.type = type; | |||
| this.desc = desc; | |||
| } | |||
| } | |||
| @ -1,45 +0,0 @@ | |||
| package com.inspect.access.lib.enumeration; | |||
| public enum CFG_EM_ASG_VOICE_DIRECTION { | |||
| CFG_EM_ASG_VOICE_DIRECTION_UNKNOWN(0, "未知"), | |||
| CFG_EM_ASG_VOICE_DIRECTION_ENTER(1, "进入"), | |||
| CFG_EM_ASG_VOICE_DIRECTION_LEAVE(2, "离开"); | |||
| private int direction; | |||
| private String desc; | |||
| private CFG_EM_ASG_VOICE_DIRECTION(int direction, String desc) { | |||
| this.direction = direction; | |||
| this.desc = desc; | |||
| } | |||
| public static CFG_EM_ASG_VOICE_DIRECTION getVoiceDirection(int direction) { | |||
| CFG_EM_ASG_VOICE_DIRECTION[] var1 = values(); | |||
| int var2 = var1.length; | |||
| for(int var3 = 0; var3 < var2; ++var3) { | |||
| CFG_EM_ASG_VOICE_DIRECTION voiceDirection = var1[var3]; | |||
| if(voiceDirection.direction == direction) { | |||
| return voiceDirection; | |||
| } | |||
| } | |||
| return CFG_EM_ASG_VOICE_DIRECTION_UNKNOWN; | |||
| } | |||
| public int getDirection() { | |||
| return this.direction; | |||
| } | |||
| public void setDirection(int direction) { | |||
| this.direction = direction; | |||
| } | |||
| public String getDesc() { | |||
| return this.desc; | |||
| } | |||
| public void setDesc(String desc) { | |||
| this.desc = desc; | |||
| } | |||
| } | |||
| @ -1,72 +0,0 @@ | |||
| package com.inspect.access.lib.enumeration; | |||
| public enum CFG_EM_BODY_TRAIT { | |||
| CFG_EM_BODY_TRAIT_UNKNOWN(0, "未知"), | |||
| CFG_EM_BODY_TRAIT_SEX(1, "性别"), | |||
| CFG_EM_BODY_TRAIT_AGEGROUP(2, "年龄组"), | |||
| CFG_EM_BODY_TRAIT_COATTYPE(3, "上衣"), | |||
| CFG_EM_BODY_TRAIT_TROUSERSTYPE(4, "裤子"), | |||
| CFG_EM_BODY_TRAIT_ANGLE(5, "人体角度"), | |||
| CFG_EM_BODY_TRAIT_UPPERPATTERN(6, "上衣模式"), | |||
| CFG_EM_BODY_TRAIT_TROUSERSCOLOR(7, "裤子颜色"), | |||
| CFG_EM_BODY_TRAIT_UMBRELLA(8, "打伞"), | |||
| CFG_EM_BODY_TRAIT_UMBRELLACOLOR(9, "雨伞颜色"), | |||
| CFG_EM_BODY_TRAIT_HOLD(10, "胸前报东西"), | |||
| CFG_EM_BODY_TRAIT_TROUSERSPATTERN(11, "裤子模式"), | |||
| CFG_EM_BODY_TRAIT_HATTYPE(12, "帽子款式"), | |||
| CFG_EM_BODY_TRAIT_HATCOLOR(13, "帽子颜色"), | |||
| CFG_EM_BODY_TRAIT_UPPERTYPE(14, "上衣款式"), | |||
| CFG_EM_BODY_TRAIT_COATCOLOR(15, "上衣颜色"), | |||
| CFG_EM_BODY_TRAIT_HAIRSTYLE(16, "发型"), | |||
| CFG_EM_BODY_TRAIT_HAIRCOLOR(17, "头发颜色"), | |||
| CFG_EM_BODY_TRAIT_SHOESTYPE(18, "鞋子款式"), | |||
| CFG_EM_BODY_TRAIT_SHOESCOLOR(19, "鞋子颜色"), | |||
| CFG_EM_BODY_TRAIT_BAG(20, "箱包款式"), | |||
| CFG_EM_BODY_TRAIT_BAGCOLOR(21, "箱包颜色"), | |||
| CFG_EM_BODY_TRAIT_MASK(22, "口罩"), | |||
| CFG_EM_BODY_TRAIT_MASKCOLOR(23, "口罩颜色"); | |||
| private int value; | |||
| private String note; | |||
| private CFG_EM_BODY_TRAIT(int givenValue, String note) { | |||
| this.value = givenValue; | |||
| this.note = note; | |||
| } | |||
| public String getNote() { | |||
| return this.note; | |||
| } | |||
| public int getValue() { | |||
| return this.value; | |||
| } | |||
| public static String getNoteByValue(int givenValue) { | |||
| CFG_EM_BODY_TRAIT[] var1 = values(); | |||
| int var2 = var1.length; | |||
| for(int var3 = 0; var3 < var2; ++var3) { | |||
| CFG_EM_BODY_TRAIT enumType = var1[var3]; | |||
| if(givenValue == enumType.getValue()) { | |||
| return enumType.getNote(); | |||
| } | |||
| } | |||
| return null; | |||
| } | |||
| public static int getValueByNote(String givenNote) { | |||
| CFG_EM_BODY_TRAIT[] var1 = values(); | |||
| int var2 = var1.length; | |||
| for(int var3 = 0; var3 < var2; ++var3) { | |||
| CFG_EM_BODY_TRAIT enumType = var1[var3]; | |||
| if(givenNote.equals(enumType.getNote())) { | |||
| return enumType.getValue(); | |||
| } | |||
| } | |||
| return -1; | |||
| } | |||
| } | |||
| @ -1,52 +0,0 @@ | |||
| package com.inspect.access.lib.enumeration; | |||
| public enum CFG_EM_FACEDETECT_TYPE { | |||
| CFG_EM_FACEDETECT_TYPE_UNKNOWN(0, "未知"), | |||
| CFG_EM_FACEDETECT_TYPE_VISUAL(1, "可见光"), | |||
| CFG_EM_FACEDETECT_TYPE_THERMAL(2, "红外"), | |||
| CFG_EM_FACEDETECT_TYPE_SWITCHBYTIME(3, "按时间段切换"); | |||
| private int value; | |||
| private String note; | |||
| private CFG_EM_FACEDETECT_TYPE(int givenValue, String note) { | |||
| this.value = givenValue; | |||
| this.note = note; | |||
| } | |||
| public String getNote() { | |||
| return this.note; | |||
| } | |||
| public int getValue() { | |||
| return this.value; | |||
| } | |||
| public static String getNoteByValue(int givenValue) { | |||
| CFG_EM_FACEDETECT_TYPE[] var1 = values(); | |||
| int var2 = var1.length; | |||
| for(int var3 = 0; var3 < var2; ++var3) { | |||
| CFG_EM_FACEDETECT_TYPE enumType = var1[var3]; | |||
| if(givenValue == enumType.getValue()) { | |||
| return enumType.getNote(); | |||
| } | |||
| } | |||
| return null; | |||
| } | |||
| public static int getValueByNote(String givenNote) { | |||
| CFG_EM_FACEDETECT_TYPE[] var1 = values(); | |||
| int var2 = var1.length; | |||
| for(int var3 = 0; var3 < var2; ++var3) { | |||
| CFG_EM_FACEDETECT_TYPE enumType = var1[var3]; | |||
| if(givenNote.equals(enumType.getNote())) { | |||
| return enumType.getValue(); | |||
| } | |||
| } | |||
| return -1; | |||
| } | |||
| } | |||
| @ -1,58 +0,0 @@ | |||
| package com.inspect.access.lib.enumeration; | |||
| public enum CFG_EM_FACE_SNAP_POLICY { | |||
| CFG_EM_FACE_SNAP_POLICY_UNKNOWN(0, "未知"), | |||
| CFG_EM_FACE_SNAP_POLICY_REALTIME(1, "实时抓拍模式"), | |||
| CFG_EM_FACE_SNAP_POLICY_OPTIMAL(2, "优选抓拍模式"), | |||
| CFG_EM_FACE_SNAP_POLICY_QUALITY(3, "质量抓拍模式"), | |||
| CFG_EM_FACE_SNAP_POLICY_RECOGNITION(4, "识别优先抓拍模式"), | |||
| CFG_EM_FACE_SNAP_POLICY_QUICK(5, "快速优选"), | |||
| CFG_EM_FACE_SNAP_POLICY_FULLTRACK(6, "全程优选"), | |||
| CFG_EM_FACE_SNAP_POLICY_INTERVAL(7, "间隔抓拍"), | |||
| CFG_EM_FACE_SNAP_POLICY_SINGLE(8, "单人模式"), | |||
| CFG_EM_FACE_SNAP_POLICY_PRECISION(9, "高精度模式"); | |||
| private int value; | |||
| private String note; | |||
| private CFG_EM_FACE_SNAP_POLICY(int givenValue, String note) { | |||
| this.value = givenValue; | |||
| this.note = note; | |||
| } | |||
| public String getNote() { | |||
| return this.note; | |||
| } | |||
| public int getValue() { | |||
| return this.value; | |||
| } | |||
| public static String getNoteByValue(int givenValue) { | |||
| CFG_EM_FACE_SNAP_POLICY[] var1 = values(); | |||
| int var2 = var1.length; | |||
| for(int var3 = 0; var3 < var2; ++var3) { | |||
| CFG_EM_FACE_SNAP_POLICY enumType = var1[var3]; | |||
| if(givenValue == enumType.getValue()) { | |||
| return enumType.getNote(); | |||
| } | |||
| } | |||
| return null; | |||
| } | |||
| public static int getValueByNote(String givenNote) { | |||
| CFG_EM_FACE_SNAP_POLICY[] var1 = values(); | |||
| int var2 = var1.length; | |||
| for(int var3 = 0; var3 < var2; ++var3) { | |||
| CFG_EM_FACE_SNAP_POLICY enumType = var1[var3]; | |||
| if(givenNote.equals(enumType.getNote())) { | |||
| return enumType.getValue(); | |||
| } | |||
| } | |||
| return -1; | |||
| } | |||
| } | |||
| @ -1,56 +0,0 @@ | |||
| package com.inspect.access.lib.enumeration; | |||
| public enum CFG_EM_FACE_TRAIT { | |||
| CFG_EM_FACE_TRAIT_UNKNOWN(0, "未知"), | |||
| CFG_EM_FACE_TRAIT_SEX(1, "性别"), | |||
| CFG_EM_FACE_TRAIT_AGE(2, "年龄"), | |||
| CFG_EM_FACE_TRAIT_GLASSES(3, "眼镜"), | |||
| CFG_EM_FACE_TRAIT_BEARD(4, "胡子"), | |||
| CFG_EM_FACE_TRAIT_COMPLEXION(5, "肤色"), | |||
| CFG_EM_FACE_TRAIT_MASK(6, "口罩"), | |||
| CFG_EM_FACE_TRAIT_EMOTION(7, "表情"); | |||
| private int value; | |||
| private String note; | |||
| private CFG_EM_FACE_TRAIT(int givenValue, String note) { | |||
| this.value = givenValue; | |||
| this.note = note; | |||
| } | |||
| public String getNote() { | |||
| return this.note; | |||
| } | |||
| public int getValue() { | |||
| return this.value; | |||
| } | |||
| public static String getNoteByValue(int givenValue) { | |||
| CFG_EM_FACE_TRAIT[] var1 = values(); | |||
| int var2 = var1.length; | |||
| for(int var3 = 0; var3 < var2; ++var3) { | |||
| CFG_EM_FACE_TRAIT enumType = var1[var3]; | |||
| if(givenValue == enumType.getValue()) { | |||
| return enumType.getNote(); | |||
| } | |||
| } | |||
| return null; | |||
| } | |||
| public static int getValueByNote(String givenNote) { | |||
| CFG_EM_FACE_TRAIT[] var1 = values(); | |||
| int var2 = var1.length; | |||
| for(int var3 = 0; var3 < var2; ++var3) { | |||
| CFG_EM_FACE_TRAIT enumType = var1[var3]; | |||
| if(givenNote.equals(enumType.getNote())) { | |||
| return enumType.getValue(); | |||
| } | |||
| } | |||
| return -1; | |||
| } | |||
| } | |||
| @ -1,50 +0,0 @@ | |||
| package com.inspect.access.lib.enumeration; | |||
| public enum CFG_EM_INSTANCE_SUBCLASS_TYPE { | |||
| CFG_EM_INSTANCE_SUBCLASS_TYPE_LOCAL(0, "本地实例"), | |||
| CFG_EM_INSTANCE_SUBCLASS_TYPE_REMOTE(1, "远程实例"); | |||
| private int value; | |||
| private String note; | |||
| private CFG_EM_INSTANCE_SUBCLASS_TYPE(int givenValue, String note) { | |||
| this.value = givenValue; | |||
| this.note = note; | |||
| } | |||
| public String getNote() { | |||
| return this.note; | |||
| } | |||
| public int getValue() { | |||
| return this.value; | |||
| } | |||
| public static String getNoteByValue(int givenValue) { | |||
| CFG_EM_INSTANCE_SUBCLASS_TYPE[] var1 = values(); | |||
| int var2 = var1.length; | |||
| for(int var3 = 0; var3 < var2; ++var3) { | |||
| CFG_EM_INSTANCE_SUBCLASS_TYPE enumType = var1[var3]; | |||
| if(givenValue == enumType.getValue()) { | |||
| return enumType.getNote(); | |||
| } | |||
| } | |||
| return null; | |||
| } | |||
| public static int getValueByNote(String givenNote) { | |||
| CFG_EM_INSTANCE_SUBCLASS_TYPE[] var1 = values(); | |||
| int var2 = var1.length; | |||
| for(int var3 = 0; var3 < var2; ++var3) { | |||
| CFG_EM_INSTANCE_SUBCLASS_TYPE enumType = var1[var3]; | |||
| if(givenNote.equals(enumType.getNote())) { | |||
| return enumType.getValue(); | |||
| } | |||
| } | |||
| return -1; | |||
| } | |||
| } | |||
| @ -1,56 +0,0 @@ | |||
| package com.inspect.access.lib.enumeration; | |||
| public enum CFG_EM_VOICE_ID { | |||
| CFG_EM_VOICE_ID_UNKNOWN(-1, "未知"), | |||
| CFG_EM_VOICE_ID_VERIFY_SUCCESS(0, "验证成功(默认)"), | |||
| CFG_EM_VOICE_ID_OPENDOOR_SUCCESS(1, "开门成功"), | |||
| CFG_EM_VOICE_ID_UNLOCK_SUCCESS(2, "开锁成功"), | |||
| CFG_EM_VOICE_ID_SWIPECARD_SUCCESS(3, "刷卡成功"), | |||
| CFG_EM_VOICE_ID_WELCOME(4, "欢迎光临"), | |||
| CFG_EM_VOICE_ID_WELCOME_BACK(5, "欢迎再次光临"), | |||
| CFG_EM_VOICE_ID_THANKS(6, "谢谢"), | |||
| CFG_EM_VOICE_ID_CUSTOMIZED_VOICE(7, "自定义"), | |||
| CFG_EM_VOICE_ID_NO_VOICE(8, "无声音"), | |||
| CFG_EM_VOICE_ID_WELCOME_HOME(9, "欢迎回家"), | |||
| CFG_EM_VOICE_ID_GOOD_JOURNEY(10, "一路顺风"), | |||
| CFG_EM_VOICE_ID_WELCOME_BACK_NEXT(11, "欢迎下次光临"), | |||
| CFG_EM_VOICE_ID_THANKS_FOR_PATRONAGE(12, "谢谢惠顾"); | |||
| private int id; | |||
| private String desc; | |||
| private CFG_EM_VOICE_ID(int id, String desc) { | |||
| this.id = id; | |||
| this.desc = desc; | |||
| } | |||
| public static CFG_EM_VOICE_ID getVoiceID(int id) { | |||
| CFG_EM_VOICE_ID[] var1 = values(); | |||
| int var2 = var1.length; | |||
| for(int var3 = 0; var3 < var2; ++var3) { | |||
| CFG_EM_VOICE_ID voiceID = var1[var3]; | |||
| if(voiceID.id == id) { | |||
| return voiceID; | |||
| } | |||
| } | |||
| return CFG_EM_VOICE_ID_UNKNOWN; | |||
| } | |||
| public int getId() { | |||
| return this.id; | |||
| } | |||
| public void setId(int id) { | |||
| this.id = id; | |||
| } | |||
| public String getDesc() { | |||
| return this.desc; | |||
| } | |||
| public void setDesc(String desc) { | |||
| this.desc = desc; | |||
| } | |||
| } | |||
| @ -1,14 +0,0 @@ | |||
| package com.inspect.access.lib.enumeration; | |||
| public enum DH_LOG_QUERY_TYPE { | |||
| DHLOG_ALL, | |||
| DHLOG_SYSTEM, | |||
| DHLOG_CONFIG, | |||
| DHLOG_STORAGE, | |||
| DHLOG_ALARM, | |||
| DHLOG_RECORD, | |||
| DHLOG_ACCOUNT, | |||
| DHLOG_CLEAR, | |||
| DHLOG_PLAYBACK, | |||
| DHLOG_MANAGER; | |||
| } | |||
| @ -1,105 +0,0 @@ | |||
| package com.inspect.access.lib.enumeration; | |||
| public enum EMDeviceType { | |||
| NET_PRODUCT_NONE(0, "未知"), | |||
| NET_DVR_NONREALTIME_MACE(1, "非实时MACE"), | |||
| NET_DVR_NONREALTIME(2, "非实时"), | |||
| NET_NVS_MPEG1(3, "网络视频服务器"), | |||
| NET_DVR_MPEG1_2(4, "MPEG1二路录像机"), | |||
| NET_DVR_MPEG1_8(5, "MPEG1八路录像机"), | |||
| NET_DVR_MPEG4_8(6, "MPEG4八路录像机"), | |||
| NET_DVR_MPEG4_16(7, "MPEG4十六路录像机"), | |||
| NET_DVR_MPEG4_SX2(8, "LB系列录像机"), | |||
| NET_DVR_MEPG4_ST2(9, "GB系列录像机"), | |||
| NET_DVR_MEPG4_SH2(10, "HB系列录像机"), | |||
| NET_DVR_MPEG4_GBE(11, "GBE系列录像机"), | |||
| NET_DVR_MPEG4_NVSII(12, "II代网络视频服务器"), | |||
| NET_DVR_STD_NEW(13, "新标准配置协议"), | |||
| NET_DVR_DDNS(14, "DDNS服务器"), | |||
| NET_DVR_ATM(15, "ATM机"), | |||
| NET_NB_SERIAL(16, "二代非实时NB系列机器"), | |||
| NET_LN_SERIAL(17, "LN系列产品"), | |||
| NET_BAV_SERIAL(18, "BAV系列产品"), | |||
| NET_SDIP_SERIAL(19, "SDIP系列产品"), | |||
| NET_IPC_SERIAL(20, "IPC系列产品"), | |||
| NET_NVS_B(21, "NVS B系列"), | |||
| NET_NVS_C(22, "NVS H系列"), | |||
| NET_NVS_S(23, "NVS S系列"), | |||
| NET_NVS_E(24, "NVS E系列"), | |||
| NET_DVR_NEW_PROTOCOL(25, "从QueryDevState中查询设备类型,以字符串格式"), | |||
| NET_NVD_SERIAL(26, "解码器"), | |||
| NET_DVR_N5(27, "N5"), | |||
| NET_DVR_MIX_DVR(28, "混合DVR"), | |||
| NET_SVR_SERIAL(29, "SVR系列"), | |||
| NET_SVR_BS(30, "SVR-BS"), | |||
| NET_NVR_SERIAL(31, "NVR系列"), | |||
| NET_DVR_N51(32, "N51"), | |||
| NET_ITSE_SERIAL(33, "ITSE 智能分析盒"), | |||
| NET_ITC_SERIAL(34, "智能交通像机设备"), | |||
| NET_HWS_SERIAL(35, "雷达测速仪HWS"), | |||
| NET_PVR_SERIAL(36, "便携式音视频录像机"), | |||
| NET_IVS_SERIAL(37, "IVS(智能视频服务器系列)"), | |||
| NET_IVS_B(38, "通用智能视频侦测服务器"), | |||
| NET_IVS_F(39, "人脸识别服务器"), | |||
| NET_IVS_V(40, "视频质量诊断服务器"), | |||
| NET_MATRIX_SERIAL(41, "矩阵"), | |||
| NET_DVR_N52(42, "N52"), | |||
| NET_DVR_N56(43, "N56"), | |||
| NET_ESS_SERIAL(44, "ESS"), | |||
| NET_IVS_PC(45, "人数统计服务器"), | |||
| NET_PC_NVR(46, "pc-nvr"), | |||
| NET_DSCON(47, "大屏控制器"), | |||
| NET_EVS(48, "网络视频存储服务器"), | |||
| NET_EIVS(49, "嵌入式智能分析视频系统"), | |||
| NET_DVR_N6(50, "DVR-N6"), | |||
| NET_UDS(51, "万能解码器"), | |||
| NET_AF6016(52, "银行报警主机"), | |||
| NET_AS5008(53, "视频网络报警主机"), | |||
| NET_AH2008(54, "网络报警主机"), | |||
| NET_A_SERIAL(55, "报警主机系列"), | |||
| NET_BSC_SERIAL(56, "门禁系列产品"), | |||
| NET_NVS_SERIAL(57, "NVS系列产品"), | |||
| NET_VTO_SERIAL(58, "VTO系列产品"), | |||
| NET_VTNC_SERIAL(59, "VTNC系列产品"), | |||
| NET_TPC_SERIAL(60, "TPC系列产品(热成像设备)"), | |||
| NET_ASM_SERIAL(61, "无线中继设备"), | |||
| NET_VTS_SERIAL(62, "管理机"); | |||
| private int type; | |||
| private String desc; | |||
| private EMDeviceType(int type, String desc) { | |||
| this.type = type; | |||
| this.desc = desc; | |||
| } | |||
| public int getType() { | |||
| return this.type; | |||
| } | |||
| public void setType(int type) { | |||
| this.type = type; | |||
| } | |||
| public String getDesc() { | |||
| return this.desc; | |||
| } | |||
| public void setDesc(String desc) { | |||
| this.desc = desc; | |||
| } | |||
| public static EMDeviceType getEMDeviceType(int type) { | |||
| EMDeviceType[] var1 = values(); | |||
| int var2 = var1.length; | |||
| for(int var3 = 0; var3 < var2; ++var3) { | |||
| EMDeviceType deviceType = var1[var3]; | |||
| if(deviceType.getType() == type) { | |||
| return deviceType; | |||
| } | |||
| } | |||
| return null; | |||
| } | |||
| } | |||
| @ -1,65 +0,0 @@ | |||
| package com.inspect.access.lib.enumeration; | |||
| public enum EM_ACROSS_PARKING { | |||
| EM_ACROSS_PARKING_UNKNOWN(0, "未知"), | |||
| EM_ACROSS_PARKING_NO(1, "未跨位"), | |||
| EM_ACROSS_PARKING_YES(2, "跨位"); | |||
| private int value; | |||
| private String note; | |||
| private EM_ACROSS_PARKING(int givenValue, String note) { | |||
| this.value = givenValue; | |||
| this.note = note; | |||
| } | |||
| public String getNote() { | |||
| return this.note; | |||
| } | |||
| public int getValue() { | |||
| return this.value; | |||
| } | |||
| public static String getNoteByValue(int givenValue) { | |||
| EM_ACROSS_PARKING[] var1 = values(); | |||
| int var2 = var1.length; | |||
| for(int var3 = 0; var3 < var2; ++var3) { | |||
| EM_ACROSS_PARKING enumType = var1[var3]; | |||
| if(givenValue == enumType.getValue()) { | |||
| return enumType.getNote(); | |||
| } | |||
| } | |||
| return null; | |||
| } | |||
| public static int getValueByNote(String givenNote) { | |||
| EM_ACROSS_PARKING[] var1 = values(); | |||
| int var2 = var1.length; | |||
| for(int var3 = 0; var3 < var2; ++var3) { | |||
| EM_ACROSS_PARKING enumType = var1[var3]; | |||
| if(givenNote.equals(enumType.getNote())) { | |||
| return enumType.getValue(); | |||
| } | |||
| } | |||
| return -1; | |||
| } | |||
| public static EM_ACROSS_PARKING getEnum(int value) { | |||
| EM_ACROSS_PARKING[] var1 = values(); | |||
| int var2 = var1.length; | |||
| for(int var3 = 0; var3 < var2; ++var3) { | |||
| EM_ACROSS_PARKING e = var1[var3]; | |||
| if(e.getValue() == value) { | |||
| return e; | |||
| } | |||
| } | |||
| return EM_ACROSS_PARKING_UNKNOWN; | |||
| } | |||
| } | |||
| @ -1,21 +0,0 @@ | |||
| package com.inspect.access.lib.enumeration; | |||
| public enum EM_ALARMOUT_POLE { | |||
| EM_ALARMOUT_POLE_UNKNOWN, | |||
| EM_ALARMOUT_POLE_LOW, | |||
| EM_ALARMOUT_POLE_HIGH; | |||
| public static EM_ALARMOUT_POLE getAlarmOutPole(int pole) { | |||
| EM_ALARMOUT_POLE[] var1 = values(); | |||
| int var2 = var1.length; | |||
| for(int var3 = 0; var3 < var2; ++var3) { | |||
| EM_ALARMOUT_POLE alarmOutPole = var1[var3]; | |||
| if(alarmOutPole.ordinal() == pole) { | |||
| return alarmOutPole; | |||
| } | |||
| } | |||
| return EM_ALARMOUT_POLE_UNKNOWN; | |||
| } | |||
| } | |||
| @ -1,22 +0,0 @@ | |||
| package com.inspect.access.lib.enumeration; | |||
| public enum EM_ALGORITHM_PARTITION_TYPE { | |||
| EM_ALGORITHM_PARTITION_UNKNOWN, | |||
| EM_ALGORITHM_PARTITION_EXT4, | |||
| EM_ALGORITHM_PARTITION_SUQSHFS, | |||
| EM_ALGORITHM_PARTITION_UBIFS; | |||
| public static EM_ALGORITHM_PARTITION_TYPE getAlgorithmPartitionType(int type) { | |||
| EM_ALGORITHM_PARTITION_TYPE[] var1 = values(); | |||
| int var2 = var1.length; | |||
| for(int var3 = 0; var3 < var2; ++var3) { | |||
| EM_ALGORITHM_PARTITION_TYPE partitionType = var1[var3]; | |||
| if(partitionType.ordinal() == type) { | |||
| return partitionType; | |||
| } | |||
| } | |||
| return EM_ALGORITHM_PARTITION_UNKNOWN; | |||
| } | |||
| } | |||
| @ -1,45 +0,0 @@ | |||
| package com.inspect.access.lib.enumeration; | |||
| public enum EM_ASG_WORK_MODE { | |||
| EM_ASG_WORK_MODE_UNKNOWN(-1, "未知"), | |||
| EM_ASG_WORK_MODE_CLOSE(0, "常闭模式"), | |||
| EM_ASG_WORK_MODE_OPEN(1, "常开模式"); | |||
| private int mode; | |||
| private String desc; | |||
| private EM_ASG_WORK_MODE(int mode, String desc) { | |||
| this.mode = mode; | |||
| this.desc = desc; | |||
| } | |||
| public static EM_ASG_WORK_MODE getAsgWorkMode(int mode) { | |||
| EM_ASG_WORK_MODE[] var1 = values(); | |||
| int var2 = var1.length; | |||
| for(int var3 = 0; var3 < var2; ++var3) { | |||
| EM_ASG_WORK_MODE workMode = var1[var3]; | |||
| if(workMode.mode == mode) { | |||
| return workMode; | |||
| } | |||
| } | |||
| return EM_ASG_WORK_MODE_UNKNOWN; | |||
| } | |||
| public int getMode() { | |||
| return this.mode; | |||
| } | |||
| public void setMode(int mode) { | |||
| this.mode = mode; | |||
| } | |||
| public String getDesc() { | |||
| return this.desc; | |||
| } | |||
| public void setDesc(String desc) { | |||
| this.desc = desc; | |||
| } | |||
| } | |||
| @ -1,52 +0,0 @@ | |||
| package com.inspect.access.lib.enumeration; | |||
| public enum EM_AUDIO_DATA_SOURCE_TYPE { | |||
| EM_AUDIO_DATA_SOURCE_TYPE_UNKNOWN(-1, "未知数据类型"), | |||
| EM_AUDIO_DATA_SOURCE_TYPE_TALK(0, "对讲数据"), | |||
| EM_AUDIO_DATA_SOURCE_TYPE_NORMAL(1, "普通音频数据,如伴音"), | |||
| EM_AUDIO_DATA_SOURCE_TYPE_ALARM(2, "报警音频数据流"); | |||
| private int value; | |||
| private String note; | |||
| private EM_AUDIO_DATA_SOURCE_TYPE(int givenValue, String note) { | |||
| this.value = givenValue; | |||
| this.note = note; | |||
| } | |||
| public String getNote() { | |||
| return this.note; | |||
| } | |||
| public int getValue() { | |||
| return this.value; | |||
| } | |||
| public static String getNoteByValue(int givenValue) { | |||
| EM_AUDIO_DATA_SOURCE_TYPE[] var1 = values(); | |||
| int var2 = var1.length; | |||
| for(int var3 = 0; var3 < var2; ++var3) { | |||
| EM_AUDIO_DATA_SOURCE_TYPE enumType = var1[var3]; | |||
| if(givenValue == enumType.getValue()) { | |||
| return enumType.getNote(); | |||
| } | |||
| } | |||
| return null; | |||
| } | |||
| public static int getValueByNote(String givenNote) { | |||
| EM_AUDIO_DATA_SOURCE_TYPE[] var1 = values(); | |||
| int var2 = var1.length; | |||
| for(int var3 = 0; var3 < var2; ++var3) { | |||
| EM_AUDIO_DATA_SOURCE_TYPE enumType = var1[var3]; | |||
| if(givenNote.equals(enumType.getNote())) { | |||
| return enumType.getValue(); | |||
| } | |||
| } | |||
| return -2; | |||
| } | |||
| } | |||
| @ -1,23 +0,0 @@ | |||
| package com.inspect.access.lib.enumeration; | |||
| public enum EM_AUDIO_DATA_TYPE { | |||
| EM_AUDIO_DATA_TYPE_DEFAULT, | |||
| EM_AUDIO_DATA_TYPE_AAC, | |||
| EM_AUDIO_DATA_TYPE_G711A, | |||
| EM_AUDIO_DATA_TYPE_G711U, | |||
| EM_AUDIO_DATA_TYPE_MP2; | |||
| public static EM_AUDIO_DATA_TYPE getAudioDataType(int type) { | |||
| EM_AUDIO_DATA_TYPE[] var1 = values(); | |||
| int var2 = var1.length; | |||
| for(int var3 = 0; var3 < var2; ++var3) { | |||
| EM_AUDIO_DATA_TYPE audioType = var1[var3]; | |||
| if(audioType.ordinal() == type) { | |||
| return audioType; | |||
| } | |||
| } | |||
| return EM_AUDIO_DATA_TYPE_DEFAULT; | |||
| } | |||
| } | |||
| @ -1,51 +0,0 @@ | |||
| package com.inspect.access.lib.enumeration; | |||
| public enum EM_BATTERY_EXIST_STATE { | |||
| EM_BATTERY_EXIST_STATE_UNKNOWN(0, "电池在位未知"), | |||
| EM_BATTERY_EXIST_STATE_EXIST(1, "电池在位"), | |||
| EM_BATTERY_EXIST_STATE_MISSING(2, "电池丢失"); | |||
| private int value; | |||
| private String note; | |||
| private EM_BATTERY_EXIST_STATE(int givenValue, String note) { | |||
| this.value = givenValue; | |||
| this.note = note; | |||
| } | |||
| public String getNote() { | |||
| return this.note; | |||
| } | |||
| public int getValue() { | |||
| return this.value; | |||
| } | |||
| public static String getNoteByValue(int givenValue) { | |||
| EM_BATTERY_EXIST_STATE[] var1 = values(); | |||
| int var2 = var1.length; | |||
| for(int var3 = 0; var3 < var2; ++var3) { | |||
| EM_BATTERY_EXIST_STATE enumType = var1[var3]; | |||
| if(givenValue == enumType.getValue()) { | |||
| return enumType.getNote(); | |||
| } | |||
| } | |||
| return null; | |||
| } | |||
| public static int getValueByNote(String givenNote) { | |||
| EM_BATTERY_EXIST_STATE[] var1 = values(); | |||
| int var2 = var1.length; | |||
| for(int var3 = 0; var3 < var2; ++var3) { | |||
| EM_BATTERY_EXIST_STATE enumType = var1[var3]; | |||
| if(givenNote.equals(enumType.getNote())) { | |||
| return enumType.getValue(); | |||
| } | |||
| } | |||
| return -1; | |||
| } | |||
| } | |||
| @ -1,51 +0,0 @@ | |||
| package com.inspect.access.lib.enumeration; | |||
| public enum EM_BATTERY_STATE { | |||
| EM_BATTERY_STATE_UNKNOWN(0, "电量未知"), | |||
| EM_BATTERY_STATE_NORMAL(1, "电量正常"), | |||
| EM_BATTERY_STATE_LOW(2, "电量低"); | |||
| private int value; | |||
| private String note; | |||
| private EM_BATTERY_STATE(int givenValue, String note) { | |||
| this.value = givenValue; | |||
| this.note = note; | |||
| } | |||
| public String getNote() { | |||
| return this.note; | |||
| } | |||
| public int getValue() { | |||
| return this.value; | |||
| } | |||
| public static String getNoteByValue(int givenValue) { | |||
| EM_BATTERY_STATE[] var1 = values(); | |||
| int var2 = var1.length; | |||
| for(int var3 = 0; var3 < var2; ++var3) { | |||
| EM_BATTERY_STATE enumType = var1[var3]; | |||
| if(givenValue == enumType.getValue()) { | |||
| return enumType.getNote(); | |||
| } | |||
| } | |||
| return null; | |||
| } | |||
| public static int getValueByNote(String givenNote) { | |||
| EM_BATTERY_STATE[] var1 = values(); | |||
| int var2 = var1.length; | |||
| for(int var3 = 0; var3 < var2; ++var3) { | |||
| EM_BATTERY_STATE enumType = var1[var3]; | |||
| if(givenNote.equals(enumType.getNote())) { | |||
| return enumType.getValue(); | |||
| } | |||
| } | |||
| return -1; | |||
| } | |||
| } | |||
| @ -1,53 +0,0 @@ | |||
| package com.inspect.access.lib.enumeration; | |||
| public enum EM_CALIBRATEAREA_TYPE { | |||
| EM_CALIBRATEAREA_TYPE_ERR(0, "err"), | |||
| EM_CALIBRATEAREA_TYPE_GROUD(1, "Groud"), | |||
| EM_CALIBRATEAREA_TYPE_HORIZONTAL(2, "Horizontal"), | |||
| EM_CALIBRATEAREA_TYPE_VERTICAL(3, "Vertical"), | |||
| EM_CALIBRATEAREA_TYPE_ANY(4, "Any"); | |||
| private int value; | |||
| private String note; | |||
| private EM_CALIBRATEAREA_TYPE(int givenValue, String note) { | |||
| this.value = givenValue; | |||
| this.note = note; | |||
| } | |||
| public String getNote() { | |||
| return this.note; | |||
| } | |||
| public int getValue() { | |||
| return this.value; | |||
| } | |||
| public static String getNoteByValue(int givenValue) { | |||
| EM_CALIBRATEAREA_TYPE[] var1 = values(); | |||
| int var2 = var1.length; | |||
| for(int var3 = 0; var3 < var2; ++var3) { | |||
| EM_CALIBRATEAREA_TYPE enumType = var1[var3]; | |||
| if(givenValue == enumType.getValue()) { | |||
| return enumType.getNote(); | |||
| } | |||
| } | |||
| return null; | |||
| } | |||
| public static int getValueByNote(String givenNote) { | |||
| EM_CALIBRATEAREA_TYPE[] var1 = values(); | |||
| int var2 = var1.length; | |||
| for(int var3 = 0; var3 < var2; ++var3) { | |||
| EM_CALIBRATEAREA_TYPE enumType = var1[var3]; | |||
| if(givenNote.equals(enumType.getNote())) { | |||
| return enumType.getValue(); | |||
| } | |||
| } | |||
| return -1; | |||
| } | |||
| } | |||
| @ -1,51 +0,0 @@ | |||
| package com.inspect.access.lib.enumeration; | |||
| public enum EM_CAMERA_CONNECT_STATE { | |||
| EM_CAMERA_CONNECT_STATE_UNKNOWN(-1, "未知"), | |||
| EM_CAMERA_CONNECT_STATE_UNCONNECT(0, "未连接"), | |||
| EM_CAMERA_CONNECT_STATE_CONNECTED(1, "已连接"); | |||
| private int value; | |||
| private String note; | |||
| private EM_CAMERA_CONNECT_STATE(int givenValue, String note) { | |||
| this.value = givenValue; | |||
| this.note = note; | |||
| } | |||
| public String getNote() { | |||
| return this.note; | |||
| } | |||
| public int getValue() { | |||
| return this.value; | |||
| } | |||
| public static String getNoteByValue(int givenValue) { | |||
| EM_CAMERA_CONNECT_STATE[] var1 = values(); | |||
| int var2 = var1.length; | |||
| for(int var3 = 0; var3 < var2; ++var3) { | |||
| EM_CAMERA_CONNECT_STATE enumType = var1[var3]; | |||
| if(givenValue == enumType.getValue()) { | |||
| return enumType.getNote(); | |||
| } | |||
| } | |||
| return null; | |||
| } | |||
| public static int getValueByNote(String givenNote) { | |||
| EM_CAMERA_CONNECT_STATE[] var1 = values(); | |||
| int var2 = var1.length; | |||
| for(int var3 = 0; var3 < var2; ++var3) { | |||
| EM_CAMERA_CONNECT_STATE enumType = var1[var3]; | |||
| if(givenNote.equals(enumType.getNote())) { | |||
| return enumType.getValue(); | |||
| } | |||
| } | |||
| return -2; | |||
| } | |||
| } | |||
| @ -1,65 +0,0 @@ | |||
| package com.inspect.access.lib.enumeration; | |||
| public enum EM_CAN_START_STREAM { | |||
| EM_CAN_START_STREAM_UNKNOWN(-1, "未知"), | |||
| EM_CAN_START_STREAM_OFF(0, "不拉流"), | |||
| EM_CAN_START_STREAM_ON(1, "拉流"); | |||
| private int value; | |||
| private String note; | |||
| private EM_CAN_START_STREAM(int givenValue, String note) { | |||
| this.value = givenValue; | |||
| this.note = note; | |||
| } | |||
| public String getNote() { | |||
| return this.note; | |||
| } | |||
| public int getValue() { | |||
| return this.value; | |||
| } | |||
| public static String getNoteByValue(int givenValue) { | |||
| EM_CAN_START_STREAM[] var1 = values(); | |||
| int var2 = var1.length; | |||
| for(int var3 = 0; var3 < var2; ++var3) { | |||
| EM_CAN_START_STREAM enumType = var1[var3]; | |||
| if(givenValue == enumType.getValue()) { | |||
| return enumType.getNote(); | |||
| } | |||
| } | |||
| return null; | |||
| } | |||
| public static int getValueByNote(String givenNote) { | |||
| EM_CAN_START_STREAM[] var1 = values(); | |||
| int var2 = var1.length; | |||
| for(int var3 = 0; var3 < var2; ++var3) { | |||
| EM_CAN_START_STREAM enumType = var1[var3]; | |||
| if(givenNote.equals(enumType.getNote())) { | |||
| return enumType.getValue(); | |||
| } | |||
| } | |||
| return -1; | |||
| } | |||
| public static EM_CAN_START_STREAM getEnum(int value) { | |||
| EM_CAN_START_STREAM[] var1 = values(); | |||
| int var2 = var1.length; | |||
| for(int var3 = 0; var3 < var2; ++var3) { | |||
| EM_CAN_START_STREAM e = var1[var3]; | |||
| if(e.getValue() == value) { | |||
| return e; | |||
| } | |||
| } | |||
| return EM_CAN_START_STREAM_UNKNOWN; | |||
| } | |||
| } | |||
| @ -1,51 +0,0 @@ | |||
| package com.inspect.access.lib.enumeration; | |||
| public enum EM_CAPTURE_PROCESS_END_TYPE { | |||
| EM_CAPTURE_PROCESS_END_TYPE_UNKNOWN(-1, "未知"), | |||
| EM_CAPTURE_PROCESS_END_TYPE_ABNORMAL(0, "异常"), | |||
| EM_CAPTURE_PROCESS_END_TYPE_NORMAL(1, "正常"); | |||
| private int value; | |||
| private String note; | |||
| private EM_CAPTURE_PROCESS_END_TYPE(int givenValue, String note) { | |||
| this.value = givenValue; | |||
| this.note = note; | |||
| } | |||
| public String getNote() { | |||
| return this.note; | |||
| } | |||
| public int getValue() { | |||
| return this.value; | |||
| } | |||
| public static String getNoteByValue(int givenValue) { | |||
| EM_CAPTURE_PROCESS_END_TYPE[] var1 = values(); | |||
| int var2 = var1.length; | |||
| for(int var3 = 0; var3 < var2; ++var3) { | |||
| EM_CAPTURE_PROCESS_END_TYPE enumType = var1[var3]; | |||
| if(givenValue == enumType.getValue()) { | |||
| return enumType.getNote(); | |||
| } | |||
| } | |||
| return null; | |||
| } | |||
| public static int getValueByNote(String givenNote) { | |||
| EM_CAPTURE_PROCESS_END_TYPE[] var1 = values(); | |||
| int var2 = var1.length; | |||
| for(int var3 = 0; var3 < var2; ++var3) { | |||
| EM_CAPTURE_PROCESS_END_TYPE enumType = var1[var3]; | |||
| if(givenNote.equals(enumType.getNote())) { | |||
| return enumType.getValue(); | |||
| } | |||
| } | |||
| return -1; | |||
| } | |||
| } | |||
| @ -1,19 +0,0 @@ | |||
| package com.inspect.access.lib.enumeration; | |||
| public enum EM_CFG_CAP_CMD { | |||
| CFG_CAP_CMD_DEVICE_STATE("trafficSnap.getDeviceStatus"), | |||
| CFG_CAP_CMD_RECORDFINDER("RecordFinder.getCaps"), | |||
| CFG_CMD_VIDEODIAGNOSIS_GETSTATE("videoDiagnosisServer.getState"), | |||
| CFG_CAP_CMD_PTZ_ENABLE("ptz.factory.instance"); | |||
| public static final String CFG_CAP_CMD_ACCESSCONTROLMANAGER = "accessControlManager.getCaps"; | |||
| private String cmd; | |||
| private EM_CFG_CAP_CMD(String cmd) { | |||
| this.cmd = cmd; | |||
| } | |||
| public String getCmd() { | |||
| return this.cmd; | |||
| } | |||
| } | |||
| @ -1,50 +0,0 @@ | |||
| package com.inspect.access.lib.enumeration; | |||
| public enum EM_CHANNEL_WIDTH { | |||
| EM_CHANNEL_WIDTH_UNKNOWN(-1, "未知"), | |||
| EM_CHANNEL_WIDTH_600(0, "600mm"), | |||
| EM_CHANNEL_WIDTH_700(1, "700mm"), | |||
| EM_CHANNEL_WIDTH_800(2, "800mm"), | |||
| EM_CHANNEL_WIDTH_900(3, "900mm"), | |||
| EM_CHANNEL_WIDTH_1000(4, "1000mm"), | |||
| EM_CHANNEL_WIDTH_1100(5, "1100mm"), | |||
| EM_CHANNEL_WIDTH_1200(6, "1200mm"); | |||
| private int emWidth; | |||
| private String desc; | |||
| private EM_CHANNEL_WIDTH(int emWidth, String desc) { | |||
| this.emWidth = emWidth; | |||
| this.desc = desc; | |||
| } | |||
| public int getEmWidth() { | |||
| return this.emWidth; | |||
| } | |||
| public void setEmWidth(int emWidth) { | |||
| this.emWidth = emWidth; | |||
| } | |||
| public String getDesc() { | |||
| return this.desc; | |||
| } | |||
| public void setDesc(String desc) { | |||
| this.desc = desc; | |||
| } | |||
| public static EM_CHANNEL_WIDTH getChannelWidth(int emWidth) { | |||
| EM_CHANNEL_WIDTH[] var1 = values(); | |||
| int var2 = var1.length; | |||
| for(int var3 = 0; var3 < var2; ++var3) { | |||
| EM_CHANNEL_WIDTH channelWidth = var1[var3]; | |||
| if(channelWidth.emWidth == emWidth) { | |||
| return channelWidth; | |||
| } | |||
| } | |||
| return EM_CHANNEL_WIDTH_UNKNOWN; | |||
| } | |||
| } | |||
| @ -1,20 +0,0 @@ | |||
| package com.inspect.access.lib.enumeration; | |||
| public enum EM_COLLECTIVITY_STATE { | |||
| EM_COLLECTIVITY_STATE_SUCCESSED, | |||
| EM_COLLECTIVITY_STATE_FAILED; | |||
| public EM_COLLECTIVITY_STATE getCollectivityState(int state) { | |||
| EM_COLLECTIVITY_STATE[] var2 = values(); | |||
| int var3 = var2.length; | |||
| for(int var4 = 0; var4 < var3; ++var4) { | |||
| EM_COLLECTIVITY_STATE collectivityState = var2[var4]; | |||
| if(collectivityState.ordinal() == state) { | |||
| return collectivityState; | |||
| } | |||
| } | |||
| return EM_COLLECTIVITY_STATE_FAILED; | |||
| } | |||
| } | |||
| @ -1,32 +0,0 @@ | |||
| package com.inspect.access.lib.enumeration; | |||
| public enum EM_COLLISION_MODE { | |||
| EM_COLLISION_MODE_UNKNOWN(-1, "未知"), | |||
| EM_COLLISION_MODE_2S(0, "2s松开离合"), | |||
| EM_COLLISION_MODE_5S(1, "5s松开离合"), | |||
| EM_COLLISION_MODE_LEAVING(2, "人员离开松开离合"); | |||
| private int mode; | |||
| private String desc; | |||
| private EM_COLLISION_MODE(int mode, String desc) { | |||
| this.mode = mode; | |||
| this.desc = desc; | |||
| } | |||
| public int getMode() { | |||
| return this.mode; | |||
| } | |||
| public void setMode(int mode) { | |||
| this.mode = mode; | |||
| } | |||
| public String getDesc() { | |||
| return this.desc; | |||
| } | |||
| public void setDesc(String desc) { | |||
| this.desc = desc; | |||
| } | |||
| } | |||
| @ -1,66 +0,0 @@ | |||
| package com.inspect.access.lib.enumeration; | |||
| public enum EM_COMPOSIT_CHANNEL_BIND_MODE { | |||
| EM_COMPOSIT_CHANNEL_BIND_MODE_UNKNOWN(0, "未知"), | |||
| EM_COMPOSIT_CHANNEL_BIND_MODE_AUTOMATIC(1, "自动"), | |||
| EM_COMPOSIT_CHANNEL_BIND_MODE_SEMIAUTOMATIC(2, "半自动"), | |||
| EM_COMPOSIT_CHANNEL_BIND_MODE_MANUAL(3, "手动"); | |||
| private int value; | |||
| private String note; | |||
| private EM_COMPOSIT_CHANNEL_BIND_MODE(int givenValue, String note) { | |||
| this.value = givenValue; | |||
| this.note = note; | |||
| } | |||
| public String getNote() { | |||
| return this.note; | |||
| } | |||
| public int getValue() { | |||
| return this.value; | |||
| } | |||
| public static String getNoteByValue(int givenValue) { | |||
| EM_COMPOSIT_CHANNEL_BIND_MODE[] var1 = values(); | |||
| int var2 = var1.length; | |||
| for(int var3 = 0; var3 < var2; ++var3) { | |||
| EM_COMPOSIT_CHANNEL_BIND_MODE enumType = var1[var3]; | |||
| if(givenValue == enumType.getValue()) { | |||
| return enumType.getNote(); | |||
| } | |||
| } | |||
| return null; | |||
| } | |||
| public static int getValueByNote(String givenNote) { | |||
| EM_COMPOSIT_CHANNEL_BIND_MODE[] var1 = values(); | |||
| int var2 = var1.length; | |||
| for(int var3 = 0; var3 < var2; ++var3) { | |||
| EM_COMPOSIT_CHANNEL_BIND_MODE enumType = var1[var3]; | |||
| if(givenNote.equals(enumType.getNote())) { | |||
| return enumType.getValue(); | |||
| } | |||
| } | |||
| return -1; | |||
| } | |||
| public static EM_COMPOSIT_CHANNEL_BIND_MODE getEnum(int value) { | |||
| EM_COMPOSIT_CHANNEL_BIND_MODE[] var1 = values(); | |||
| int var2 = var1.length; | |||
| for(int var3 = 0; var3 < var2; ++var3) { | |||
| EM_COMPOSIT_CHANNEL_BIND_MODE e = var1[var3]; | |||
| if(e.getValue() == value) { | |||
| return e; | |||
| } | |||
| } | |||
| return EM_COMPOSIT_CHANNEL_BIND_MODE_UNKNOWN; | |||
| } | |||
| } | |||
| @ -1,67 +0,0 @@ | |||
| package com.inspect.access.lib.enumeration; | |||
| public enum EM_COURSECOMPOSITE_OPERATE_TYPE { | |||
| EM_COURSECOMPOSITE_TYPE_LOCK_CONTROL(0, "控制组合通道与逻辑通道"), | |||
| EM_COURSECOMPOSITE_TYPE_GET_LOCKINFO(1, "获取组合通道与逻辑通道的锁定信息"), | |||
| EM_COURSECOMPOSITE_TYPE_GET_INFO(2, "获取组合通道信息"), | |||
| EM_COURSECOMPOSITE_TYPE_SET_INFO(3, "设置组合通道信息"), | |||
| EM_COURSECOMPOSITE_TYPE_UPDATE_INFO(4, "将组合通道信息更新到time时的信息"); | |||
| private int value; | |||
| private String note; | |||
| private EM_COURSECOMPOSITE_OPERATE_TYPE(int givenValue, String note) { | |||
| this.value = givenValue; | |||
| this.note = note; | |||
| } | |||
| public String getNote() { | |||
| return this.note; | |||
| } | |||
| public int getValue() { | |||
| return this.value; | |||
| } | |||
| public static String getNoteByValue(int givenValue) { | |||
| EM_COURSECOMPOSITE_OPERATE_TYPE[] var1 = values(); | |||
| int var2 = var1.length; | |||
| for(int var3 = 0; var3 < var2; ++var3) { | |||
| EM_COURSECOMPOSITE_OPERATE_TYPE enumType = var1[var3]; | |||
| if(givenValue == enumType.getValue()) { | |||
| return enumType.getNote(); | |||
| } | |||
| } | |||
| return null; | |||
| } | |||
| public static int getValueByNote(String givenNote) { | |||
| EM_COURSECOMPOSITE_OPERATE_TYPE[] var1 = values(); | |||
| int var2 = var1.length; | |||
| for(int var3 = 0; var3 < var2; ++var3) { | |||
| EM_COURSECOMPOSITE_OPERATE_TYPE enumType = var1[var3]; | |||
| if(givenNote.equals(enumType.getNote())) { | |||
| return enumType.getValue(); | |||
| } | |||
| } | |||
| return -1; | |||
| } | |||
| public static EM_COURSECOMPOSITE_OPERATE_TYPE getEnum(int value) { | |||
| EM_COURSECOMPOSITE_OPERATE_TYPE[] var1 = values(); | |||
| int var2 = var1.length; | |||
| for(int var3 = 0; var3 < var2; ++var3) { | |||
| EM_COURSECOMPOSITE_OPERATE_TYPE e = var1[var3]; | |||
| if(e.getValue() == value) { | |||
| return e; | |||
| } | |||
| } | |||
| return EM_COURSECOMPOSITE_TYPE_LOCK_CONTROL; | |||
| } | |||
| } | |||
| @ -1,66 +0,0 @@ | |||
| package com.inspect.access.lib.enumeration; | |||
| public enum EM_COURSERECORD_OPERATE_TYPE { | |||
| EM_COURSERECORDE_TYPE_GET_INFO(0, "获取教室录像信息"), | |||
| EM_COURSERECORDE_TYPE_SET_INFO(1, "设置教室录像信息"), | |||
| EM_COURSERECORDE_TYPE_UPDATE_INFO(2, "将录像信息更新到time时的信息"), | |||
| EM_COURSERECORDE_TYPE_GET_TIME(3, "获取当前课程教室已录制时间"); | |||
| private int value; | |||
| private String note; | |||
| private EM_COURSERECORD_OPERATE_TYPE(int givenValue, String note) { | |||
| this.value = givenValue; | |||
| this.note = note; | |||
| } | |||
| public String getNote() { | |||
| return this.note; | |||
| } | |||
| public int getValue() { | |||
| return this.value; | |||
| } | |||
| public static String getNoteByValue(int givenValue) { | |||
| EM_COURSERECORD_OPERATE_TYPE[] var1 = values(); | |||
| int var2 = var1.length; | |||
| for(int var3 = 0; var3 < var2; ++var3) { | |||
| EM_COURSERECORD_OPERATE_TYPE enumType = var1[var3]; | |||
| if(givenValue == enumType.getValue()) { | |||
| return enumType.getNote(); | |||
| } | |||
| } | |||
| return null; | |||
| } | |||
| public static int getValueByNote(String givenNote) { | |||
| EM_COURSERECORD_OPERATE_TYPE[] var1 = values(); | |||
| int var2 = var1.length; | |||
| for(int var3 = 0; var3 < var2; ++var3) { | |||
| EM_COURSERECORD_OPERATE_TYPE enumType = var1[var3]; | |||
| if(givenNote.equals(enumType.getNote())) { | |||
| return enumType.getValue(); | |||
| } | |||
| } | |||
| return -1; | |||
| } | |||
| public static EM_COURSERECORD_OPERATE_TYPE getEnum(int value) { | |||
| EM_COURSERECORD_OPERATE_TYPE[] var1 = values(); | |||
| int var2 = var1.length; | |||
| for(int var3 = 0; var3 < var2; ++var3) { | |||
| EM_COURSERECORD_OPERATE_TYPE e = var1[var3]; | |||
| if(e.getValue() == value) { | |||
| return e; | |||
| } | |||
| } | |||
| return EM_COURSERECORDE_TYPE_GET_INFO; | |||
| } | |||
| } | |||
| @ -1,66 +0,0 @@ | |||
| package com.inspect.access.lib.enumeration; | |||
| public enum EM_COURSE_LOCK_TYPE { | |||
| EM_COURSE_LOCK_TYPE_UNKNOWN(-1, "未知"), | |||
| EM_COURSE_LOCK_TYPE_ALL(0, "全部类型"), | |||
| EM_COURSE_LOCK_TYPE_NON_LOCKING(1, "非锁定类型"), | |||
| EM_COURSE_LOCK_TYPE_LOCK(2, "锁定类型"); | |||
| private int value; | |||
| private String note; | |||
| private EM_COURSE_LOCK_TYPE(int givenValue, String note) { | |||
| this.value = givenValue; | |||
| this.note = note; | |||
| } | |||
| public String getNote() { | |||
| return this.note; | |||
| } | |||
| public int getValue() { | |||
| return this.value; | |||
| } | |||
| public static String getNoteByValue(int givenValue) { | |||
| EM_COURSE_LOCK_TYPE[] var1 = values(); | |||
| int var2 = var1.length; | |||
| for(int var3 = 0; var3 < var2; ++var3) { | |||
| EM_COURSE_LOCK_TYPE enumType = var1[var3]; | |||
| if(givenValue == enumType.getValue()) { | |||
| return enumType.getNote(); | |||
| } | |||
| } | |||
| return null; | |||
| } | |||
| public static int getValueByNote(String givenNote) { | |||
| EM_COURSE_LOCK_TYPE[] var1 = values(); | |||
| int var2 = var1.length; | |||
| for(int var3 = 0; var3 < var2; ++var3) { | |||
| EM_COURSE_LOCK_TYPE enumType = var1[var3]; | |||
| if(givenNote.equals(enumType.getNote())) { | |||
| return enumType.getValue(); | |||
| } | |||
| } | |||
| return -1; | |||
| } | |||
| public static EM_COURSE_LOCK_TYPE getEnum(int value) { | |||
| EM_COURSE_LOCK_TYPE[] var1 = values(); | |||
| int var2 = var1.length; | |||
| for(int var3 = 0; var3 < var2; ++var3) { | |||
| EM_COURSE_LOCK_TYPE e = var1[var3]; | |||
| if(e.getValue() == value) { | |||
| return e; | |||
| } | |||
| } | |||
| return EM_COURSE_LOCK_TYPE_UNKNOWN; | |||
| } | |||
| } | |||
| @ -1,65 +0,0 @@ | |||
| package com.inspect.access.lib.enumeration; | |||
| public enum EM_COURSE_RECORD_COMPRESSION_TYPE { | |||
| EM_COURSE_RECORD_COMPRESSION_TYPE_UNKNOWN(0, "未知"), | |||
| EM_COURSE_RECORD_COMPRESSION_TYPE_H264(1, "H.264 默认值"), | |||
| EM_COURSE_RECORD_COMPRESSION_TYPE_H265(2, "H.265"); | |||
| private int value; | |||
| private String note; | |||
| private EM_COURSE_RECORD_COMPRESSION_TYPE(int givenValue, String note) { | |||
| this.value = givenValue; | |||
| this.note = note; | |||
| } | |||
| public String getNote() { | |||
| return this.note; | |||
| } | |||
| public int getValue() { | |||
| return this.value; | |||
| } | |||
| public static String getNoteByValue(int givenValue) { | |||
| EM_COURSE_RECORD_COMPRESSION_TYPE[] var1 = values(); | |||
| int var2 = var1.length; | |||
| for(int var3 = 0; var3 < var2; ++var3) { | |||
| EM_COURSE_RECORD_COMPRESSION_TYPE enumType = var1[var3]; | |||
| if(givenValue == enumType.getValue()) { | |||
| return enumType.getNote(); | |||
| } | |||
| } | |||
| return null; | |||
| } | |||
| public static int getValueByNote(String givenNote) { | |||
| EM_COURSE_RECORD_COMPRESSION_TYPE[] var1 = values(); | |||
| int var2 = var1.length; | |||
| for(int var3 = 0; var3 < var2; ++var3) { | |||
| EM_COURSE_RECORD_COMPRESSION_TYPE enumType = var1[var3]; | |||
| if(givenNote.equals(enumType.getNote())) { | |||
| return enumType.getValue(); | |||
| } | |||
| } | |||
| return -1; | |||
| } | |||
| public static EM_COURSE_RECORD_COMPRESSION_TYPE getEnum(int value) { | |||
| EM_COURSE_RECORD_COMPRESSION_TYPE[] var1 = values(); | |||
| int var2 = var1.length; | |||
| for(int var3 = 0; var3 < var2; ++var3) { | |||
| EM_COURSE_RECORD_COMPRESSION_TYPE e = var1[var3]; | |||
| if(e.getValue() == value) { | |||
| return e; | |||
| } | |||
| } | |||
| return EM_COURSE_RECORD_COMPRESSION_TYPE_UNKNOWN; | |||
| } | |||
| } | |||
| @ -1,66 +0,0 @@ | |||
| package com.inspect.access.lib.enumeration; | |||
| public enum EM_COURSE_RECORD_TYPE { | |||
| EM_COURSE_RECORD_TYPE_UNKNOWN(-1, "未知"), | |||
| EM_COURSE_RECORD_TYPE_ALL(0, "全部录像类型"), | |||
| EM_COURSE_RECORD_TYPE_GUIDED_BROADCAST(1, "导播录像类型"), | |||
| EM_COURSE_RECORD_TYPE_GUIDED_INTERACTION(2, "互动录像类型"); | |||
| private int value; | |||
| private String note; | |||
| private EM_COURSE_RECORD_TYPE(int givenValue, String note) { | |||
| this.value = givenValue; | |||
| this.note = note; | |||
| } | |||
| public String getNote() { | |||
| return this.note; | |||
| } | |||
| public int getValue() { | |||
| return this.value; | |||
| } | |||
| public static String getNoteByValue(int givenValue) { | |||
| EM_COURSE_RECORD_TYPE[] var1 = values(); | |||
| int var2 = var1.length; | |||
| for(int var3 = 0; var3 < var2; ++var3) { | |||
| EM_COURSE_RECORD_TYPE enumType = var1[var3]; | |||
| if(givenValue == enumType.getValue()) { | |||
| return enumType.getNote(); | |||
| } | |||
| } | |||
| return null; | |||
| } | |||
| public static int getValueByNote(String givenNote) { | |||
| EM_COURSE_RECORD_TYPE[] var1 = values(); | |||
| int var2 = var1.length; | |||
| for(int var3 = 0; var3 < var2; ++var3) { | |||
| EM_COURSE_RECORD_TYPE enumType = var1[var3]; | |||
| if(givenNote.equals(enumType.getNote())) { | |||
| return enumType.getValue(); | |||
| } | |||
| } | |||
| return -1; | |||
| } | |||
| public static EM_COURSE_RECORD_TYPE getEnum(int value) { | |||
| EM_COURSE_RECORD_TYPE[] var1 = values(); | |||
| int var2 = var1.length; | |||
| for(int var3 = 0; var3 < var2; ++var3) { | |||
| EM_COURSE_RECORD_TYPE e = var1[var3]; | |||
| if(e.getValue() == value) { | |||
| return e; | |||
| } | |||
| } | |||
| return EM_COURSE_RECORD_TYPE_UNKNOWN; | |||
| } | |||
| } | |||
| @ -1,52 +0,0 @@ | |||
| package com.inspect.access.lib.enumeration; | |||
| public enum EM_COURSE_STATE { | |||
| EM_COURSE_STATE_UNKNOWN(0, "未知"), | |||
| EM_COURSE_STATE_NOT_RECORD(1, "未录制"), | |||
| EM_COURSE_STATE_IN_RECORDING(2, "录制中"), | |||
| EM_COURSE_STATE_ALREADY_RECORDED(3, "已录制"); | |||
| private int value; | |||
| private String note; | |||
| private EM_COURSE_STATE(int givenValue, String note) { | |||
| this.value = givenValue; | |||
| this.note = note; | |||
| } | |||
| public String getNote() { | |||
| return this.note; | |||
| } | |||
| public int getValue() { | |||
| return this.value; | |||
| } | |||
| public static String getNoteByValue(int givenValue) { | |||
| EM_COURSE_STATE[] var1 = values(); | |||
| int var2 = var1.length; | |||
| for(int var3 = 0; var3 < var2; ++var3) { | |||
| EM_COURSE_STATE enumType = var1[var3]; | |||
| if(givenValue == enumType.getValue()) { | |||
| return enumType.getNote(); | |||
| } | |||
| } | |||
| return null; | |||
| } | |||
| public static int getValueByNote(String givenNote) { | |||
| EM_COURSE_STATE[] var1 = values(); | |||
| int var2 = var1.length; | |||
| for(int var3 = 0; var3 < var2; ++var3) { | |||
| EM_COURSE_STATE enumType = var1[var3]; | |||
| if(givenNote.equals(enumType.getNote())) { | |||
| return enumType.getValue(); | |||
| } | |||
| } | |||
| return -1; | |||
| } | |||
| } | |||
| @ -1,52 +0,0 @@ | |||
| package com.inspect.access.lib.enumeration; | |||
| public enum EM_CURRENT_STATE_TYPE { | |||
| EM_CURRENT_STATE_UNKNOWN(0, "电流状态未知"), | |||
| EM_CURRENT_STATE_OVER_CURRENT(1, "电流过载"), | |||
| EM_CURRENT_STATE_NORMAL(2, "电流正常"), | |||
| EM_CURRENT_STATE_UNDER_CURRENT(3, "电源欠流"); | |||
| private int value; | |||
| private String note; | |||
| private EM_CURRENT_STATE_TYPE(int givenValue, String note) { | |||
| this.value = givenValue; | |||
| this.note = note; | |||
| } | |||
| public String getNote() { | |||
| return this.note; | |||
| } | |||
| public int getValue() { | |||
| return this.value; | |||
| } | |||
| public static String getNoteByValue(int givenValue) { | |||
| EM_CURRENT_STATE_TYPE[] var1 = values(); | |||
| int var2 = var1.length; | |||
| for(int var3 = 0; var3 < var2; ++var3) { | |||
| EM_CURRENT_STATE_TYPE enumType = var1[var3]; | |||
| if(givenValue == enumType.getValue()) { | |||
| return enumType.getNote(); | |||
| } | |||
| } | |||
| return null; | |||
| } | |||
| public static int getValueByNote(String givenNote) { | |||
| EM_CURRENT_STATE_TYPE[] var1 = values(); | |||
| int var2 = var1.length; | |||
| for(int var3 = 0; var3 < var2; ++var3) { | |||
| EM_CURRENT_STATE_TYPE enumType = var1[var3]; | |||
| if(givenNote.equals(enumType.getNote())) { | |||
| return enumType.getValue(); | |||
| } | |||
| } | |||
| return -1; | |||
| } | |||
| } | |||
| @ -1,57 +0,0 @@ | |||
| package com.inspect.access.lib.enumeration; | |||
| public enum EM_CUSTOM_DEV_PROTOCOL_TYPE { | |||
| EM_CUSTOM_DEV_PROTOCOL_TYPE_PRIVATE(0, "Private"), | |||
| EM_CUSTOM_DEV_PROTOCOL_TYPE_DAHUA2(1, "Dahua2"), | |||
| EM_CUSTOM_DEV_PROTOCOL_TYPE_DAHUA3(2, "Dahua3"), | |||
| EM_CUSTOM_DEV_PROTOCOL_TYPE_GENERAL(3, "以URL形式添加的设备"), | |||
| EM_CUSTOM_DEV_PROTOCOL_TYPE_ONVIF(4, "Onvif接入"), | |||
| EM_CUSTOM_DEV_PROTOCOL_TYPE_ONVIFS(5, "Onvif加密形式接入"), | |||
| EM_CUSTOM_DEV_PROTOCOL_TYPE_GB28181(6, "国标28181接入"), | |||
| EM_CUSTOM_DEV_PROTOCOL_TYPE_EHOME(7, "海康Ehome协议"), | |||
| EM_CUSTOM_DEV_PROTOCOL_TYPE_DAHUA_REG(8, "主动注册"); | |||
| private int value; | |||
| private String note; | |||
| private EM_CUSTOM_DEV_PROTOCOL_TYPE(int givenValue, String note) { | |||
| this.value = givenValue; | |||
| this.note = note; | |||
| } | |||
| public String getNote() { | |||
| return this.note; | |||
| } | |||
| public int getValue() { | |||
| return this.value; | |||
| } | |||
| public static String getNoteByValue(int givenValue) { | |||
| EM_CUSTOM_DEV_PROTOCOL_TYPE[] var1 = values(); | |||
| int var2 = var1.length; | |||
| for(int var3 = 0; var3 < var2; ++var3) { | |||
| EM_CUSTOM_DEV_PROTOCOL_TYPE enumType = var1[var3]; | |||
| if(givenValue == enumType.getValue()) { | |||
| return enumType.getNote(); | |||
| } | |||
| } | |||
| return null; | |||
| } | |||
| public static int getValueByNote(String givenNote) { | |||
| EM_CUSTOM_DEV_PROTOCOL_TYPE[] var1 = values(); | |||
| int var2 = var1.length; | |||
| for(int var3 = 0; var3 < var2; ++var3) { | |||
| EM_CUSTOM_DEV_PROTOCOL_TYPE enumType = var1[var3]; | |||
| if(givenNote.equals(enumType.getNote())) { | |||
| return enumType.getValue(); | |||
| } | |||
| } | |||
| return -1; | |||
| } | |||
| } | |||
| @ -1,47 +0,0 @@ | |||
| package com.inspect.access.lib.enumeration; | |||
| public enum EM_CUSTOM_EDUCATION_VOICE_TYPE { | |||
| EM_CUSTOM_EDUCATION_VOICE_TYPE_UNKNOWN, | |||
| EM_CUSTOM_EDUCATION_VOICE_TYPE_LEAVE_SCHOOL_TIMEOUT, | |||
| EM_CUSTOM_EDUCATION_VOICE_TYPE_ENTER_SCHOOL_TIMEOUT, | |||
| EM_CUSTOM_EDUCATION_VOICE_TYPE_LEAVE_SCHOOL, | |||
| EM_CUSTOM_EDUCATION_VOICE_TYPE_CARD_NOT_BIND, | |||
| EM_CUSTOM_EDUCATION_VOICE_TYPE_BOARDER, | |||
| EM_CUSTOM_EDUCATION_VOICE_TYPE_PARENT_CARD_REPORT_LOST, | |||
| EM_CUSTOM_EDUCATION_VOICE_TYPE_ENTER_SCHOOL_OVERDUE, | |||
| EM_CUSTOM_EDUCATION_VOICE_TYPE_PACKAGE_TO_PICKUP, | |||
| EM_CUSTOM_EDUCATION_VOICE_TYPE_ASKFORLEAVE, | |||
| EM_CUSTOM_EDUCATION_VOICE_TYPE_RETURN_SCHOOL_TIMEOUT_WHEN_ASKFORLEAVE, | |||
| EM_CUSTOM_EDUCATION_VOICE_TYPE_INANDOUT_SCHOOL_TIMENOTUP_WHEN_ASKFORLEAVE, | |||
| EM_CUSTOM_EDUCATION_VOICE_TYPE_REFUSE_LEAVE_SCHOOL_WHEN_ASKFORLEAVE, | |||
| EM_CUSTOM_EDUCATION_VOICE_TYPE_REFUSE_ENTER_SCHOOL_WHEN_ASKFORLEAVE, | |||
| EM_CUSTOM_EDUCATION_VOICE_TYPE_ASKFORLEAVE_IN_REVIEW, | |||
| EM_CUSTOM_EDUCATION_VOICE_TYPE_ASKFORLEAVE_EXPIRED, | |||
| EM_CUSTOM_EDUCATION_VOICE_TYPE_ASKFORLEAVE_APPROVED, | |||
| EM_CUSTOM_EDUCATION_VOICE_TYPE_FORBID_LEAVE_SCHOOL_WITH_LEAVE_INVALID, | |||
| EM_CUSTOM_EDUCATION_VOICE_TYPE_TIME_ISNOT_UP, | |||
| EM_CUSTOM_EDUCATION_VOICE_TYPE_NOT_APPOINT, | |||
| EM_CUSTOM_EDUCATION_VOICE_TYPE_NO_PASSAGE_IN_NONPERMIT_TIMESECTION, | |||
| EM_CUSTOM_EDUCATION_VOICE_TYPE_INVALID_CARD, | |||
| EM_CUSTOM_EDUCATION_VOICE_TYPE_ALREADY_APPOINTED, | |||
| EM_CUSTOM_EDUCATION_VOICE_TYPE_ALLOW_BACK_SCHOOL, | |||
| EM_CUSTOM_EDUCATION_VOICE_TYPE_GOODBYE, | |||
| EM_CUSTOM_EDUCATION_VOICE_TYPE_ENTER_SCHOOL_NORMALLY, | |||
| EM_CUSTOM_EDUCATION_VOICE_TYPE_REPEAT_LEAVE_SCHOOLL, | |||
| EM_CUSTOM_EDUCATION_VOICE_TYPE_REPEAT_ENTER_SCHOOLL, | |||
| EM_CUSTOM_EDUCATION_VOICE_TYPE_DAY_STUDENT; | |||
| public static EM_CUSTOM_EDUCATION_VOICE_TYPE getEducationVoiceType(int type) { | |||
| EM_CUSTOM_EDUCATION_VOICE_TYPE[] var1 = values(); | |||
| int var2 = var1.length; | |||
| for(int var3 = 0; var3 < var2; ++var3) { | |||
| EM_CUSTOM_EDUCATION_VOICE_TYPE educationVoiceType = var1[var3]; | |||
| if(educationVoiceType.ordinal() == type) { | |||
| return educationVoiceType; | |||
| } | |||
| } | |||
| return EM_CUSTOM_EDUCATION_VOICE_TYPE_UNKNOWN; | |||
| } | |||
| } | |||
| @ -1,7 +0,0 @@ | |||
| package com.inspect.access.lib.enumeration; | |||
| public enum EM_CUSTOM_PASSWORD_ENCRYPTION_MODE { | |||
| EM_CUSTOM_PASSWORD_ENCRYPTION_MODE_UNKNOWN, | |||
| EM_CUSTOM_PASSWORD_ENCRYPTION_MODE_PLAINTEXT, | |||
| EM_CUSTOM_PASSWORD_ENCRYPTION_MODE_MD5; | |||
| } | |||
| @ -1,44 +0,0 @@ | |||
| package com.inspect.access.lib.enumeration; | |||
| public enum EM_DATA_SOURCE_TYPE { | |||
| EM_DATA_SOURCE_REMOTE_REALTIME_STREAM(1, "远程实时流"), | |||
| EM_DATA_SOURCE_PUSH_PICFILE(2, "主动推送图片文件"); | |||
| private int type; | |||
| private String des; | |||
| private EM_DATA_SOURCE_TYPE(int type, String des) { | |||
| this.type = type; | |||
| this.des = des; | |||
| } | |||
| public int getType() { | |||
| return this.type; | |||
| } | |||
| public void setType(int type) { | |||
| this.type = type; | |||
| } | |||
| public String getDes() { | |||
| return this.des; | |||
| } | |||
| public void setDes(String des) { | |||
| this.des = des; | |||
| } | |||
| public static EM_DATA_SOURCE_TYPE getDataSourceType(int type) { | |||
| EM_DATA_SOURCE_TYPE[] var1 = values(); | |||
| int var2 = var1.length; | |||
| for(int var3 = 0; var3 < var2; ++var3) { | |||
| EM_DATA_SOURCE_TYPE source = var1[var3]; | |||
| if(type == source.getType()) { | |||
| return source; | |||
| } | |||
| } | |||
| return null; | |||
| } | |||
| } | |||
| @ -1,32 +0,0 @@ | |||
| package com.inspect.access.lib.enumeration; | |||
| public enum EM_DELIVERY_FILE_TYPE { | |||
| EM_DELIVERY_FILE_TYPE_UNKNOWN(0, "未知"), | |||
| EM_DELIVERY_FILE_TYPE_VIDEO(1, "视频"), | |||
| EM_DELIVERY_FILE_TYPE_IMAGE(2, "图片"), | |||
| EM_DELIVERY_FILE_TYPE_AUDIO(3, "音频"); | |||
| private int type; | |||
| private String desc; | |||
| private EM_DELIVERY_FILE_TYPE(int type, String desc) { | |||
| this.type = type; | |||
| this.desc = desc; | |||
| } | |||
| public int getType() { | |||
| return this.type; | |||
| } | |||
| public void setType(int type) { | |||
| this.type = type; | |||
| } | |||
| public String getDesc() { | |||
| return this.desc; | |||
| } | |||
| public void setDesc(String desc) { | |||
| this.desc = desc; | |||
| } | |||
| } | |||
| @ -1,68 +0,0 @@ | |||
| package com.inspect.access.lib.enumeration; | |||
| public enum EM_DETECT_SENSOR_TYPE { | |||
| EM_DETECT_SENSOR_TYPE_UNKNOWN(0, "未知"), | |||
| EM_DETECT_SENSOR_TYPE_COIL(1, "线圈"), | |||
| EM_DETECT_SENSOR_TYPE_VIDEO(2, "视频"), | |||
| EM_DETECT_SENSOR_TYPE_RADAR(3, "雷达"), | |||
| EM_DETECT_SENSOR_TYPE_5G(4, "5G"), | |||
| EM_DETECT_SENSOR_TYPE_FUSION(5, "融合"); | |||
| private final int value; | |||
| private final String note; | |||
| private EM_DETECT_SENSOR_TYPE(int givenValue, String note) { | |||
| this.value = givenValue; | |||
| this.note = note; | |||
| } | |||
| public String getNote() { | |||
| return this.note; | |||
| } | |||
| public int getValue() { | |||
| return this.value; | |||
| } | |||
| public static String getNoteByValue(int givenValue) { | |||
| EM_DETECT_SENSOR_TYPE[] var1 = values(); | |||
| int var2 = var1.length; | |||
| for(int var3 = 0; var3 < var2; ++var3) { | |||
| EM_DETECT_SENSOR_TYPE enumType = var1[var3]; | |||
| if(givenValue == enumType.getValue()) { | |||
| return enumType.getNote(); | |||
| } | |||
| } | |||
| return null; | |||
| } | |||
| public static int getValueByNote(String givenNote) { | |||
| EM_DETECT_SENSOR_TYPE[] var1 = values(); | |||
| int var2 = var1.length; | |||
| for(int var3 = 0; var3 < var2; ++var3) { | |||
| EM_DETECT_SENSOR_TYPE enumType = var1[var3]; | |||
| if(givenNote.equals(enumType.getNote())) { | |||
| return enumType.getValue(); | |||
| } | |||
| } | |||
| return -1; | |||
| } | |||
| public static EM_DETECT_SENSOR_TYPE getEnum(int value) { | |||
| EM_DETECT_SENSOR_TYPE[] var1 = values(); | |||
| int var2 = var1.length; | |||
| for(int var3 = 0; var3 < var2; ++var3) { | |||
| EM_DETECT_SENSOR_TYPE e = var1[var3]; | |||
| if(e.getValue() == value) { | |||
| return e; | |||
| } | |||
| } | |||
| return EM_DETECT_SENSOR_TYPE_UNKNOWN; | |||
| } | |||
| } | |||
| @ -1,16 +0,0 @@ | |||
| package com.inspect.access.lib.enumeration; | |||
| public class EM_DEV_VARIABLE_CARS_MANAGER_FUNC_TYPE { | |||
| public static final int EM_DEV_VARIABLE_CARS_MANAGER_FUNC_TYPE_UNKNOWN = 0; | |||
| public static final int EM_DEV_VARIABLE_CARS_MANAGER_FUNC_TYPE_FACE_DETECTION = 1; | |||
| public static final int EM_DEV_VARIABLE_CARS_MANAGER_FUNC_TYPE_FACE_ANALYSIS = 2; | |||
| public static final int EM_DEV_VARIABLE_CARS_MANAGER_FUNC_TYPE_FACE_ATTRIBUTE = 3; | |||
| public static final int EM_DEV_VARIABLE_CARS_MANAGER_FUNC_TYPE_FACE_COMPARE = 4; | |||
| public static final int EM_DEV_VARIABLE_CARS_MANAGER_FUNC_TYPE_NORMAL = 5; | |||
| public static final int EM_DEV_VARIABLE_CARS_MANAGER_FUNC_TYPE_OBJECT_DETECT = 6; | |||
| public static final int EM_DEV_VARIABLE_CARS_MANAGER_FUNC_TYPE_SMART_MOTION = 7; | |||
| public static final int EM_DEV_VARIABLE_CARS_MANAGER_FUNC_TYPE_ENCODE_ENHANCE = 8; | |||
| public static final int EM_DEV_VARIABLE_CARS_MANAGER_FUNC_TYPE_ONE_KEY_EXPAND = 9; | |||
| public static final int EM_DEV_VARIABLE_CARS_MANAGER_FUNC_TYPE_NUMBER_STAT = 10; | |||
| public static final int EM_DEV_VARIABLE_CARS_MANAGER_FUNC_TYPE_INTELLIGENT = 11; | |||
| } | |||
| @ -1,45 +0,0 @@ | |||
| package com.inspect.access.lib.enumeration; | |||
| public enum EM_DIRECTION_AFTER_POWER_OFF { | |||
| EM_DIRECTION_AFTER_POWER_OFF_UNKNOWN(-1, "未知"), | |||
| EM_DIRECTION_AFTER_POWER_OFF_IN(0, "进门方向"), | |||
| EM_DIRECTION_AFTER_POWER_OFF_OUT(1, "出门方向"); | |||
| private int mode; | |||
| private String desc; | |||
| private EM_DIRECTION_AFTER_POWER_OFF(int mode, String desc) { | |||
| this.mode = mode; | |||
| this.desc = desc; | |||
| } | |||
| public static EM_DIRECTION_AFTER_POWER_OFF getEmDirectionAfterPowerOff(int mode) { | |||
| EM_DIRECTION_AFTER_POWER_OFF[] var1 = values(); | |||
| int var2 = var1.length; | |||
| for(int var3 = 0; var3 < var2; ++var3) { | |||
| EM_DIRECTION_AFTER_POWER_OFF powerOff = var1[var3]; | |||
| if(powerOff.mode == mode) { | |||
| return powerOff; | |||
| } | |||
| } | |||
| return EM_DIRECTION_AFTER_POWER_OFF_UNKNOWN; | |||
| } | |||
| public int getMode() { | |||
| return this.mode; | |||
| } | |||
| public void setMode(int mode) { | |||
| this.mode = mode; | |||
| } | |||
| public String getDesc() { | |||
| return this.desc; | |||
| } | |||
| public void setDesc(String desc) { | |||
| this.desc = desc; | |||
| } | |||
| } | |||
| @ -1,22 +0,0 @@ | |||
| package com.inspect.access.lib.enumeration; | |||
| public enum EM_DISK_STATE { | |||
| EM_DISK_STATE_UNKNOWN, | |||
| EM_DISK_STATE_EXIST, | |||
| EM_DISK_STATE_NO_EXIST, | |||
| EM_DISK_STATE_NEED_CHANGE; | |||
| public static EM_DISK_STATE getDiskState(int state) { | |||
| EM_DISK_STATE[] var1 = values(); | |||
| int var2 = var1.length; | |||
| for(int var3 = 0; var3 < var2; ++var3) { | |||
| EM_DISK_STATE diskState = var1[var3]; | |||
| if(diskState.ordinal() == state) { | |||
| return diskState; | |||
| } | |||
| } | |||
| return EM_DISK_STATE_UNKNOWN; | |||
| } | |||
| } | |||
| @ -1,51 +0,0 @@ | |||
| package com.inspect.access.lib.enumeration; | |||
| public enum EM_DISPLAY_CAMERA_ANGLE_TYPE { | |||
| EM_DISPLAY_CAMERA_ANGLE_UNKNOWN(0, "未知的显示方式"), | |||
| EM_DISPLAY_CAMERA_ANGLE_NUM(1, "按角度值配置"), | |||
| EM_DISPLAY_CAMERA_ANGLE_MODE(2, "按模式配置"); | |||
| private int value; | |||
| private String note; | |||
| private EM_DISPLAY_CAMERA_ANGLE_TYPE(int givenValue, String note) { | |||
| this.value = givenValue; | |||
| this.note = note; | |||
| } | |||
| public String getNote() { | |||
| return this.note; | |||
| } | |||
| public int getValue() { | |||
| return this.value; | |||
| } | |||
| public static String getNoteByValue(int givenValue) { | |||
| EM_DISPLAY_CAMERA_ANGLE_TYPE[] var1 = values(); | |||
| int var2 = var1.length; | |||
| for(int var3 = 0; var3 < var2; ++var3) { | |||
| EM_DISPLAY_CAMERA_ANGLE_TYPE enumType = var1[var3]; | |||
| if(givenValue == enumType.getValue()) { | |||
| return enumType.getNote(); | |||
| } | |||
| } | |||
| return null; | |||
| } | |||
| public static int getValueByNote(String givenNote) { | |||
| EM_DISPLAY_CAMERA_ANGLE_TYPE[] var1 = values(); | |||
| int var2 = var1.length; | |||
| for(int var3 = 0; var3 < var2; ++var3) { | |||
| EM_DISPLAY_CAMERA_ANGLE_TYPE enumType = var1[var3]; | |||
| if(givenNote.equals(enumType.getNote())) { | |||
| return enumType.getValue(); | |||
| } | |||
| } | |||
| return -1; | |||
| } | |||
| } | |||
| @ -1,64 +0,0 @@ | |||
| package com.inspect.access.lib.enumeration; | |||
| public enum EM_DOWNLOAD_DATA_TYPE { | |||
| EM_DOWNLOAD_DATA_RECORD(0, "录像"), | |||
| EM_DOWNLOAD_DATA_PICTURE(1, "图片"); | |||
| private final int value; | |||
| private final String note; | |||
| private EM_DOWNLOAD_DATA_TYPE(int givenValue, String note) { | |||
| this.value = givenValue; | |||
| this.note = note; | |||
| } | |||
| public String getNote() { | |||
| return this.note; | |||
| } | |||
| public int getValue() { | |||
| return this.value; | |||
| } | |||
| public static String getNoteByValue(int givenValue) { | |||
| EM_DOWNLOAD_DATA_TYPE[] var1 = values(); | |||
| int var2 = var1.length; | |||
| for(int var3 = 0; var3 < var2; ++var3) { | |||
| EM_DOWNLOAD_DATA_TYPE enumType = var1[var3]; | |||
| if(givenValue == enumType.getValue()) { | |||
| return enumType.getNote(); | |||
| } | |||
| } | |||
| return null; | |||
| } | |||
| public static int getValueByNote(String givenNote) { | |||
| EM_DOWNLOAD_DATA_TYPE[] var1 = values(); | |||
| int var2 = var1.length; | |||
| for(int var3 = 0; var3 < var2; ++var3) { | |||
| EM_DOWNLOAD_DATA_TYPE enumType = var1[var3]; | |||
| if(givenNote.equals(enumType.getNote())) { | |||
| return enumType.getValue(); | |||
| } | |||
| } | |||
| return -1; | |||
| } | |||
| public static EM_DOWNLOAD_DATA_TYPE getEnum(int value) { | |||
| EM_DOWNLOAD_DATA_TYPE[] var1 = values(); | |||
| int var2 = var1.length; | |||
| for(int var3 = 0; var3 < var2; ++var3) { | |||
| EM_DOWNLOAD_DATA_TYPE e = var1[var3]; | |||
| if(e.getValue() == value) { | |||
| return e; | |||
| } | |||
| } | |||
| return EM_DOWNLOAD_DATA_RECORD; | |||
| } | |||
| } | |||
| @ -1,64 +0,0 @@ | |||
| package com.inspect.access.lib.enumeration; | |||
| public enum EM_DOWNLOAD_FILE_TYPE { | |||
| EM_DOWNLOAD_BY_FILENAME(0, "按文件名下载"), | |||
| EM_DOWNLOAD_BY_CONDITION(1, "按条件下载"); | |||
| private final int value; | |||
| private final String note; | |||
| private EM_DOWNLOAD_FILE_TYPE(int givenValue, String note) { | |||
| this.value = givenValue; | |||
| this.note = note; | |||
| } | |||
| public String getNote() { | |||
| return this.note; | |||
| } | |||
| public int getValue() { | |||
| return this.value; | |||
| } | |||
| public static String getNoteByValue(int givenValue) { | |||
| EM_DOWNLOAD_FILE_TYPE[] var1 = values(); | |||
| int var2 = var1.length; | |||
| for(int var3 = 0; var3 < var2; ++var3) { | |||
| EM_DOWNLOAD_FILE_TYPE enumType = var1[var3]; | |||
| if(givenValue == enumType.getValue()) { | |||
| return enumType.getNote(); | |||
| } | |||
| } | |||
| return null; | |||
| } | |||
| public static int getValueByNote(String givenNote) { | |||
| EM_DOWNLOAD_FILE_TYPE[] var1 = values(); | |||
| int var2 = var1.length; | |||
| for(int var3 = 0; var3 < var2; ++var3) { | |||
| EM_DOWNLOAD_FILE_TYPE enumType = var1[var3]; | |||
| if(givenNote.equals(enumType.getNote())) { | |||
| return enumType.getValue(); | |||
| } | |||
| } | |||
| return -1; | |||
| } | |||
| public static EM_DOWNLOAD_FILE_TYPE getEnum(int value) { | |||
| EM_DOWNLOAD_FILE_TYPE[] var1 = values(); | |||
| int var2 = var1.length; | |||
| for(int var3 = 0; var3 < var2; ++var3) { | |||
| EM_DOWNLOAD_FILE_TYPE e = var1[var3]; | |||
| if(e.getValue() == value) { | |||
| return e; | |||
| } | |||
| } | |||
| return EM_DOWNLOAD_BY_FILENAME; | |||
| } | |||
| } | |||
| @ -1,64 +0,0 @@ | |||
| package com.inspect.access.lib.enumeration; | |||
| public enum EM_DOWNLOAD_TIME_TYPE { | |||
| EM_DOWNLOAD_TIME_SNAP(0, "抓拍时间"), | |||
| EM_DOWNLOAD_TIME_STORAGE(1, "存储时间"); | |||
| private final int value; | |||
| private final String note; | |||
| private EM_DOWNLOAD_TIME_TYPE(int givenValue, String note) { | |||
| this.value = givenValue; | |||
| this.note = note; | |||
| } | |||
| public String getNote() { | |||
| return this.note; | |||
| } | |||
| public int getValue() { | |||
| return this.value; | |||
| } | |||
| public static String getNoteByValue(int givenValue) { | |||
| EM_DOWNLOAD_TIME_TYPE[] var1 = values(); | |||
| int var2 = var1.length; | |||
| for(int var3 = 0; var3 < var2; ++var3) { | |||
| EM_DOWNLOAD_TIME_TYPE enumType = var1[var3]; | |||
| if(givenValue == enumType.getValue()) { | |||
| return enumType.getNote(); | |||
| } | |||
| } | |||
| return null; | |||
| } | |||
| public static int getValueByNote(String givenNote) { | |||
| EM_DOWNLOAD_TIME_TYPE[] var1 = values(); | |||
| int var2 = var1.length; | |||
| for(int var3 = 0; var3 < var2; ++var3) { | |||
| EM_DOWNLOAD_TIME_TYPE enumType = var1[var3]; | |||
| if(givenNote.equals(enumType.getNote())) { | |||
| return enumType.getValue(); | |||
| } | |||
| } | |||
| return -1; | |||
| } | |||
| public static EM_DOWNLOAD_TIME_TYPE getEnum(int value) { | |||
| EM_DOWNLOAD_TIME_TYPE[] var1 = values(); | |||
| int var2 = var1.length; | |||
| for(int var3 = 0; var3 < var2; ++var3) { | |||
| EM_DOWNLOAD_TIME_TYPE e = var1[var3]; | |||
| if(e.getValue() == value) { | |||
| return e; | |||
| } | |||
| } | |||
| return EM_DOWNLOAD_TIME_SNAP; | |||
| } | |||
| } | |||
| @ -1,51 +0,0 @@ | |||
| package com.inspect.access.lib.enumeration; | |||
| public enum EM_DRIVING_DIRECTION { | |||
| EM_DRIVING_DIRECTION_UNKNOWN(0, "未知"), | |||
| EM_DRIVING_DIRECTION_IN(1, "驶入"), | |||
| EM_DRIVING_DIRECTION_OUT(2, "驶出"); | |||
| private int value; | |||
| private String note; | |||
| private EM_DRIVING_DIRECTION(int givenValue, String note) { | |||
| this.value = givenValue; | |||
| this.note = note; | |||
| } | |||
| public String getNote() { | |||
| return this.note; | |||
| } | |||
| public int getValue() { | |||
| return this.value; | |||
| } | |||
| public static String getNoteByValue(int givenValue) { | |||
| EM_DRIVING_DIRECTION[] var1 = values(); | |||
| int var2 = var1.length; | |||
| for(int var3 = 0; var3 < var2; ++var3) { | |||
| EM_DRIVING_DIRECTION enumType = var1[var3]; | |||
| if(givenValue == enumType.getValue()) { | |||
| return enumType.getNote(); | |||
| } | |||
| } | |||
| return null; | |||
| } | |||
| public static int getValueByNote(String givenNote) { | |||
| EM_DRIVING_DIRECTION[] var1 = values(); | |||
| int var2 = var1.length; | |||
| for(int var3 = 0; var3 < var2; ++var3) { | |||
| EM_DRIVING_DIRECTION enumType = var1[var3]; | |||
| if(givenNote.equals(enumType.getNote())) { | |||
| return enumType.getValue(); | |||
| } | |||
| } | |||
| return -1; | |||
| } | |||
| } | |||
| @ -1,37 +0,0 @@ | |||
| package com.inspect.access.lib.enumeration; | |||
| public enum EM_EMERGENCYSTATUS_TYPE { | |||
| EM_EMERGENCYSTATUS_UNKNOWN(-1, "未知"), | |||
| EM_EMERGENCYSTATUS_CLOSE(0, "关闭"), | |||
| EM_EMERGENCYSTATUS_OPEN(1, "开启"); | |||
| private int type; | |||
| private String desc; | |||
| private EM_EMERGENCYSTATUS_TYPE(int type, String desc) { | |||
| this.type = type; | |||
| this.desc = desc; | |||
| } | |||
| public int getType() { | |||
| return this.type; | |||
| } | |||
| public String getDesc() { | |||
| return this.desc; | |||
| } | |||
| public static EM_EMERGENCYSTATUS_TYPE getEmergencyStatusType(int type) { | |||
| EM_EMERGENCYSTATUS_TYPE[] var1 = values(); | |||
| int var2 = var1.length; | |||
| for(int var3 = 0; var3 < var2; ++var3) { | |||
| EM_EMERGENCYSTATUS_TYPE emergencyStatus = var1[var3]; | |||
| if(emergencyStatus.type == type) { | |||
| return emergencyStatus; | |||
| } | |||
| } | |||
| return EM_EMERGENCYSTATUS_UNKNOWN; | |||
| } | |||
| } | |||
| @ -1,57 +0,0 @@ | |||
| package com.inspect.access.lib.enumeration; | |||
| public enum EM_ENTRY_DIRECTION { | |||
| EM_ENTRY_UNKNOWN(0, "未知"), | |||
| EM_ENTRY_NORTH_TO_SOUTH(1, "北向南"), | |||
| EM_ENTRY_EASTNORTH_TO_WESTSOUTH(2, "东北向西南"), | |||
| EM_ENTRY_EAST_TO_WEST(3, "东向西"), | |||
| EM_ENTRY_EASTSOUTH_TO_WESTNORTH(4, "东南向西北"), | |||
| EM_ENTRY_SOUTH_TO_NORTH(5, "南向北"), | |||
| EM_ENTRY_WESTSOUTH_TO_EASTSOUTH(6, "西南向东北"), | |||
| EM_ENTRY_WEST_TO_EAST(7, "西向东"), | |||
| EM_ENTRY_WESTNORTH_TO_EASTSOUTH(8, "西北向东南"); | |||
| private int value; | |||
| private String note; | |||
| private EM_ENTRY_DIRECTION(int givenValue, String note) { | |||
| this.value = givenValue; | |||
| this.note = note; | |||
| } | |||
| public String getNote() { | |||
| return this.note; | |||
| } | |||
| public int getValue() { | |||
| return this.value; | |||
| } | |||
| public static String getNoteByValue(int givenValue) { | |||
| EM_ENTRY_DIRECTION[] var1 = values(); | |||
| int var2 = var1.length; | |||
| for(int var3 = 0; var3 < var2; ++var3) { | |||
| EM_ENTRY_DIRECTION enumType = var1[var3]; | |||
| if(givenValue == enumType.getValue()) { | |||
| return enumType.getNote(); | |||
| } | |||
| } | |||
| return null; | |||
| } | |||
| public static int getValueByNote(String givenNote) { | |||
| EM_ENTRY_DIRECTION[] var1 = values(); | |||
| int var2 = var1.length; | |||
| for(int var3 = 0; var3 < var2; ++var3) { | |||
| EM_ENTRY_DIRECTION enumType = var1[var3]; | |||
| if(givenNote.equals(enumType.getNote())) { | |||
| return enumType.getValue(); | |||
| } | |||
| } | |||
| return -1; | |||
| } | |||
| } | |||
| @ -1,53 +0,0 @@ | |||
| package com.inspect.access.lib.enumeration; | |||
| public enum EM_ENTRY_TYPE { | |||
| EM_ENTRY_TYPE_UNKNOWN(0, "未知"), | |||
| EM_ENTRY_TYPE_TURN_LEFT(1, "左转"), | |||
| EM_ENTRY_TYPE_STRAIGHT(2, "直行"), | |||
| EM_ENTRY_TYPE_TRUN_RIGHT(3, "右转"), | |||
| EM_ENTRY_TYPE_TURN_ROUND(4, "掉头"); | |||
| private int value; | |||
| private String note; | |||
| private EM_ENTRY_TYPE(int givenValue, String note) { | |||
| this.value = givenValue; | |||
| this.note = note; | |||
| } | |||
| public String getNote() { | |||
| return this.note; | |||
| } | |||
| public int getValue() { | |||
| return this.value; | |||
| } | |||
| public static String getNoteByValue(int givenValue) { | |||
| EM_ENTRY_TYPE[] var1 = values(); | |||
| int var2 = var1.length; | |||
| for(int var3 = 0; var3 < var2; ++var3) { | |||
| EM_ENTRY_TYPE enumType = var1[var3]; | |||
| if(givenValue == enumType.getValue()) { | |||
| return enumType.getNote(); | |||
| } | |||
| } | |||
| return null; | |||
| } | |||
| public static int getValueByNote(String givenNote) { | |||
| EM_ENTRY_TYPE[] var1 = values(); | |||
| int var2 = var1.length; | |||
| for(int var3 = 0; var3 < var2; ++var3) { | |||
| EM_ENTRY_TYPE enumType = var1[var3]; | |||
| if(givenNote.equals(enumType.getNote())) { | |||
| return enumType.getValue(); | |||
| } | |||
| } | |||
| return -1; | |||
| } | |||
| } | |||
| @ -1,127 +0,0 @@ | |||
| package com.inspect.access.lib.enumeration; | |||
| public enum EM_EVENT_IVS { | |||
| EVENT_IVS_ALL(1), | |||
| EVENT_IVS_CROSSLINEDETECTION(2), | |||
| EVENT_IVS_CROSSREGIONDETECTION(3), | |||
| EVENT_IVS_LEFTDETECTION(5), | |||
| EVENT_IVS_STAYDETECTION(6), | |||
| EVENT_IVS_WANDERDETECTION(7), | |||
| EVENT_IVS_MOVEDETECTION(9), | |||
| EVENT_IVS_RIOTERDETECTION(11), | |||
| EVENT_IVS_FIGHTDETECTION(14), | |||
| EVENT_IVS_TRAFFICJUNCTION(23), | |||
| EVENT_IVS_TRAFFICGATE(24), | |||
| EVENT_IVS_FACEDETECT(26), | |||
| EVENT_IVS_TRAFFICJAM(27), | |||
| EVENT_IVS_TRAFFIC_RUNREDLIGHT(256), | |||
| EVENT_IVS_TRAFFIC_OVERLINE(257), | |||
| EVENT_IVS_TRAFFIC_RETROGRADE(258), | |||
| EVENT_IVS_TRAFFIC_TURNLEFT(259), | |||
| EVENT_IVS_TRAFFIC_TURNRIGHT(260), | |||
| EVENT_IVS_TRAFFIC_UTURN(261), | |||
| EVENT_IVS_TRAFFIC_OVERSPEED(262), | |||
| EVENT_IVS_TRAFFIC_UNDERSPEED(263), | |||
| EVENT_IVS_TRAFFIC_PARKING(264), | |||
| EVENT_IVS_TRAFFIC_WRONGROUTE(265), | |||
| EVENT_IVS_TRAFFIC_CROSSLANE(266), | |||
| EVENT_IVS_TRAFFIC_OVERYELLOWLINE(267), | |||
| EVENT_IVS_TRAFFIC_YELLOWPLATEINLANE(270), | |||
| EVENT_IVS_TRAFFIC_PEDESTRAINPRIORITY(271), | |||
| EVENT_IVS_TRAFFIC_NOPASSING(273), | |||
| EVENT_IVS_ABNORMALRUNDETECTION(274), | |||
| EVENT_IVS_TAKENAWAYDETECTION(277), | |||
| EVENT_IVS_PARKINGDETECTION(278), | |||
| EVENT_IVS_FACERECOGNITION(279), | |||
| EVENT_IVS_TRAFFIC_MANUALSNAP(280), | |||
| EVENT_IVS_TRAFFIC_FLOWSTATE(281), | |||
| EVENT_IVS_TRAFFIC_VEHICLEINROUTE(283), | |||
| EVENT_ALARM_LOCALALARM(285), | |||
| EVENT_IVS_TRAFFIC_TOLLGATE(288), | |||
| EVENT_IVS_TRAFFIC_VEHICLEINBUSROUTE(292), | |||
| EVENT_IVS_TRAFFIC_BACKING(293), | |||
| EVENT_IVS_AUDIO_ABNORMALDETECTION(294), | |||
| EVENT_IVS_TRAFFIC_RUNYELLOWLIGHT(295), | |||
| EVENT_IVS_CLIMBDETECTION(296), | |||
| EVENT_IVS_LEAVEDETECTION(297), | |||
| EVENT_IVS_TRAFFIC_PARKINGONYELLOWBOX(298), | |||
| EVENT_IVS_TRAFFIC_PARKINGSPACEPARKING(299), | |||
| EVENT_IVS_TRAFFIC_PARKINGSPACENOPARKING(300), | |||
| EVENT_IVS_TRAFFIC_PEDESTRAIN(301), | |||
| EVENT_IVS_TRAFFIC_THROW(302), | |||
| EVENT_IVS_TRAFFIC_OVERSTOPLINE(311), | |||
| EVENT_IVS_TRAFFIC_WITHOUT_SAFEBELT(312), | |||
| EVENT_IVS_TRAFFIC_DRIVER_SMOKING(313), | |||
| EVENT_IVS_TRAFFIC_DRIVER_CALLING(314), | |||
| EVENT_IVS_TRAFFIC_PASSNOTINORDER(316), | |||
| EVENT_ALARM_VIDEOBLIND(339), | |||
| EVENT_IVS_TRAFFIC_JAM_FORBID_INTO(355), | |||
| EVENT_IVS_TRAFFIC_FCC(363), | |||
| EVENT_IVS_ACCESS_CTL(516), | |||
| EVENT_IVS_SNAPMANUAL(517), | |||
| EVENT_IVS_TRAFFIC_TIREDPHYSIOLOGICAL(519), | |||
| EVENT_IVS_CITIZEN_PICTURE_COMPARE(521), | |||
| EVENT_IVS_HUMANTRAIT(533), | |||
| EVENT_IVS_TRAFFIC_TIREDLOWERHEAD(522), | |||
| EVENT_IVS_TRAFFIC_DRIVERLOOKAROUND(523), | |||
| EVENT_IVS_TRAFFIC_DRIVERLEAVEPOST(524), | |||
| EVENT_IVS_TRAFFIC_DRIVERYAWN(528), | |||
| EVENT_IVS_FACEANALYSIS(535), | |||
| EVENT_IVS_HIGHSPEED(555), | |||
| EVENT_IVS_VEHICLE_RECOGNITION(561), | |||
| EVENT_IVS_CROWDDETECTION(556), | |||
| EVENT_IVS_MAN_NUM_DETECTION(526), | |||
| EVENT_IVS_ELEVATOR_ABNORMAL(573), | |||
| EVENT_IVSS_FACEATTRIBUTE(579), | |||
| EVENT_IVSS_FACECOMPARE(580), | |||
| EVENT_IVS_FIREWARNING(581), | |||
| EVENT_IVS_LANEDEPARTURE_WARNNING(593), | |||
| EVENT_IVS_FORWARDCOLLISION_WARNNING(594), | |||
| EVENT_IVS_FLOATINGOBJECT_DETECTION(599), | |||
| EVENT_IVS_PHONECALL_DETECT(602), | |||
| EVENT_IVS_SMOKING_DETECT(603), | |||
| EVENT_IVS_RADAR_SPEED_LIMIT_ALARM(604), | |||
| EVENT_IVS_WATER_LEVEL_DETECTION(605), | |||
| EVENT_IVS_CITY_MOTORPARKING(591), | |||
| EVENT_IVS_CITY_NONMOTORPARKING(592), | |||
| EVENT_IVS_HOLD_UMBRELLA(606), | |||
| EVENT_IVS_GARBAGE_EXPOSURE(607), | |||
| EVENT_IVS_DUSTBIN_OVER_FLOW(608), | |||
| EVENT_IVS_DOOR_FRONT_DIRTY(609), | |||
| EVENT_IVS_QUEUESTAY_DETECTION(610), | |||
| EVENT_IVS_QUEUENUM_DETECTION(611), | |||
| EVENT_IVS_GENERATEGRAPH_DETECTION(612), | |||
| EVENT_IVS_TRAFFIC_PARKING_MANUAL(613), | |||
| EVENT_IVS_HELMET_DETECTION(614), | |||
| EVENT_IVS_DEPOSIT_DETECTION(615), | |||
| EVENT_IVS_HOTSPOT_WARNING(616), | |||
| EVENT_IVS_WEIGHING_PLATFORM_DETECTION(617), | |||
| EVENT_IVS_CLASSROOM_BEHAVIOR(618), | |||
| EVENT_IVS_WORKCLOTHES_DETECT(622), | |||
| EVENT_IVS_MAN_STAND_DETECTION(525), | |||
| EVENT_IVS_GASSTATION_VEHICLE_DETECT(643), | |||
| EVENT_IVS_SHOPPRESENCE(582), | |||
| EVENT_IVS_FLOWBUSINESS(590), | |||
| EVENT_IVS_PEDESTRIAN_JUNCTION(560), | |||
| EVENT_IVS_BANNER_DETECTION(571), | |||
| EVENT_IVS_SMART_KITCHEN_CLOTHES_DETECTION(669), | |||
| EVENT_IVS_WATER_STAGE_MONITOR(778), | |||
| EVENT_IVS_VIOLENT_THROW_DETECTION(637), | |||
| EVENT_IVS_ANATOMY_TEMP_DETECT(771), | |||
| EVENT_IVS_FOG_DETECTION(776), | |||
| EVENT_IVS_VIDEOABNORMALDETECTION(19), | |||
| EVENT_IVS_STAY_ALONE_DETECTION(624), | |||
| EVENT_IVS_PRISONERRISEDETECTION(286), | |||
| EVENT_IVS_HIGH_TOSS_DETECT(653), | |||
| EVENT_IVS_FEATURE_ABSTRACT(630); | |||
| private final int id; | |||
| private EM_EVENT_IVS(int id) { | |||
| this.id = id; | |||
| } | |||
| public int getId() { | |||
| return this.id; | |||
| } | |||
| } | |||
| @ -1,352 +0,0 @@ | |||
| package com.inspect.access.lib.enumeration; | |||
| public enum EM_EVENT_IVS_TYPE { | |||
| EVENT_IVS_ALL(1, "所有事件"), | |||
| EVENT_IVS_CROSSLINEDETECTION(2, "警戒线事件"), | |||
| EVENT_IVS_CROSSREGIONDETECTION(3, "警戒区事件"), | |||
| EVENT_IVS_PASTEDETECTION(4, "贴条事件"), | |||
| EVENT_IVS_LEFTDETECTION(5, "物品遗留事件"), | |||
| EVENT_IVS_STAYDETECTION(6, "停留事件"), | |||
| EVENT_IVS_WANDERDETECTION(7, "徘徊事件"), | |||
| EVENT_IVS_PRESERVATION(8, "物品保全事件"), | |||
| EVENT_IVS_MOVEDETECTION(9, "移动事件"), | |||
| EVENT_IVS_TAILDETECTION(10, "尾随事件"), | |||
| EVENT_IVS_RIOTERDETECTION(11, "聚众事件"), | |||
| EVENT_IVS_FIREDETECTION(12, "火警事件"), | |||
| EVENT_IVS_SMOKEDETECTION(13, "烟雾报警事件"), | |||
| EVENT_IVS_FIGHTDETECTION(14, "斗殴事件"), | |||
| EVENT_IVS_FLOWSTAT(15, "流量统计事件"), | |||
| EVENT_IVS_NUMBERSTAT(16, "数量统计事件"), | |||
| EVENT_IVS_CAMERACOVERDDETECTION(17, "摄像头覆盖事件(保留)"), | |||
| EVENT_IVS_CAMERAMOVEDDETECTION(18, "摄像头移动事件(保留)"), | |||
| EVENT_IVS_VIDEOABNORMALDETECTION(19, "视频异常事件"), | |||
| EVENT_IVS_VIDEOBADDETECTION(20, "视频损坏事件(保留)"), | |||
| EVENT_IVS_TRAFFICCONTROL(21, "交通管制事件"), | |||
| EVENT_IVS_TRAFFICACCIDENT(22, "交通事故事件"), | |||
| EVENT_IVS_TRAFFICJUNCTION(23, "交通路口事件----老规则"), | |||
| EVENT_IVS_TRAFFICGATE(24, "交通卡口事件----老规则"), | |||
| EVENT_TRAFFICSNAPSHOT(25, "交通抓拍事件"), | |||
| EVENT_IVS_FACEDETECT(26, "人脸检测事件"), | |||
| EVENT_IVS_TRAFFICJAM(27, "交通拥堵事件"), | |||
| EVENT_IVS_TRAFFIC_NONMOTORINMOTORROUTE(28, "非机动车占机动车车道事件"), | |||
| EVENT_IVS_TRAFFIC_RUNREDLIGHT(256, "交通违章-闯红灯事件"), | |||
| EVENT_IVS_TRAFFIC_OVERLINE(257, "交通违章-压车道线事件"), | |||
| EVENT_IVS_TRAFFIC_RETROGRADE(258, "交通违章-逆行事件"), | |||
| EVENT_IVS_TRAFFIC_TURNLEFT(259, "交通违章-违章左转"), | |||
| EVENT_IVS_TRAFFIC_TURNRIGHT(260, "交通违章-违章右转"), | |||
| EVENT_IVS_TRAFFIC_UTURN(261, "交通违章-违章掉头"), | |||
| EVENT_IVS_TRAFFIC_OVERSPEED(262, "交通违章-超速"), | |||
| EVENT_IVS_TRAFFIC_UNDERSPEED(263, "交通违章-低速"), | |||
| EVENT_IVS_TRAFFIC_PARKING(264, "交通违章-违章停车"), | |||
| EVENT_IVS_TRAFFIC_WRONGROUTE(265, "交通违章-不按车道行驶"), | |||
| EVENT_IVS_TRAFFIC_CROSSLANE(266, "交通违章-违章变道"), | |||
| EVENT_IVS_TRAFFIC_OVERYELLOWLINE(267, "交通违章-压黄线"), | |||
| EVENT_IVS_TRAFFIC_DRIVINGONSHOULDER(268, "交通违章-路肩行驶事件"), | |||
| EVENT_IVS_TRAFFIC_YELLOWPLATEINLANE(270, "交通违章-黄牌车占道事件"), | |||
| EVENT_IVS_TRAFFIC_PEDESTRAINPRIORITY(271, "交通违章-礼让行人/斑马线行人优先事件"), | |||
| EVENT_IVS_CROSSFENCEDETECTION(287, "翻越围栏事件"), | |||
| EVENT_IVS_ELECTROSPARKDETECTION(272, "电火花事件"), | |||
| EVENT_IVS_TRAFFIC_NOPASSING(273, "交通违章-禁止通行事件"), | |||
| EVENT_IVS_ABNORMALRUNDETECTION(274, "异常奔跑事件"), | |||
| EVENT_IVS_RETROGRADEDETECTION(275, "人员逆行事件"), | |||
| EVENT_IVS_INREGIONDETECTION(276, "区域内检测事件"), | |||
| EVENT_IVS_TAKENAWAYDETECTION(277, "物品搬移事件"), | |||
| EVENT_IVS_PARKINGDETECTION(278, "非法停车事件"), | |||
| EVENT_IVS_FACERECOGNITION(279, "人脸识别事件"), | |||
| EVENT_IVS_TRAFFIC_MANUALSNAP(280, "交通手动抓拍事件"), | |||
| EVENT_IVS_TRAFFIC_FLOWSTATE(281, "交通流量统计事件"), | |||
| EVENT_IVS_TRAFFIC_STAY(282, "交通滞留事件"), | |||
| EVENT_IVS_TRAFFIC_VEHICLEINROUTE(283, "有车占道事件"), | |||
| EVENT_ALARM_MOTIONDETECT(284, "视频移动侦测事件"), | |||
| EVENT_ALARM_LOCALALARM(285, "外部报警事件"), | |||
| EVENT_IVS_PRISONERRISEDETECTION(286, "看守所囚犯起身事件"), | |||
| EVENT_IVS_TRAFFIC_TOLLGATE(288, "交通违章-卡口事件----新规则"), | |||
| EVENT_IVS_DENSITYDETECTION(289, "人员密集度检测"), | |||
| EVENT_IVS_VIDEODIAGNOSIS(290, "视频诊断结果事件"), | |||
| EVENT_IVS_QUEUEDETECTION(291, "排队检测报警事件"), | |||
| EVENT_IVS_TRAFFIC_VEHICLEINBUSROUTE(292, "占用公交车道事件"), | |||
| EVENT_IVS_TRAFFIC_BACKING(293, "违章倒车事件"), | |||
| EVENT_IVS_AUDIO_ABNORMALDETECTION(294, "声音异常检测"), | |||
| EVENT_IVS_TRAFFIC_RUNYELLOWLIGHT(295, "交通违章-闯黄灯事件"), | |||
| EVENT_IVS_CLIMBDETECTION(296, "攀高检测事件"), | |||
| EVENT_IVS_LEAVEDETECTION(297, "离岗检测事件"), | |||
| EVENT_IVS_TRAFFIC_PARKINGONYELLOWBOX(298, "黄网格线抓拍事件"), | |||
| EVENT_IVS_TRAFFIC_PARKINGSPACEPARKING(299, "车位有车事件"), | |||
| EVENT_IVS_TRAFFIC_PARKINGSPACENOPARKING(300, "车位无车事件"), | |||
| EVENT_IVS_TRAFFIC_PEDESTRAIN(301, "交通行人事件"), | |||
| EVENT_IVS_TRAFFIC_THROW(302, "交通抛洒物品事件"), | |||
| EVENT_IVS_TRAFFIC_IDLE(303, "交通空闲事件"), | |||
| EVENT_ALARM_VEHICLEACC(304, "车载ACC断电报警事件"), | |||
| EVENT_ALARM_VEHICLE_TURNOVER(305, "车辆侧翻报警事件"), | |||
| EVENT_ALARM_VEHICLE_COLLISION(306, "车辆撞车报警事件"), | |||
| EVENT_ALARM_VEHICLE_LARGE_ANGLE(307, "车载摄像头大角度扭转事件"), | |||
| EVENT_IVS_TRAFFIC_PARKINGSPACEOVERLINE(308, "车位压线事件"), | |||
| EVENT_IVS_MULTISCENESWITCH(309, "多场景切换事件"), | |||
| EVENT_IVS_TRAFFIC_RESTRICTED_PLATE(310, "受限车牌事件"), | |||
| EVENT_IVS_TRAFFIC_OVERSTOPLINE(311, "压停止线事件"), | |||
| EVENT_IVS_TRAFFIC_WITHOUT_SAFEBELT(312, "交通未系安全带事件"), | |||
| EVENT_IVS_TRAFFIC_DRIVER_SMOKING(313, "驾驶员抽烟事件"), | |||
| EVENT_IVS_TRAFFIC_DRIVER_CALLING(314, "驾驶员打电话事件"), | |||
| EVENT_IVS_TRAFFIC_PEDESTRAINRUNREDLIGHT(315, "行人闯红灯事件"), | |||
| EVENT_IVS_TRAFFIC_PASSNOTINORDER(316, "未按规定依次通行"), | |||
| EVENT_IVS_OBJECT_DETECTION(321, "物体特征检测事件"), | |||
| EVENT_ALARM_ANALOGALARM(336, "模拟量报警通道的报警事件"), | |||
| EVENT_IVS_CROSSLINEDETECTION_EX(337, "警戒线扩展事件"), | |||
| EVENT_ALARM_COMMON(338, "普通录像"), | |||
| EVENT_ALARM_VIDEOBLIND(339, "视频遮挡事件"), | |||
| EVENT_ALARM_VIDEOLOSS(340, "视频丢失事件"), | |||
| EVENT_IVS_GETOUTBEDDETECTION(341, "看守所下床事件"), | |||
| EVENT_IVS_PATROLDETECTION(342, "巡逻检测事件"), | |||
| EVENT_IVS_ONDUTYDETECTION(343, "站岗检测事件"), | |||
| EVENT_IVS_NOANSWERCALL(344, "门口机呼叫未响应事件"), | |||
| EVENT_IVS_STORAGENOTEXIST(345, "存储组不存在事件"), | |||
| EVENT_IVS_STORAGELOWSPACE(346, "硬盘空间低报警事件"), | |||
| EVENT_IVS_STORAGEFAILURE(347, "存储错误事件"), | |||
| EVENT_IVS_PROFILEALARMTRANSMIT(348, "报警传输事件"), | |||
| EVENT_IVS_VIDEOSTATIC(349, "视频静态检测事件"), | |||
| EVENT_IVS_VIDEOTIMING(350, "视频定时检测事件"), | |||
| EVENT_IVS_HEATMAP(351, "热度图"), | |||
| EVENT_IVS_CITIZENIDCARD(352, "身份证信息读取事件"), | |||
| EVENT_IVS_PICINFO(353, "图片信息事件"), | |||
| EVENT_IVS_NETPLAYCHECK(354, "上网登记事件"), | |||
| EVENT_IVS_TRAFFIC_JAM_FORBID_INTO(355, "车辆拥堵禁入事件"), | |||
| EVENT_IVS_SNAPBYTIME(356, "定时抓图事件"), | |||
| EVENT_IVS_PTZ_PRESET(357, "云台转动到预置点事件"), | |||
| EVENT_IVS_RFID_INFO(358, "红外线检测信息事件"), | |||
| EVENT_IVS_STANDUPDETECTION(359, "人起立检测事件"), | |||
| EVENT_IVS_QSYTRAFFICCARWEIGHT(360, "交通卡口称重事件"), | |||
| EVENT_IVS_TRAFFIC_COMPAREPLATE(361, "卡口前后车牌合成事件"), | |||
| EVENT_IVS_SHOOTINGSCORERECOGNITION(362, "打靶像机事件"), | |||
| EVENT_IVS_TRAFFIC_FCC(363, "加油站提枪、挂枪事件"), | |||
| EVENT_IVS_TRAFFIC_TRANSFINITE(364, "违章超限抓图上报事件"), | |||
| EVENT_IVS_SCENE_CHANGE(365, "场景变更事件"), | |||
| EVENT_IVS_LETRACK(366, "简单跟踪事件(暂未有具体事件)"), | |||
| EVENT_IVS_OBJECT_ACTION(367, "物体检测事件(暂未有具体事件)"), | |||
| EVENT_IVS_TRAFFIC_ANALYSE_PRESNAP(368, "预分析抓拍图片事件"), | |||
| EVENT_ALARM_EQSTATE(369, "智能插座电量状态上报(暂未有具体事件)"), | |||
| EVENT_IVS_ALARM_IPC(370, "DVR/NVR设备上的IPC报警"), | |||
| EVENT_IVS_POS_RECORD(371, "POS录像查询事件(暂未有具体事件)"), | |||
| EVENT_IVS_NEAR_DISTANCE_DETECTION(372, "近距离接触事件"), | |||
| EVENT_IVS_OBJECTSTRUCTLIZE_PERSON(373, "行人特征检测事件"), | |||
| EVENT_IVS_OBJECTSTRUCTLIZE_NONMOTOR(374, "非机动车特征检测事件"), | |||
| EVENT_IVS_TUMBLE_DETECTION(375, "倒地报警事件"), | |||
| EVENT_IVS_TRAFFIC_ALL(511, "所有以traffic开头的事件"), | |||
| EVENT_IVS_VIDEOANALYSE(512, "所有智能分析事件"), | |||
| EVENT_IVS_LINKSD(513, "LinkSD事件"), | |||
| EVENT_IVS_VEHICLEANALYSE(514, "车辆特征检测分析"), | |||
| EVENT_IVS_FLOWRATE(515, "流量使用情况事件"), | |||
| EVENT_IVS_ACCESS_CTL(516, "门禁事件"), | |||
| EVENT_IVS_SNAPMANUAL(517, "SnapManual事件"), | |||
| EVENT_IVS_TRAFFIC_ELETAGINFO(518, "RFID电子车牌标签事件"), | |||
| EVENT_IVS_TRAFFIC_TIREDPHYSIOLOGICAL(519, "生理疲劳驾驶事件"), | |||
| EVENT_IVS_TRAFFIC_BUSSHARPTURN(520, "车辆急转报警事件"), | |||
| EVENT_IVS_CITIZEN_PICTURE_COMPARE(521, "人证比对事件"), | |||
| EVENT_IVS_TRAFFIC_TIREDLOWERHEAD(522, "开车低头报警事件"), | |||
| EVENT_IVS_TRAFFIC_DRIVERLOOKAROUND(523, "开车左顾右盼报警事件"), | |||
| EVENT_IVS_TRAFFIC_DRIVERLEAVEPOST(524, "开车离岗报警事件"), | |||
| EVENT_IVS_MAN_STAND_DETECTION(525, "立体视觉站立事件"), | |||
| EVENT_IVS_MAN_NUM_DETECTION(526, "立体视觉区域内人数统计事件"), | |||
| EVENT_IVS_STEREO_NUMBERSTAT(527, "客流量统计事件"), | |||
| EVENT_IVS_TRAFFIC_DRIVERYAWN(528, "开车打哈欠事件"), | |||
| EVENT_IVS_NUMBERSTAT_PLAN(529, "客流量统计计划"), | |||
| EVENT_IVS_HEATMAP_PLAN(530, "热度图计划"), | |||
| EVENT_IVS_CALLNOANSWERED(531, "呼叫无答应事件"), | |||
| EVENT_IVS_IGNOREINVITE(532, "无视邀请事件"), | |||
| EVENT_IVS_HUMANTRAIT(533, "人体特征事件"), | |||
| EVENT_ALARM_LE_HEADDETECTION(534, "乐橙人头检测事件"), | |||
| EVENT_IVS_FACEANALYSIS(535, "人脸分析事件"), | |||
| EVENT_IVS_TRAFFIC_TURNLEFTAFTERSTRAIGHT(536, "左转不礼让直行事件"), | |||
| EVENT_IVS_TRAFFIC_BIGBENDSMALLTURN(537, "大弯小转事件"), | |||
| EVENT_IVS_ROAD_CONSTRUCTION(538, "道路施工监测事件"), | |||
| EVENT_IVS_ROAD_BLOCK(539, "路障检测事件"), | |||
| EVENT_IVS_TRAFFIC_QUEUEJUMP(540, "车辆加塞事件"), | |||
| EVENT_IVS_VEHICLE_SUSPICIOUSCAR(541, "嫌疑车辆事件"), | |||
| EVENT_IVS_TRAFFIC_TURNRIGHTAFTERSTRAIGHT(542, "右转不礼让直行事件"), | |||
| EVENT_IVS_TRAFFIC_TURNRIGHTAFTERPEOPLE(543, "右转不礼让直行行人"), | |||
| EVENT_IVS_INSTALL_CARDREADER(544, "安装读卡器事件"), | |||
| EVENT_ALARM_YALE_DROPBOX_BADTOKEN(545, " Yale token失效事件,只用于订阅手机推送"), | |||
| EVENT_IVS_ACC_OFF_SNAP(546, "车载设备断电前抓拍上传事件"), | |||
| EVENI_IVS_XRAY_DETECTION(547, "X光检测事件"), | |||
| EVENT_IVS_NOTCLEARCAR(548, "未清车告警"), | |||
| EVENT_IVS_SOSALEART(549, "sos求救报警"), | |||
| EVENT_IVS_OVERLOAD(550, "超载抓图"), | |||
| EVENT_IVS_NONWORKINGTIME(551, "非工作时间告警"), | |||
| EVENT_IVS_TRAFFIC_HIGH_BEAM(552, "远光灯违章事件"), | |||
| EVENT_IVS_TRAFFIC_TRUCKFORBID(553, "禁止货车事件"), | |||
| EVENT_IVS_DRIVINGWITHOUTCARD(554, "无卡驾驶报警事件"), | |||
| EVENT_IVS_HIGHSPEED(555, "车辆超速报警事件"), | |||
| EVENT_IVS_CROWDDETECTION(556, "人群密度检测事件"), | |||
| EVENT_IVS_TRAFFIC_CARDISTANCESHORT(557, "车间距过小报警事件"), | |||
| EVENT_IVS_PEDESTRIAN_JUNCTION(560, "行人卡口事件"), | |||
| EVENT_IVS_VEHICLE_RECOGNITION(561, "车牌对比事件"), | |||
| EVENT_IVS_PASS_CHANGE(562, "预置点图片变化事件"), | |||
| EVENT_IVS_TRAFFIC_PARKING_SPACEDETECTION(563, "违停相机定制单球车位检测规则事件"), | |||
| EVENT_IVS_TRAFFIC_WAITINGAREA(564, "违章进入待行区事件"), | |||
| EVENT_IVS_TRAFFIC_BAN(565, "机动车违法禁令标识事件"), | |||
| EVENT_IVS_POS_EXCHANGE(566, "POS机交易事件"), | |||
| EVENT_IVS_STEREO_FIGHTDETECTION(567, "立体行为分析打架/剧烈运动检测规则"), | |||
| EVENT_IVS_STEREO_DISTANCE_DETECTION(568, "立体行为分析间距异常/人员靠近检测"), | |||
| EVENT_IVS_STEREO_STEREOFALLDETECTION(569, "立体行为分析跌倒检测规则"), | |||
| EVENT_IVS_STEREO_STAYDETECTION(570, "立体行为分析人员滞留检测规则"), | |||
| EVENT_IVS_BANNER_DETECTION(571, "拉横幅事件"), | |||
| EVENT_IVS_NORMAL_FIGHTDETECTION(572, "普通打架事件"), | |||
| EVENT_IVS_ELEVATOR_ABNORMAL(573, "电动扶梯运行异常事件"), | |||
| EVENT_IVS_NONMOTORDETECT(574, "非机动车检测"), | |||
| EVENT_IVS_VEHICLEDETECT(575, "机动车检测"), | |||
| EVENT_IVS_TRAFFIC_PARKING_B(576, "交通违章-B类违章停车"), | |||
| EVENT_IVS_TRAFFIC_PARKING_C(577, "交通违章-C类违章停车"), | |||
| EVENT_IVS_TRAFFIC_PARKING_D(578, "交通违章-D类违章停车"), | |||
| EVENT_IVSS_FACEATTRIBUTE(579, "IVSS人脸检测事件 (暂未有具体事件)"), | |||
| EVENT_IVSS_FACECOMPARE(580, "IVSS人脸识别事件 (暂未有具体事件)"), | |||
| EVENT_IVS_FIREWARNING(581, "火警事件"), | |||
| EVENT_IVS_SHOPPRESENCE(582, "商铺占道经营事件"), | |||
| EVENT_IVS_WASTEDUMPED(583, "垃圾违章倾倒事件"), | |||
| EVENT_IVS_SPILLEDMATERIAL_DETECTION(584, "抛洒物检测事件"), | |||
| EVENT_IVS_STEREO_MANNUM_DETECTION(585, "立体行为分析人数异常检测"), | |||
| EVENT_IVS_DISTANCE_DETECTION(586, "异常间距事件 "), | |||
| EVENT_IVS_TRAFFIC_NONMOTOR_OVERLOAD(587, "非机动车超载事件"), | |||
| EVENT_IVS_TRAFFIC_NONMOTOR_WITHOUTSAFEHAT(588, "非机动车未戴安全帽事件"), | |||
| EVENT_IVS_TRAFFIC_JAM_STOP_ON_ZEBRACROSSING(589, "拥堵滞留斑马线事件"), | |||
| EVENT_IVS_FLOWBUSINESS(590, "流动摊贩事件"), | |||
| EVENT_IVS_CITY_MOTORPARKING(591, "城市机动车违停事件"), | |||
| EVENT_IVS_CITY_NONMOTORPARKING(592, "城市机非动车违停事件"), | |||
| EVENT_IVS_LANEDEPARTURE_WARNNING(593, "车道偏移预警"), | |||
| EVENT_IVS_FORWARDCOLLISION_WARNNING(594, "前向碰撞预警"), | |||
| EVENT_IVS_MATERIALSSTAY(595, "物料堆放事件"), | |||
| EVENT_IVS_TRAFFIC_NONMOTOR_HOLDUMBRELLA(596, "非机动车装载伞具"), | |||
| EVENT_IVS_JABLOTRON_ALARM(597, "客户报警产品"), | |||
| EVENT_IVS_VIDEOUNFOCUS_ALARM(598, "视频虚焦事件"), | |||
| EVENT_IVS_FLOATINGOBJECT_DETECTION(599, "漂浮物检测事件"), | |||
| EVENT_IVS_SHIP_DETECTION(600, "船舶检测事件"), | |||
| EVENT_IVS_AIRPLANE_DETECTION(601, "飞机行为检测事件"), | |||
| EVENT_IVS_PHONECALL_DETECT(602, "打电话检测事件"), | |||
| EVENT_IVS_SMOKING_DETECT(603, "吸烟检测事件"), | |||
| EVENT_IVS_RADAR_SPEED_LIMIT_ALARM(604, "雷达限速报警事件"), | |||
| EVENT_IVS_WATER_LEVEL_DETECTION(605, "水位检测事件"), | |||
| EVENT_IVS_HOLD_UMBRELLA(606, "违规撑伞检测事件"), | |||
| EVENT_IVS_GARBAGE_EXPOSURE(607, "垃圾暴露检测事件"), | |||
| EVENT_IVS_DUSTBIN_OVER_FLOW(608, "垃圾桶满溢检测事件"), | |||
| EVENT_IVS_DOOR_FRONT_DIRTY(609, "门前脏乱检测事件"), | |||
| EVENT_IVS_QUEUESTAY_DETECTION(610, "排队滞留时间报警事件"), | |||
| EVENT_IVS_QUEUENUM_DETECTION(611, "排队人数异常报警事件"), | |||
| EVENT_IVS_GENERATEGRAPH_DETECTION(612, "生成图规则事件"), | |||
| EVENT_IVS_TRAFFIC_PARKING_MANUAL(613, "交通违章-手动取证"), | |||
| EVENT_IVS_HELMET_DETECTION(614, "安全帽检测事件"), | |||
| EVENT_IVS_DEPOSIT_DETECTION(615, "包裹堆积程度检测事件"), | |||
| EVENT_IVS_HOTSPOT_WARNING(616, "热点异常报警事件"), | |||
| EVENT_IVS_WEIGHING_PLATFORM_DETECTION(617, "称重平台检测事件"), | |||
| EVENT_IVS_CLASSROOM_BEHAVIOR(618, "课堂行为分析事件"), | |||
| EVENT_IVS_VEHICLE_DISTANCE_NEAR(619, "安全驾驶车距过近报警事件"), | |||
| EVENT_IVS_TRAFFIC_DRIVER_ABNORMAL(620, "驾驶员异常报警事件"), | |||
| EVENT_IVS_TRAFFIC_DRIVER_CHANGE(621, "驾驶员变更报警事件"), | |||
| EVENT_IVS_WORKCLOTHES_DETECT(622, "工装(安全帽/工作服等)检测事件"), | |||
| EVENT_IVS_SECURITYGATE_PERSONALARM(623, "安检门人员报警事件"), | |||
| EVENT_IVS_STAY_ALONE_DETECTION(624, "单人独处事件"), | |||
| EVENT_IVS_TRAFFIC_ROAD_BLOCK(625, "交通路障检测事件"), | |||
| EVENT_IVS_TRAFFIC_ROAD_CONSTRUCTION(626, "交通道路施工检测事件"), | |||
| EVENT_IVS_XRAY_DETECT_BYOBJECT(627, "X光按物体检测规则配置"), | |||
| EVENT_IVS_WORKSTATDETECTION(628, "作业统计事件"), | |||
| EVENT_IVS_INFRAREDBLOCK(629, "红外阻断事件"), | |||
| EVENT_IVS_FEATURE_ABSTRACT(630, "特征提取事件"), | |||
| EVENT_IVS_INTELLI_SHELF(631, "智能补货事件"), | |||
| EVENT_IVS_PANORAMA_SHOT(632, "全景抓拍事件"), | |||
| EVENT_ALARM_SMARTMOTION_HUMAN(633, "智能视频移动侦测事件(人)"), | |||
| EVENT_ALARM_SMARTMOTION_VEHICLE(634, "智能视频移动侦测事件(车)"), | |||
| EVENT_IVS_CAR_DRIVING_IN_OUT(635, "车辆驶入驶出状态事件"), | |||
| EVENT_IVS_PARKINGSPACE_STATUS(636, "停车位状态事件"), | |||
| EVENT_IVS_VIOLENT_THROW_DETECTION(637, "暴力抛物检测"), | |||
| EVENT_IVS_TRAMCARSECTIONS_DETECTION(638, "矿车超挂报警事件"), | |||
| EVENT_IVS_ALARM_BOX_ALARM(639, "报警盒通道的触发报警事件"), | |||
| EVENT_IVS_FACE_COMPARISION(640, "人脸比对事件"), | |||
| EVENT_IVS_FACEBODY_DETECT(641, "人像检测事件"), | |||
| EVENT_IVS_FACEBODY_ANALYSE(642, "人像识别事件"), | |||
| EVENT_IVS_GASSTATION_VEHICLE_DETECT(643, "加油站车辆检测事件"), | |||
| EVENT_IVS_CONGESTION_DETECTION(644, "道路场景车辆拥堵报警事件"), | |||
| EVENT_IVS_VEHICLELIMIT_DETECTION(645, "停车场场景下停车车辆上限报警"), | |||
| EVENT_IVS_ANIMAL_DETECTION(646, "动物检测事件"), | |||
| EVENT_IVS_SHOP_WINDOW_POST(647, "橱窗张贴事件"), | |||
| EVENT_IVS_SHOP_SIGN_ABNORMAL(648, "店招异常事件"), | |||
| EVENT_IVS_BREED_DETECTION(649, "智慧养殖检测事件"), | |||
| EVENT_IVS_AIRPORT_VEHICLE_DETECT(650, "机场智能保障车辆检测事件"), | |||
| EVENT_IVS_PIG_TEMPERATURE_DETECT(651, "智慧养殖猪体温检测"), | |||
| EVENT_IVS_MAN_CAR_COEXISTANCE(652, "人车共存事件"), | |||
| EVENT_IVS_HIGH_TOSS_DETECT(653, "高空抛物检测"), | |||
| EVENT_IVS_ELECTRIC_GLOVE_DETECT(654, "电力检测手套检测事件"), | |||
| EVENT_IVS_ELECTRIC_LADDER_DETECT(655, "电力检测梯子检测事件"), | |||
| EVENT_IVS_ELECTRIC_CURTAIN_DETECT(656, "电力检测布幔检测事件"), | |||
| EVENT_IVS_ELECTRIC_FENCE_DETECT(657, "电力检测围栏检测事件"), | |||
| EVENT_IVS_ELECTRIC_SIGNBOARD_DETECT(658, "电力检测标识牌检测事件"), | |||
| EVENT_IVS_ELECTRIC_BELT_DETECT(659, "电力检测安全带检测事件"), | |||
| EVENT_IVS_RADAR_LINE_DETECTION(660, "雷达警戒线/绊线检测"), | |||
| EVENT_IVS_RADAR_REGION_DETECTION(661, "雷达警戒区检测事件"), | |||
| EVENT_IVS_AUDIO_INTENSITY(662, "异常音事件"), | |||
| EVENT_IVS_PARKING_LOT_STATUS_DETECTION(663, "室外停车位状态检测"), | |||
| EVENT_IVS_VEHICLE_COMPARE(664, ""), | |||
| EVENT_IVS_DREGS_UNCOVERED(665, "渣土车未遮盖载货检测事件"), | |||
| EVENT_IVS_WALK_DETECTION(666, "走动检测事件"), | |||
| EVENT_IVS_BACK_TO_DETECTION(667, "背对检测事件"), | |||
| EVENT_IVS_WRITE_ON_THE_BOARD_DETECTION(668, "板书检测事件"), | |||
| EVENT_IVS_SMART_KITCHEN_CLOTHES_DETECTION(669, "智慧厨房穿着检测事件"), | |||
| EVENT_IVS_SLEEP_DETECT(670, "睡觉检测事件"), | |||
| EVENT_IVS_WALK_AROUND_DETECT(671, "随意走动检测事件"), | |||
| EVENT_IVS_PLAY_MOBILEPHONE(768, "玩手机事件"), | |||
| EVENT_IVS_FINANCE_CONTRABAND_DETECT(769, "智慧金融违规物品检测事件"), | |||
| EVENT_IVS_FINANCE_CASH_TRANSACTION(770, "智慧金融现金交易检测事件"), | |||
| EVENT_IVS_ANATOMY_TEMP_DETECT(771, "人体温智能检测事件"), | |||
| EVENT_IVS_ACTIVITY_ANALYSE(772, "活跃度统计规则"), | |||
| EVENT_IVS_DOOR_STATUS(773, "门状态事件"), | |||
| EVENT_IVS_DHOP_CUSTOM(774, "Dhop自定义事件"), | |||
| EVENT_IVS_DHOP_CUSTOM_ONCE(775, "Dhop自定义事件"), | |||
| EVENT_IVS_FOG_DETECTION(776, "起雾检测事件"), | |||
| EVENT_IVS_TRAFFIC_VEHICLE_RACE(777, "飙车事件"), | |||
| EVENT_IVS_TRAFFIC_MOTOR_OVERLOAD(778, "机动车超载"), | |||
| EVENT_IVS_TRAFFIC_PLATE_OCCLUSION(779, "车牌污损"), | |||
| EVENT_IVS_NONMOTOR_ENTRYING(780, "非机动车进入电梯"), | |||
| EVENT_IVS_WATER_STAGE_MONITOR(781, "水位监测事件"), | |||
| EVENT_IVS_TRAFFIC_ROAD_ALERT(782, "道路安全预警"), | |||
| EVENT_IVS_BREAK_RULE_BUILDING_DETECTION(783, "违章建筑检测事件"), | |||
| EVENT_IVS_TRAFFIC_NONMOTOR_RUN_REDLIGHT(784, "非机动车闯红灯"), | |||
| EVENT_IVS_STREET_SUNCURE(839, "沿街晾晒事件"), | |||
| EVENT_IVS_OUTDOOR_ADVERTISEMENT(840, "户外广告事件"), | |||
| EVENT_IVS_HUDDLE_MATERIAL(841, "乱堆物料检测事件"), | |||
| EVENT_IVS_FOLLOW_CAR_ALARM(847, "跟车报警事件"), | |||
| EVENT_IVS_FIRE_LANE_DETECTION(804, "消防占道检测事件"); | |||
| private int type; | |||
| private String description; | |||
| private EM_EVENT_IVS_TYPE(int type, String description) { | |||
| this.type = type; | |||
| this.description = description; | |||
| } | |||
| public static EM_EVENT_IVS_TYPE getEventType(int type) { | |||
| EM_EVENT_IVS_TYPE[] var1 = values(); | |||
| int var2 = var1.length; | |||
| for(int var3 = 0; var3 < var2; ++var3) { | |||
| EM_EVENT_IVS_TYPE event = var1[var3]; | |||
| if(type == event.getType()) { | |||
| return event; | |||
| } | |||
| } | |||
| return null; | |||
| } | |||
| public int getType() { | |||
| return this.type; | |||
| } | |||
| public void setType(int type) { | |||
| this.type = type; | |||
| } | |||
| public String getDescription() { | |||
| return this.description; | |||
| } | |||
| public void setDescription(String description) { | |||
| this.description = description; | |||
| } | |||
| } | |||
| @ -1,406 +0,0 @@ | |||
| package com.inspect.access.lib.enumeration; | |||
| public enum EM_EVENT_TYPE { | |||
| EVENT_IVS_ALL(1, "订阅所有事件"), | |||
| EVENT_IVS_CROSSLINEDETECTION(2, "警戒线事件"), | |||
| EVENT_IVS_CROSSREGIONDETECTION(3, "警戒区事件"), | |||
| EVENT_IVS_PASTEDETECTION(4, "贴条事件"), | |||
| EVENT_IVS_LEFTDETECTION(5, "物品遗留事件"), | |||
| EVENT_IVS_STAYDETECTION(6, "停留事件"), | |||
| EVENT_IVS_WANDERDETECTION(7, "徘徊事件"), | |||
| EVENT_IVS_PRESERVATION(8, "物品保全事件"), | |||
| EVENT_IVS_MOVEDETECTION(9, "移动事件"), | |||
| EVENT_IVS_TAILDETECTION(10, "尾随事件"), | |||
| EVENT_IVS_RIOTERDETECTION(11, "聚众事件"), | |||
| EVENT_IVS_FIREDETECTION(12, "火警事件"), | |||
| EVENT_IVS_SMOKEDETECTION(13, "烟雾报警事件"), | |||
| EVENT_IVS_FIGHTDETECTION(14, "斗殴事件"), | |||
| EVENT_IVS_FLOWSTAT(15, "流量统计事件"), | |||
| EVENT_IVS_NUMBERSTAT(16, "数量统计事件"), | |||
| EVENT_IVS_CAMERACOVERDDETECTION(17, "摄像头覆盖事件"), | |||
| EVENT_IVS_CAMERAMOVEDDETECTION(18, "摄像头移动事件"), | |||
| EVENT_IVS_VIDEOABNORMALDETECTION(19, "视频异常事件"), | |||
| EVENT_IVS_VIDEOBADDETECTION(20, "视频损坏事件"), | |||
| EVENT_IVS_TRAFFICCONTROL(21, "交通管制事件"), | |||
| EVENT_IVS_TRAFFICACCIDENT(22, "交通事故事件"), | |||
| EVENT_IVS_TRAFFICJUNCTION(23, "交通路口事件----老规则"), | |||
| EVENT_IVS_TRAFFICGATE(24, "交通卡口事件----老规则"), | |||
| EVENT_TRAFFICSNAPSHOT(25, "交通抓拍事件"), | |||
| EVENT_IVS_FACEDETECT(26, "人脸检测事件"), | |||
| EVENT_IVS_TRAFFICJAM(27, "交通拥堵事件"), | |||
| EVENT_IVS_TRAFFIC_NONMOTORINMOTORROUTE(28, "非机动车占机动车车道事件"), | |||
| EVENT_IVS_TRAFFIC_RUNREDLIGHT(256, "交通违章-闯红灯事件"), | |||
| EVENT_IVS_TRAFFIC_OVERLINE(257, "交通违章-压车道线事件"), | |||
| EVENT_IVS_TRAFFIC_RETROGRADE(258, "交通违章-逆行事件"), | |||
| EVENT_IVS_TRAFFIC_TURNLEFT(259, "交通违章-违章左转"), | |||
| EVENT_IVS_TRAFFIC_TURNRIGHT(260, "交通违章-违章右转"), | |||
| EVENT_IVS_TRAFFIC_UTURN(261, "交通违章-违章掉头"), | |||
| EVENT_IVS_TRAFFIC_OVERSPEED(262, "交通违章-超速"), | |||
| EVENT_IVS_TRAFFIC_UNDERSPEED(263, "交通违章-低速"), | |||
| EVENT_IVS_TRAFFIC_PARKING(264, "交通违章-违章停车"), | |||
| EVENT_IVS_TRAFFIC_WRONGROUTE(265, "交通违章-不按车道行驶"), | |||
| EVENT_IVS_TRAFFIC_CROSSLANE(266, "交通违章-违章变道"), | |||
| EVENT_IVS_TRAFFIC_OVERYELLOWLINE(267, "交通违章-压黄线"), | |||
| EVENT_IVS_TRAFFIC_DRIVINGONSHOULDER(268, "交通违章-路肩行驶事件"), | |||
| EVENT_IVS_TRAFFIC_YELLOWPLATEINLANE(270, "交通违章-黄牌车占道事件"), | |||
| EVENT_IVS_TRAFFIC_PEDESTRAINPRIORITY(271, "交通违章-礼让行人/斑马线行人优先事件"), | |||
| EVENT_IVS_ELECTROSPARKDETECTION(272, "电火花事件"), | |||
| EVENT_IVS_TRAFFIC_NOPASSING(273, "交通违章-禁止通行事件"), | |||
| EVENT_IVS_ABNORMALRUNDETECTION(274, "异常奔跑事件"), | |||
| EVENT_IVS_RETROGRADEDETECTION(275, "人员逆行事件"), | |||
| EVENT_IVS_INREGIONDETECTION(276, "区域内检测事件"), | |||
| EVENT_IVS_TAKENAWAYDETECTION(277, "物品搬移事件"), | |||
| EVENT_IVS_PARKINGDETECTION(278, "非法停车事件"), | |||
| EVENT_IVS_FACERECOGNITION(279, "人脸识别事件"), | |||
| EVENT_IVS_TRAFFIC_MANUALSNAP(280, "交通手动抓拍事件"), | |||
| EVENT_IVS_TRAFFIC_FLOWSTATE(281, "交通流量统计事件"), | |||
| EVENT_IVS_TRAFFIC_STAY(282, "交通滞留事件"), | |||
| EVENT_IVS_TRAFFIC_VEHICLEINROUTE(283, "有车占道事件"), | |||
| EVENT_ALARM_MOTIONDETECT(284, "视频移动侦测事件"), | |||
| EVENT_ALARM_LOCALALARM(285, "外部报警事件"), | |||
| EVENT_IVS_PRISONERRISEDETECTION(286, "看守所囚犯起身事件"), | |||
| EVENT_IVS_CROSSFENCEDETECTION(287, "翻越围栏事件"), | |||
| EVENT_IVS_TRAFFIC_TOLLGATE(288, "交通违章-卡口事件----新规则"), | |||
| EVENT_IVS_DENSITYDETECTION(289, "人员密集度检测"), | |||
| EVENT_IVS_VIDEODIAGNOSIS(290, "视频诊断结果事件"), | |||
| EVENT_IVS_QUEUEDETECTION(291, "排队检测报警事件"), | |||
| EVENT_IVS_TRAFFIC_VEHICLEINBUSROUTE(292, "占用公交车道事件"), | |||
| EVENT_IVS_TRAFFIC_BACKING(293, "违章倒车事件"), | |||
| EVENT_IVS_AUDIO_ABNORMALDETECTION(294, "声音异常检测"), | |||
| EVENT_IVS_TRAFFIC_RUNYELLOWLIGHT(295, "交通违章-闯黄灯事件"), | |||
| EVENT_IVS_CLIMBDETECTION(296, "攀高检测事件"), | |||
| EVENT_IVS_LEAVEDETECTION(297, "离岗检测事件"), | |||
| EVENT_IVS_TRAFFIC_PARKINGONYELLOWBOX(298, "黄网格线抓拍事件"), | |||
| EVENT_IVS_TRAFFIC_PARKINGSPACEPARKING(299, "车位有车事件"), | |||
| EVENT_IVS_TRAFFIC_PARKINGSPACENOPARKING(300, "车位无车事件"), | |||
| EVENT_IVS_TRAFFIC_PEDESTRAIN(301, "交通行人事件"), | |||
| EVENT_IVS_TRAFFIC_THROW(302, "交通抛洒物品事件"), | |||
| EVENT_IVS_TRAFFIC_IDLE(303, "交通空闲事件"), | |||
| EVENT_ALARM_VEHICLEACC(304, "车载ACC断电报警事件"), | |||
| EVENT_ALARM_VEHICLE_TURNOVER(305, "车辆侧翻报警事件"), | |||
| EVENT_ALARM_VEHICLE_COLLISION(306, "车辆撞车报警事件"), | |||
| EVENT_ALARM_VEHICLE_LARGE_ANGLE(307, "车载摄像头大角度扭转事件"), | |||
| EVENT_IVS_TRAFFIC_PARKINGSPACEOVERLINE(308, "车位压线事件"), | |||
| EVENT_IVS_MULTISCENESWITCH(309, "多场景切换事件"), | |||
| EVENT_IVS_TRAFFIC_RESTRICTED_PLATE(310, "受限车牌事件"), | |||
| EVENT_IVS_TRAFFIC_OVERSTOPLINE(311, "压停止线事件"), | |||
| EVENT_IVS_TRAFFIC_WITHOUT_SAFEBELT(312, "交通未系安全带事件"), | |||
| EVENT_IVS_TRAFFIC_DRIVER_SMOKING(313, "驾驶员抽烟事件"), | |||
| EVENT_IVS_TRAFFIC_DRIVER_CALLING(314, "驾驶员打电话事件"), | |||
| EVENT_IVS_TRAFFIC_PEDESTRAINRUNREDLIGHT(315, "行人闯红灯事件"), | |||
| EVENT_IVS_TRAFFIC_PASSNOTINORDER(316, "未按规定依次通行"), | |||
| EVENT_IVS_OBJECT_DETECTION(321, "物体特征检测事件"), | |||
| EVENT_ALARM_ANALOGALARM(336, "模拟量报警通道的报警事件"), | |||
| EVENT_IVS_CROSSLINEDETECTION_EX(337, "警戒线扩展事件"), | |||
| EVENT_ALARM_COMMON(338, "普通录像"), | |||
| EVENT_ALARM_VIDEOBLIND(339, "视频遮挡事件"), | |||
| EVENT_ALARM_VIDEOLOSS(340, "视频丢失事件"), | |||
| EVENT_IVS_GETOUTBEDDETECTION(341, "看守所下床事件"), | |||
| EVENT_IVS_PATROLDETECTION(342, "巡逻检测事件"), | |||
| EVENT_IVS_ONDUTYDETECTION(343, "站岗检测事件"), | |||
| EVENT_IVS_NOANSWERCALL(344, "门口机呼叫未响应事件"), | |||
| EVENT_IVS_STORAGENOTEXIST(345, "存储组不存在事件"), | |||
| EVENT_IVS_STORAGELOWSPACE(346, "硬盘空间低报警事件"), | |||
| EVENT_IVS_STORAGEFAILURE(347, "存储错误事件"), | |||
| EVENT_IVS_PROFILEALARMTRANSMIT(348, "报警传输事件"), | |||
| EVENT_IVS_VIDEOSTATIC(349, "视频静态检测事件"), | |||
| EVENT_IVS_VIDEOTIMING(350, "视频定时检测事件"), | |||
| EVENT_IVS_HEATMAP(351, "热度图"), | |||
| EVENT_IVS_CITIZENIDCARD(352, "身份证信息读取事件"), | |||
| EVENT_IVS_PICINFO(353, "图片信息事件"), | |||
| EVENT_IVS_NETPLAYCHECK(354, "上网登记事件"), | |||
| EVENT_IVS_TRAFFIC_JAM_FORBID_INTO(355, "车辆拥堵禁入事件"), | |||
| EVENT_IVS_SNAPBYTIME(356, "定时抓图事件"), | |||
| EVENT_IVS_PTZ_PRESET(357, "云台转动到预置点事件"), | |||
| EVENT_IVS_RFID_INFO(358, "红外线检测信息事件"), | |||
| EVENT_IVS_STANDUPDETECTION(359, "人起立检测事件"), | |||
| EVENT_IVS_QSYTRAFFICCARWEIGHT(360, "交通卡口称重事件"), | |||
| EVENT_IVS_TRAFFIC_COMPAREPLATE(361, "卡口前后车牌合成事件"), | |||
| EVENT_IVS_SHOOTINGSCORERECOGNITION(362, "打靶像机事件"), | |||
| EVENT_IVS_TRAFFIC_FCC(363, "加油站提枪、挂枪事件"), | |||
| EVENT_IVS_TRAFFIC_TRANSFINITE(364, "违章超限抓图上报事件,绍兴科技治超"), | |||
| EVENT_IVS_SCENE_CHANGE(365, "场景变更事件"), | |||
| EVENT_IVS_LETRACK(366, "简单跟踪事件"), | |||
| EVENT_IVS_OBJECT_ACTION(367, "物体检测事件"), | |||
| EVENT_IVS_TRAFFIC_ANALYSE_PRESNAP(368, "预分析抓拍图片事件"), | |||
| EVENT_ALARM_EQSTATE(369, "智能插座电量状态上报"), | |||
| EVENT_IVS_ALARM_IPC(370, "DVR/NVR设备上的IPC报警"), | |||
| EVENT_IVS_POS_RECORD(371, "POS录像查询事件"), | |||
| EVENT_IVS_NEAR_DISTANCE_DETECTION(372, "近距离接触事件"), | |||
| EVENT_IVS_OBJECTSTRUCTLIZE_PERSON(373, "行人特征检测事件"), | |||
| EVENT_IVS_OBJECTSTRUCTLIZE_NONMOTOR(374, "非机动车特征检测事件"), | |||
| EVENT_IVS_TUMBLE_DETECTION(375, "倒地报警事件"), | |||
| EVENT_IVS_TRAFFIC_ALL(511, "所有以traffic开头的事件,目前指的是"), | |||
| EVENT_IVS_VIDEOANALYSE(512, "所有智能分析事件"), | |||
| EVENT_IVS_LINKSD(513, "LinkSD事件"), | |||
| EVENT_IVS_VEHICLEANALYSE(514, "车辆特征检测分析"), | |||
| EVENT_IVS_FLOWRATE(515, "流量使用情况事件"), | |||
| EVENT_IVS_ACCESS_CTL(516, "门禁事件"), | |||
| EVENT_IVS_SNAPMANUAL(517, "SnapManual事件"), | |||
| EVENT_IVS_TRAFFIC_ELETAGINFO(518, "RFID电子车牌标签事件"), | |||
| EVENT_IVS_TRAFFIC_TIREDPHYSIOLOGICAL(519, "生理疲劳驾驶事件"), | |||
| EVENT_IVS_TRAFFIC_BUSSHARPTURN(520, "车辆急转报警事件"), | |||
| EVENT_IVS_CITIZEN_PICTURE_COMPARE(521, "人证比对事件"), | |||
| EVENT_IVS_TRAFFIC_TIREDLOWERHEAD(522, "开车低头报警事件"), | |||
| EVENT_IVS_TRAFFIC_DRIVERLOOKAROUND(523, "开车左顾右盼报警事件"), | |||
| EVENT_IVS_TRAFFIC_DRIVERLEAVEPOST(524, "开车离岗报警事件"), | |||
| EVENT_IVS_MAN_STAND_DETECTION(525, "立体视觉站立事件"), | |||
| EVENT_IVS_MAN_NUM_DETECTION(526, "立体视觉区域内人数统计事件"), | |||
| EVENT_IVS_STEREO_NUMBERSTAT(527, "客流量统计事件"), | |||
| EVENT_IVS_TRAFFIC_DRIVERYAWN(528, "开车打哈欠事件"), | |||
| EVENT_IVS_NUMBERSTAT_PLAN(529, "客流量统计计划"), | |||
| EVENT_IVS_HEATMAP_PLAN(530, "热度图计划"), | |||
| EVENT_IVS_CALLNOANSWERED(531, "呼叫无答应事件"), | |||
| EVENT_IVS_IGNOREINVITE(532, "无视邀请事件"), | |||
| EVENT_IVS_HUMANTRAIT(533, "人体特征事件"), | |||
| EVENT_ALARM_LE_HEADDETECTION(534, "乐橙人头检测事件"), | |||
| EVENT_IVS_FACEANALYSIS(535, "人脸分析事件"), | |||
| EVENT_IVS_TRAFFIC_TURNLEFTAFTERSTRAIGHT(536, "左转不礼让直行事件"), | |||
| EVENT_IVS_TRAFFIC_BIGBENDSMALLTURN(537, "大弯小转事件"), | |||
| EVENT_IVS_ROAD_CONSTRUCTION(538, "道路施工监测事件"), | |||
| EVENT_IVS_ROAD_BLOCK(539, "路障检测事件"), | |||
| EVENT_IVS_TRAFFIC_QUEUEJUMP(540, "车辆加塞事件"), | |||
| EVENT_IVS_VEHICLE_SUSPICIOUSCAR(541, "嫌疑车辆事件"), | |||
| EVENT_IVS_TRAFFIC_TURNRIGHTAFTERSTRAIGHT(542, "右转不礼让直行事件"), | |||
| EVENT_IVS_TRAFFIC_TURNRIGHTAFTERPEOPLE(543, "右转不礼让直行行人"), | |||
| EVENT_IVS_INSTALL_CARDREADER(544, "安装读卡器事件"), | |||
| EVENT_ALARM_YALE_DROPBOX_BADTOKEN(545, "Yale"), | |||
| EVENT_IVS_ACC_OFF_SNAP(546, "车载设备断电前抓拍上传事件"), | |||
| EVENI_IVS_XRAY_DETECTION(547, "X光检测事件"), | |||
| EVENT_IVS_NOTCLEARCAR(548, "未清车告警"), | |||
| EVENT_IVS_SOSALEART(549, "sos求救报警"), | |||
| EVENT_IVS_OVERLOAD(550, "超载抓图"), | |||
| EVENT_IVS_NONWORKINGTIME(551, "非工作时间告警"), | |||
| EVENT_IVS_TRAFFIC_HIGH_BEAM(552, "远光灯违章事件"), | |||
| EVENT_IVS_TRAFFIC_TRUCKFORBID(553, "禁止货车事件"), | |||
| EVENT_IVS_DRIVINGWITHOUTCARD(554, "无卡驾驶报警事件"), | |||
| EVENT_IVS_HIGHSPEED(555, "车辆超速报警事件"), | |||
| EVENT_IVS_CROWDDETECTION(556, "人群密度检测事件"), | |||
| EVENT_IVS_TRAFFIC_CARDISTANCESHORT(557, "车间距过小报警事件"), | |||
| EVENT_IVS_PEDESTRIAN_JUNCTION(560, "行人卡口事件"), | |||
| EVENT_IVS_VEHICLE_RECOGNITION(561, "车牌对比事件"), | |||
| EVENT_IVS_PASS_CHANGE(562, "预置点图片变化事件"), | |||
| EVENT_IVS_TRAFFIC_PARKING_SPACEDETECTION(563, "违停相机定制单球车位检测规则事件"), | |||
| EVENT_IVS_TRAFFIC_WAITINGAREA(564, "违章进入待行区事件"), | |||
| EVENT_IVS_TRAFFIC_BAN(565, "机动车违法禁令标识事件"), | |||
| EVENT_IVS_POS_EXCHANGE(566, "POS机交易事件"), | |||
| EVENT_IVS_STEREO_FIGHTDETECTION(567, "立体行为分析打架/剧烈运动检测规则"), | |||
| EVENT_IVS_STEREO_DISTANCE_DETECTION(568, "立体行为分析间距异常/人员靠近检测"), | |||
| EVENT_IVS_STEREO_STEREOFALLDETECTION(569, "立体行为分析跌倒检测规则"), | |||
| EVENT_IVS_STEREO_STAYDETECTION(570, "立体行为分析人员滞留检测规则"), | |||
| EVENT_IVS_BANNER_DETECTION(571, "拉横幅事件"), | |||
| EVENT_IVS_NORMAL_FIGHTDETECTION(572, "普通打架事件"), | |||
| EVENT_IVS_ELEVATOR_ABNORMAL(573, "电动扶梯运行异常事件"), | |||
| EVENT_IVS_NONMOTORDETECT(574, "非机动车检测"), | |||
| EVENT_IVS_VEHICLEDETECT(575, "机动车检测"), | |||
| EVENT_IVS_TRAFFIC_PARKING_B(576, "交通违章-B类违章停车"), | |||
| EVENT_IVS_TRAFFIC_PARKING_C(577, "交通违章-C类违章停车"), | |||
| EVENT_IVS_TRAFFIC_PARKING_D(578, "交通违章-D类违章停车"), | |||
| EVENT_IVSS_FACEATTRIBUTE(579, "IVSS人脸检测事件"), | |||
| EVENT_IVSS_FACECOMPARE(580, "IVSS人脸识别事件"), | |||
| EVENT_IVS_FIREWARNING(581, "火警事件"), | |||
| EVENT_IVS_SHOPPRESENCE(582, "商铺占道经营事件"), | |||
| EVENT_IVS_WASTEDUMPED(583, "垃圾违章倾倒事件"), | |||
| EVENT_IVS_SPILLEDMATERIAL_DETECTION(584, "抛洒物检测事件"), | |||
| EVENT_IVS_STEREO_MANNUM_DETECTION(585, "立体行为分析人数异常检测"), | |||
| EVENT_IVS_DISTANCE_DETECTION(586, "异常间距事件"), | |||
| EVENT_IVS_TRAFFIC_NONMOTOR_OVERLOAD(587, "非机动车超载事件"), | |||
| EVENT_IVS_TRAFFIC_NONMOTOR_WITHOUTSAFEHAT(588, "非机动车未戴安全帽事件"), | |||
| EVENT_IVS_TRAFFIC_JAM_STOP_ON_ZEBRACROSSING(589, "拥堵滞留斑马线事件"), | |||
| EVENT_IVS_FLOWBUSINESS(590, "流动摊贩事件"), | |||
| EVENT_IVS_CITY_MOTORPARKING(591, "城市机动车违停事件"), | |||
| EVENT_IVS_CITY_NONMOTORPARKING(592, "城市机非动车违停事件"), | |||
| EVENT_IVS_LANEDEPARTURE_WARNNING(593, "车道偏移预警"), | |||
| EVENT_IVS_FORWARDCOLLISION_WARNNING(594, "前向碰撞预警"), | |||
| EVENT_IVS_MATERIALSSTAY(595, "物料堆放事件"), | |||
| EVENT_IVS_TRAFFIC_NONMOTOR_HOLDUMBRELLA(596, "非机动车装载伞具"), | |||
| EVENT_IVS_JABLOTRON_ALARM(597, "客户报警产品"), | |||
| EVENT_IVS_VIDEOUNFOCUS_ALARM(598, "视频虚焦事件"), | |||
| EVENT_IVS_FLOATINGOBJECT_DETECTION(599, "漂浮物检测事件"), | |||
| EVENT_IVS_SHIP_DETECTION(600, "船舶检测事件"), | |||
| EVENT_IVS_AIRPLANE_DETECTION(601, "飞机行为检测事件"), | |||
| EVENT_IVS_PHONECALL_DETECT(602, "打电话检测事件"), | |||
| EVENT_IVS_SMOKING_DETECT(603, "吸烟检测事件"), | |||
| EVENT_IVS_RADAR_SPEED_LIMIT_ALARM(604, "雷达限速报警事件"), | |||
| EVENT_IVS_WATER_LEVEL_DETECTION(605, "水位检测事件"), | |||
| EVENT_IVS_HOLD_UMBRELLA(606, "违规撑伞检测事件"), | |||
| EVENT_IVS_GARBAGE_EXPOSURE(607, "垃圾暴露检测事件"), | |||
| EVENT_IVS_DUSTBIN_OVER_FLOW(608, "垃圾桶满溢检测事件"), | |||
| EVENT_IVS_DOOR_FRONT_DIRTY(609, "门前脏乱检测事件"), | |||
| EVENT_IVS_QUEUESTAY_DETECTION(610, "排队滞留时间报警事件"), | |||
| EVENT_IVS_QUEUENUM_DETECTION(611, "排队人数异常报警事件"), | |||
| EVENT_IVS_GENERATEGRAPH_DETECTION(612, "生成图规则事件"), | |||
| EVENT_IVS_TRAFFIC_PARKING_MANUAL(613, "交通违章-手动取证"), | |||
| EVENT_IVS_HELMET_DETECTION(614, "安全帽检测事件"), | |||
| EVENT_IVS_DEPOSIT_DETECTION(615, "包裹堆积程度检测事件"), | |||
| EVENT_IVS_HOTSPOT_WARNING(616, "热点异常报警事件"), | |||
| EVENT_IVS_WEIGHING_PLATFORM_DETECTION(617, "称重平台检测事件"), | |||
| EVENT_IVS_CLASSROOM_BEHAVIOR(618, "课堂行为分析事件"), | |||
| EVENT_IVS_VEHICLE_DISTANCE_NEAR(619, "安全驾驶车距过近报警事件"), | |||
| EVENT_IVS_TRAFFIC_DRIVER_ABNORMAL(620, "驾驶员异常报警事件"), | |||
| EVENT_IVS_TRAFFIC_DRIVER_CHANGE(621, "驾驶员变更报警事件"), | |||
| EVENT_IVS_WORKCLOTHES_DETECT(622, "工装"), | |||
| EVENT_IVS_SECURITYGATE_PERSONALARM(623, "安检门人员报警事件"), | |||
| EVENT_IVS_STAY_ALONE_DETECTION(624, "单人独处事件"), | |||
| EVENT_IVS_TRAFFIC_ROAD_BLOCK(625, "交通路障检测事件"), | |||
| EVENT_IVS_TRAFFIC_ROAD_CONSTRUCTION(626, "交通道路施工检测事件"), | |||
| EVENT_IVS_XRAY_DETECT_BYOBJECT(627, "X光按物体检测规则配置,"), | |||
| EVENT_IVS_WORKSTATDETECTION(628, "作业统计事件"), | |||
| EVENT_IVS_INFRAREDBLOCK(629, "红外阻断事件"), | |||
| EVENT_IVS_FEATURE_ABSTRACT(630, "特征提取事件"), | |||
| EVENT_IVS_INTELLI_SHELF(631, "智能补货事件"), | |||
| EVENT_IVS_PANORAMA_SHOT(632, "全景抓拍事件"), | |||
| EVENT_ALARM_SMARTMOTION_HUMAN(633, "智能视频移动侦测事件"), | |||
| EVENT_ALARM_SMARTMOTION_VEHICLE(634, "智能视频移动侦测事件"), | |||
| EVENT_IVS_CAR_DRIVING_IN_OUT(635, "车辆驶入驶出状态事件"), | |||
| EVENT_IVS_PARKINGSPACE_STATUS(636, "停车位状态事件"), | |||
| EVENT_IVS_VIOLENT_THROW_DETECTION(637, "暴力抛物检测"), | |||
| EVENT_IVS_TRAMCARSECTIONS_DETECTION(638, "矿车超挂报警事件"), | |||
| EVENT_IVS_ALARM_BOX_ALARM(639, "报警盒通道的触发报警事件,"), | |||
| EVENT_IVS_FACE_COMPARISION(640, "人脸比对事件,"), | |||
| EVENT_IVS_FACEBODY_DETECT(641, "人像检测事件"), | |||
| EVENT_IVS_FACEBODY_ANALYSE(642, "人像识别事件"), | |||
| EVENT_IVS_GASSTATION_VEHICLE_DETECT(643, "加油站车辆检测事件"), | |||
| EVENT_IVS_CONGESTION_DETECTION(644, "道路场景车辆拥堵报警事件"), | |||
| EVENT_IVS_VEHICLELIMIT_DETECTION(645, "停车场场景下停车车辆上限报警"), | |||
| EVENT_IVS_ANIMAL_DETECTION(646, "动物检测事件,"), | |||
| EVENT_IVS_SHOP_WINDOW_POST(647, "橱窗张贴事件"), | |||
| EVENT_IVS_SHOP_SIGN_ABNORMAL(648, "店招异常事件"), | |||
| EVENT_IVS_BREED_DETECTION(649, "智慧养殖检测事件"), | |||
| EVENT_IVS_AIRPORT_VEHICLE_DETECT(650, "机场智能保障车辆检测事件"), | |||
| EVENT_IVS_PIG_TEMPERATURE_DETECT(651, "智慧养殖猪体温检测"), | |||
| EVENT_IVS_MAN_CAR_COEXISTANCE(652, "人车共存事件"), | |||
| EVENT_IVS_HIGH_TOSS_DETECT(653, "高空抛物检测"), | |||
| EVENT_IVS_ELECTRIC_GLOVE_DETECT(654, "电力检测手套检测事件"), | |||
| EVENT_IVS_ELECTRIC_LADDER_DETECT(655, "电力检测梯子检测事件"), | |||
| EVENT_IVS_ELECTRIC_CURTAIN_DETECT(656, "电力检测布幔检测事件"), | |||
| EVENT_IVS_ELECTRIC_FENCE_DETECT(657, "电力检测围栏检测事件"), | |||
| EVENT_IVS_ELECTRIC_SIGNBOARD_DETECT(658, "电力检测标识牌检测事件"), | |||
| EVENT_IVS_ELECTRIC_BELT_DETECT(659, "电力检测安全带检测事件"), | |||
| EVENT_IVS_RADAR_LINE_DETECTION(660, "雷达警戒线/绊线检测"), | |||
| EVENT_IVS_RADAR_REGION_DETECTION(661, "雷达警戒区检测事件"), | |||
| EVENT_IVS_AUDIO_INTENSITY(662, "异常音事件"), | |||
| EVENT_IVS_PARKING_LOT_STATUS_DETECTION(663, "室外停车位状态检测"), | |||
| EVENT_IVS_VEHICLE_COMPARE(664, "只用于规则配置"), | |||
| EVENT_IVS_DREGS_UNCOVERED(665, "渣土车未遮盖载货检测事件"), | |||
| EVENT_IVS_WALK_DETECTION(666, "走动检测事件"), | |||
| EVENT_IVS_BACK_TO_DETECTION(667, "背对检测事件"), | |||
| EVENT_IVS_WRITE_ON_THE_BOARD_DETECTION(668, "板书检测事件"), | |||
| EVENT_IVS_SMART_KITCHEN_CLOTHES_DETECTION(669, "智慧厨房穿着检测事件"), | |||
| EVENT_IVS_SLEEP_DETECT(670, "睡觉检测事件"), | |||
| EVENT_IVS_WALK_AROUND_DETECT(671, "随意走动检测事件"), | |||
| EVENT_IVS_PLAY_MOBILEPHONE(768, "玩手机事件"), | |||
| EVENT_IVS_FINANCE_CONTRABAND_DETECT(769, "智慧金融违规物品检测事件"), | |||
| EVENT_IVS_FINANCE_CASH_TRANSACTION(770, "智慧金融现金交易检测事件"), | |||
| EVENT_IVS_ANATOMY_TEMP_DETECT(771, "人体温智能检测事件"), | |||
| EVENT_IVS_ACTIVITY_ANALYSE(772, "活跃度统计规则"), | |||
| EVENT_IVS_DOOR_STATUS(773, "门状态事件"), | |||
| EVENT_IVS_DHOP_CUSTOM(774, "Dhop自定义事件"), | |||
| EVENT_IVS_DHOP_CUSTOM_ONCE(775, "Dhop自定义事件"), | |||
| EVENT_IVS_FOG_DETECTION(776, "起雾检测事件"), | |||
| EVENT_IVS_TRAFFIC_VEHICLE_RACE(777, "飙车事件"), | |||
| EVENT_IVS_TRAFFIC_MOTOR_OVERLOAD(778, "机动车超载"), | |||
| EVENT_IVS_TRAFFIC_PLATE_OCCLUSION(779, "车牌污损"), | |||
| EVENT_IVS_NONMOTOR_ENTRYING(780, "非机动车进入电梯"), | |||
| EVENT_IVS_WATER_STAGE_MONITOR(781, "水位监测事件,"), | |||
| EVENT_IVS_TRAFFIC_ROAD_ALERT(782, "道路安全预警"), | |||
| EVENT_IVS_BREAK_RULE_BUILDING_DETECTION(783, "违章建筑检测事件"), | |||
| EVENT_IVS_TRAFFIC_NONMOTOR_RUN_REDLIGHT(784, "非机动车闯红灯"), | |||
| EVENT_IVS_TRAFFIC_VEHICLE_IN_EMERGENCY_LANE(785, "占用应急车道事件"), | |||
| EVENT_IVS_PRAM_DETECTION(786, "婴儿车检测事件"), | |||
| EVENT_IVS_STEREO_PRAM_DETECTION(787, "立体行为婴儿车检测事件"), | |||
| EVENT_IVS_BIG_BAGGAGE_DETECTION(788, "大件行李箱检测事件"), | |||
| EVENT_IVS_STEREO_BIG_BAGGAGE_DETECTION(789, "立体行为大件行李箱检测事件"), | |||
| EVENT_IVS_TICKET_EVADE_DETECTION(790, "逃票检测事件"), | |||
| EVENT_IVS_STEREO_TICKET_EVADE_DETECTION(791, "立体行为逃票检测事件"), | |||
| EVENT_IVS_POWERLINE_FOREIGN_DETECITON(792, "输电线异物检测"), | |||
| EVENT_IVS_TRAFFIC_OVER_GUIDE_LINE(793, "压导流线"), | |||
| EVENT_IVS_TRAFFIC_CAR_MEASUREMENT(800, "交通卡口测量"), | |||
| EVENT_IVS_TRAFFIC_WRONG_TURN_LIGHT(801, "不安规定使用转向灯事件"), | |||
| EVENT_IVS_TRAFFIC_REAREND_ACCIDENT(802, "交通事故事件"), | |||
| EVENT_IVS_DO_TALK_ACTION(803, "对讲动作事件"), | |||
| EVENT_IVS_FIRE_LANE_DETECTION(804, "消防占道检测事件"), | |||
| EVENT_IVS_PARKING_DETECTION_FOR_PRMA(805, "全景异常停车事件"), | |||
| EVENT_IVS_TRAFFIC_JAM_FOR_PRMA(806, "全景交通拥堵事件"), | |||
| EVENT_IVS_TRAFFIC_ACCIDENT_FOR_PRMA(807, "全景交通事故事件"), | |||
| EVENT_IVS_TRAFFIC_NON_MOTOR_RETROGRADE(808, "非机动车逆行事件"), | |||
| EVENT_IVS_TRAFFIC_NON_MOTOR_OVER_STOP_LINE(809, "非机动车越线停车事件"), | |||
| EVENT_IVS_CAR_DRIVING_IN(816, "车辆驶入事件"), | |||
| EVENT_IVS_CAR_DRIVING_OUT(817, "车辆驶出事件"), | |||
| EVENT_IVS_PORTRAIT_DETECTION(818, "人像检测"), | |||
| EVENT_IVS_TRAFFIC_SPECIAL_VEHICLE_DETECT(819, "特殊车辆检测"), | |||
| EVENT_IVS_TRAFFIC_HEAD_LAMP_OFF(820, "未开照明灯事件"), | |||
| EVENT_IVS_TRAFFIC_NONMOTOR(821, "交通非机动车事件检测,"), | |||
| EVENT_IVS_TRAFFIC_BOARD(822, "交通违章上下客事件检测"), | |||
| EVENT_IVS_TRAFFIC_VISIBILITY(823, "交通能见度事件检测"), | |||
| EVENT_IVS_TRAFFIC_VEHICLE_CLEANLINESS(824, "交通车辆清洁度检测事件检测"), | |||
| EVENT_IVS_TRAFFICFLOW_FOR_PRMA(825, "全景交通车流"), | |||
| EVENT_IVS_TRUCKNOTCLEAN_FOR_PRMA(826, "工程车未清洗"), | |||
| EVENT_IVS_ROADOCCUPATION_BY_FOREIGNOBJECT(827, "异物占道事件"), | |||
| EVENT_IVS_TRAFFICFLOW_OVER(828, "车流量超过上限"), | |||
| EVENT_IVS_GOODS_DETECTION(829, "违规物品检测事件"), | |||
| EVENT_IVS_CONVEYORBLOCK_DETECTION(830, "传送带阻塞报警事件"), | |||
| EVENT_IVS_ANYTHING_DETECT(831, "全物体类型检测事件"), | |||
| EVENT_IVS_OBJECT_ABNORMAL(832, "目标异常事件"), | |||
| EVENT_IVS_DRIVE_ASSISTANT(833, "辅助驾驶"), | |||
| EVENT_IVS_DRIVE_ACTION_ANAYLSE(834, "驾驶行为分析"), | |||
| EVENT_IVS_DRIVE_HANDSOFF_STEERING_WHEEL(835, "驾驶行为分析"), | |||
| EVENT_IVS_DRIVE_BLIND_SPOT(836, "驾驶行为分析"), | |||
| EVENT_IVS_ARTICLE_DETECTION(837, "物品检测"), | |||
| EVENT_IVS_TRAFFIC_PARKINGSPACE_MANUALSNAP(838, "路侧停车位手动抓图"), | |||
| EVENT_IVS_STREET_SUNCURE(839, "沿街晾晒事件"), | |||
| EVENT_IVS_OUTDOOR_ADVERTISEMENT(840, "户外广告事件"), | |||
| EVENT_IVS_HUDDLE_MATERIAL(841, "乱堆物料检测事件"), | |||
| EVENT_IVS_FIRE_LINE_DETECTION(842, "进入消防通道检测"), | |||
| EVENT_IVS_OCCUPY_BUS_LANE(843, "违法占用公交车道"), | |||
| EVENT_IVS_DISTRESS_DETECTION(844, "求救检测事件"), | |||
| EVENT_IVS_TRAFFIC_ASSISTANT_WITHOUT_SAFEBELT(845, "交通副驾驶未系安全带事件"), | |||
| STOR_POINT_READ_WRITE(4097, "读写组"), | |||
| STOR_POINT_READ_ONLY(4098, "只读组"), | |||
| STOR_POINT_REDUNDANT(4099, "冗余组"), | |||
| STOR_POINT_BACKUP(4100, "备份组,数据写满后停止,不会循环覆盖"), | |||
| STOR_POINT_DRAW_FRAME(4101, "历史抽帧组,实时录像在指定时间后,抽帧并写入该组"), | |||
| STOR_POINT_NAS_FTP(4102, "远程网络存储组"), | |||
| STOR_POINT_NAS_NFS(4103, "远程网络存储组"), | |||
| STOR_POINT_NAS_SMB(4104, "远程网络存储组"), | |||
| STOR_POINT_NAS_ISCSI(4105, "远程网络存储组"), | |||
| STOR_POINT_NAS_CLOUD(4106, "远程网络存储组"); | |||
| private int type; | |||
| private String description; | |||
| private EM_EVENT_TYPE(int type, String description) { | |||
| this.type = type; | |||
| this.description = description; | |||
| } | |||
| public static EM_EVENT_TYPE getEventType(int type) { | |||
| EM_EVENT_TYPE[] var1 = values(); | |||
| int var2 = var1.length; | |||
| for(int var3 = 0; var3 < var2; ++var3) { | |||
| EM_EVENT_TYPE event = var1[var3]; | |||
| if(type == event.getType()) { | |||
| return event; | |||
| } | |||
| } | |||
| return null; | |||
| } | |||
| public int getType() { | |||
| return this.type; | |||
| } | |||
| public void setType(int type) { | |||
| this.type = type; | |||
| } | |||
| public String getDescription() { | |||
| return this.description; | |||
| } | |||
| public void setDescription(String description) { | |||
| this.description = description; | |||
| } | |||
| } | |||
| @ -1,53 +0,0 @@ | |||
| package com.inspect.access.lib.enumeration; | |||
| public enum EM_FEATURE_LIST_TYPE { | |||
| EM_FEATURE_LIST_UNKNOWN(0, "未知"), | |||
| EM_FEATURE_LIST_HAS_MASK(1, "是否戴口罩"), | |||
| EM_FEATURE_LIST_HAS_CHEF_HAT(2, "是否戴厨师帽"), | |||
| EM_FEATURE_LIST_HAS_CHEF_CLOTHES(3, "是否穿厨师服"), | |||
| EM_FEATURE_LIST_CHEF_CLOTHES_COLOR(4, "厨师服的颜色"); | |||
| private int value; | |||
| private String note; | |||
| private EM_FEATURE_LIST_TYPE(int givenValue, String note) { | |||
| this.value = givenValue; | |||
| this.note = note; | |||
| } | |||
| public String getNote() { | |||
| return this.note; | |||
| } | |||
| public int getValue() { | |||
| return this.value; | |||
| } | |||
| public static String getNoteByValue(int givenValue) { | |||
| EM_FEATURE_LIST_TYPE[] var1 = values(); | |||
| int var2 = var1.length; | |||
| for(int var3 = 0; var3 < var2; ++var3) { | |||
| EM_FEATURE_LIST_TYPE enumType = var1[var3]; | |||
| if(givenValue == enumType.getValue()) { | |||
| return enumType.getNote(); | |||
| } | |||
| } | |||
| return null; | |||
| } | |||
| public static int getValueByNote(String givenNote) { | |||
| EM_FEATURE_LIST_TYPE[] var1 = values(); | |||
| int var2 = var1.length; | |||
| for(int var3 = 0; var3 < var2; ++var3) { | |||
| EM_FEATURE_LIST_TYPE enumType = var1[var3]; | |||
| if(givenNote.equals(enumType.getNote())) { | |||
| return enumType.getValue(); | |||
| } | |||
| } | |||
| return -1; | |||
| } | |||
| } | |||
| @ -1,51 +0,0 @@ | |||
| package com.inspect.access.lib.enumeration; | |||
| public enum EM_FILE_TYPE { | |||
| EM_FILE_TYPE_UNKNOWN(0, "未知"), | |||
| EM_FILE_TYPE_JPG(1, "jpg图片"), | |||
| EM_FILE_TYPE_DAV(2, "dav文件"); | |||
| private int value; | |||
| private String note; | |||
| private EM_FILE_TYPE(int givenValue, String note) { | |||
| this.value = givenValue; | |||
| this.note = note; | |||
| } | |||
| public String getNote() { | |||
| return this.note; | |||
| } | |||
| public int getValue() { | |||
| return this.value; | |||
| } | |||
| public static String getNoteByValue(int givenValue) { | |||
| EM_FILE_TYPE[] var1 = values(); | |||
| int var2 = var1.length; | |||
| for(int var3 = 0; var3 < var2; ++var3) { | |||
| EM_FILE_TYPE enumType = var1[var3]; | |||
| if(givenValue == enumType.getValue()) { | |||
| return enumType.getNote(); | |||
| } | |||
| } | |||
| return null; | |||
| } | |||
| public static int getValueByNote(String givenNote) { | |||
| EM_FILE_TYPE[] var1 = values(); | |||
| int var2 = var1.length; | |||
| for(int var3 = 0; var3 < var2; ++var3) { | |||
| EM_FILE_TYPE enumType = var1[var3]; | |||
| if(givenNote.equals(enumType.getNote())) { | |||
| return enumType.getValue(); | |||
| } | |||
| } | |||
| return -2; | |||
| } | |||
| } | |||
| @ -1,21 +0,0 @@ | |||
| package com.inspect.access.lib.enumeration; | |||
| public enum EM_FILTER_IMAGE_TYPE { | |||
| EM_FILTER_IMAGE_UNKNOWN, | |||
| EM_FILTER_IMAGE_OBJECT, | |||
| EM_FILTER_IMAGE_SCENE; | |||
| public static EM_FILTER_IMAGE_TYPE getFilterImageType(int type) { | |||
| EM_FILTER_IMAGE_TYPE[] var1 = values(); | |||
| int var2 = var1.length; | |||
| for(int var3 = 0; var3 < var2; ++var3) { | |||
| EM_FILTER_IMAGE_TYPE imageType = var1[var3]; | |||
| if(imageType.ordinal() == type) { | |||
| return imageType; | |||
| } | |||
| } | |||
| return EM_FILTER_IMAGE_UNKNOWN; | |||
| } | |||
| } | |||
| @ -1,51 +0,0 @@ | |||
| package com.inspect.access.lib.enumeration; | |||
| public enum EM_FOLLOW_CAR_ALARM_IMAGE_TYPE { | |||
| EM_FOLLOW_CAR_ALARM_IMAGE_TYPE_UNKNOWN(-1, "未知"), | |||
| EM_FOLLOW_CAR_ALARM_IMAGE_TYPE_PANORAMA(0, "全景图"), | |||
| EM_FOLLOW_CAR_ALARM_IMAGE_TYPE_SMALL_PICTURE(1, "小图"); | |||
| private int value; | |||
| private String note; | |||
| private EM_FOLLOW_CAR_ALARM_IMAGE_TYPE(int givenValue, String note) { | |||
| this.value = givenValue; | |||
| this.note = note; | |||
| } | |||
| public String getNote() { | |||
| return this.note; | |||
| } | |||
| public int getValue() { | |||
| return this.value; | |||
| } | |||
| public static String getNoteByValue(int givenValue) { | |||
| EM_FOLLOW_CAR_ALARM_IMAGE_TYPE[] var1 = values(); | |||
| int var2 = var1.length; | |||
| for(int var3 = 0; var3 < var2; ++var3) { | |||
| EM_FOLLOW_CAR_ALARM_IMAGE_TYPE enumType = var1[var3]; | |||
| if(givenValue == enumType.getValue()) { | |||
| return enumType.getNote(); | |||
| } | |||
| } | |||
| return null; | |||
| } | |||
| public static int getValueByNote(String givenNote) { | |||
| EM_FOLLOW_CAR_ALARM_IMAGE_TYPE[] var1 = values(); | |||
| int var2 = var1.length; | |||
| for(int var3 = 0; var3 < var2; ++var3) { | |||
| EM_FOLLOW_CAR_ALARM_IMAGE_TYPE enumType = var1[var3]; | |||
| if(givenNote.equals(enumType.getNote())) { | |||
| return enumType.getValue(); | |||
| } | |||
| } | |||
| return -2; | |||
| } | |||
| } | |||
| @ -1,65 +0,0 @@ | |||
| package com.inspect.access.lib.enumeration; | |||
| public enum EM_FORBID_PARKING_STATUS { | |||
| EM_FORBID_PARKING_STATUS_UNKNOWN(0, "未知"), | |||
| EM_FORBID_PARKING_STATUS_NOT_FORBID(1, "未禁止"), | |||
| EM_FORBID_PARKING_STATUS_FORBID(2, "禁止"); | |||
| private int value; | |||
| private String note; | |||
| private EM_FORBID_PARKING_STATUS(int givenValue, String note) { | |||
| this.value = givenValue; | |||
| this.note = note; | |||
| } | |||
| public String getNote() { | |||
| return this.note; | |||
| } | |||
| public int getValue() { | |||
| return this.value; | |||
| } | |||
| public static String getNoteByValue(int givenValue) { | |||
| EM_FORBID_PARKING_STATUS[] var1 = values(); | |||
| int var2 = var1.length; | |||
| for(int var3 = 0; var3 < var2; ++var3) { | |||
| EM_FORBID_PARKING_STATUS enumType = var1[var3]; | |||
| if(givenValue == enumType.getValue()) { | |||
| return enumType.getNote(); | |||
| } | |||
| } | |||
| return null; | |||
| } | |||
| public static int getValueByNote(String givenNote) { | |||
| EM_FORBID_PARKING_STATUS[] var1 = values(); | |||
| int var2 = var1.length; | |||
| for(int var3 = 0; var3 < var2; ++var3) { | |||
| EM_FORBID_PARKING_STATUS enumType = var1[var3]; | |||
| if(givenNote.equals(enumType.getNote())) { | |||
| return enumType.getValue(); | |||
| } | |||
| } | |||
| return -1; | |||
| } | |||
| public static EM_FORBID_PARKING_STATUS getEnum(int value) { | |||
| EM_FORBID_PARKING_STATUS[] var1 = values(); | |||
| int var2 = var1.length; | |||
| for(int var3 = 0; var3 < var2; ++var3) { | |||
| EM_FORBID_PARKING_STATUS e = var1[var3]; | |||
| if(e.getValue() == value) { | |||
| return e; | |||
| } | |||
| } | |||
| return EM_FORBID_PARKING_STATUS_UNKNOWN; | |||
| } | |||
| } | |||
| @ -1,50 +0,0 @@ | |||
| package com.inspect.access.lib.enumeration; | |||
| public enum EM_GATE_TYPE { | |||
| EM_ASG_GATE_TYPE_UNKNOWN(-1, "未知"), | |||
| EM_ASG_GATE_TYPE_SWING_GATE_ONE(0, "摆闸1"), | |||
| EM_ASG_GATE_TYPE_SWING_GATE_TWO(1, "摆闸2"), | |||
| EM_ASG_GATE_TYPE_SWING_GATE_THREE(2, "摆闸3"), | |||
| EM_ASG_GATE_TYPE_WING_GATE_ONE(3, "翼闸1"), | |||
| EM_ASG_GATE_TYPE_WING_GATE_TWO(4, "翼闸2"), | |||
| EM_ASG_GATE_TYPE_THREE_STICK_GATE_ONE(5, "三棍闸1"), | |||
| EM_ASG_GATE_TYPE_THREE_STICK_GATE_TWO(6, "三棍闸2"); | |||
| private int type; | |||
| private String desc; | |||
| private EM_GATE_TYPE(int type, String desc) { | |||
| this.type = type; | |||
| this.desc = desc; | |||
| } | |||
| public static EM_GATE_TYPE getGateType(int type) { | |||
| EM_GATE_TYPE[] var1 = values(); | |||
| int var2 = var1.length; | |||
| for(int var3 = 0; var3 < var2; ++var3) { | |||
| EM_GATE_TYPE gateType = var1[var3]; | |||
| if(gateType.type == type) { | |||
| return gateType; | |||
| } | |||
| } | |||
| return EM_ASG_GATE_TYPE_UNKNOWN; | |||
| } | |||
| public int getType() { | |||
| return this.type; | |||
| } | |||
| public void setType(int type) { | |||
| this.type = type; | |||
| } | |||
| public String getDesc() { | |||
| return this.desc; | |||
| } | |||
| public void setDesc(String desc) { | |||
| this.desc = desc; | |||
| } | |||
| } | |||
| @ -1,20 +0,0 @@ | |||
| package com.inspect.access.lib.enumeration; | |||
| public enum EM_GLOBAL_LANES_LINE_TYPE { | |||
| EM_GLOBAL_LANES_LINE_TYPE_UNKNOWN(0), | |||
| EM_GLOBAL_LANES_LINE_TYPE_WHITESOLID(1), | |||
| EM_GLOBAL_LANES_LINE_TYPE_WHITEDOTTED(2), | |||
| EM_GLOBAL_LANES_LINE_TYPE_YELLOW(3), | |||
| EM_GLOBAL_LANES_LINE_TYPE_UPSOLIDDOWNDOTTED(4), | |||
| EM_GLOBAL_LANES_LINE_TYPE_UPDOTTEDDOWNSOLID(5); | |||
| private int id; | |||
| private EM_GLOBAL_LANES_LINE_TYPE(int id) { | |||
| this.id = id; | |||
| } | |||
| public int getId() { | |||
| return this.id; | |||
| } | |||
| } | |||
| @ -1,46 +0,0 @@ | |||
| package com.inspect.access.lib.enumeration; | |||
| public enum EM_HEATMAP_TYPE { | |||
| EM_HEATMAP_UNKNOWN(0, "未知"), | |||
| EM_HEATMAP_AVERAGESTAYTIME(1, "平均滞留时间热度图"), | |||
| EM_HEATMAP_HUMANSTATISTICS(2, "人数统计热度图"), | |||
| EM_HEATMAP_HUMANTRACK(3, "行人轨迹图"); | |||
| private int type; | |||
| private String desc; | |||
| private EM_HEATMAP_TYPE(int type, String desc) { | |||
| this.type = type; | |||
| this.desc = desc; | |||
| } | |||
| public int getType() { | |||
| return this.type; | |||
| } | |||
| public void setType(int type) { | |||
| this.type = type; | |||
| } | |||
| public String getDesc() { | |||
| return this.desc; | |||
| } | |||
| public void setDesc(String desc) { | |||
| this.desc = desc; | |||
| } | |||
| public static EM_HEATMAP_TYPE getEmHeatMap(int type) { | |||
| EM_HEATMAP_TYPE[] var1 = values(); | |||
| int var2 = var1.length; | |||
| for(int var3 = 0; var3 < var2; ++var3) { | |||
| EM_HEATMAP_TYPE heatmap = var1[var3]; | |||
| if(heatmap.getType() == type) { | |||
| return heatmap; | |||
| } | |||
| } | |||
| return null; | |||
| } | |||
| } | |||
| @ -1,131 +0,0 @@ | |||
| package com.inspect.access.lib.enumeration; | |||
| public enum EM_IPC_TYPE { | |||
| NET_IPC_PRIVATE(0, "私有"), | |||
| NET_IPC_AEBELL(1, "美电贝尔"), | |||
| NET_IPC_PANASONIC(2, "松下"), | |||
| NET_IPC_SONY(3, "索尼"), | |||
| NET_IPC_DYNACOLOR(4, "Dynacolor"), | |||
| NET_IPC_TCWS(5, "天城威视"), | |||
| NET_IPC_SAMSUNG(6, "三星"), | |||
| NET_IPC_YOKO(7, "YOKO"), | |||
| NET_IPC_AXIS(8, "安讯视"), | |||
| NET_IPC_SANYO(9, "三洋"), | |||
| NET_IPC_BOSH(10, "Bosch"), | |||
| NET_IPC_PECLO(11, "Peclo"), | |||
| NET_IPC_PROVIDEO(12, "Provideo"), | |||
| NET_IPC_ACTI(13, "ACTi"), | |||
| NET_IPC_VIVOTEK(14, "Vivotek"), | |||
| NET_IPC_ARECONT(15, "Arecont"), | |||
| NET_IPC_PRIVATEEH(16, "PrivateEH"), | |||
| NET_IPC_IMATEK(17, "IMatek"), | |||
| NET_IPC_SHANY(18, "Shany"), | |||
| NET_IPC_VIDEOTREC(19, "动力盈科"), | |||
| NET_IPC_URA(20, "Ura"), | |||
| NET_IPC_BITICINO(21, "Bticino"), | |||
| NET_IPC_ONVIF(22, "Onvif协议类型"), | |||
| NET_IPC_SHEPHERD(23, "视霸"), | |||
| NET_IPC_YAAN(24, "亚安"), | |||
| NET_IPC_AIRPOINT(25, "Airpop"), | |||
| NET_IPC_TYCO(26, "TYCO"), | |||
| NET_IPC_XUNMEI(27, "讯美"), | |||
| NET_IPC_HIKVISION(28, "海康"), | |||
| NET_IPC_LG(29, "LG"), | |||
| NET_IPC_AOQIMAN(30, "奥奇曼"), | |||
| NET_IPC_BAOKANG(31, "宝康"), | |||
| NET_IPC_WATCHNET(32, "Watchnet"), | |||
| NET_IPC_XVISION(33, "Xvision"), | |||
| NET_IPC_FUSITSU(34, "富士通"), | |||
| NET_IPC_CANON(35, "Canon"), | |||
| NET_IPC_GE(36, "GE"), | |||
| NET_IPC_Basler(37, "巴斯勒"), | |||
| NET_IPC_Patro(38, "帕特罗"), | |||
| NET_IPC_CPKNC(39, "CPPLUS K系列"), | |||
| NET_IPC_CPRNC(40, "CPPLUS R系列"), | |||
| NET_IPC_CPUNC(41, "CPPLUS U系列"), | |||
| NET_IPC_CPPLUS(42, "CPPLUS IPC"), | |||
| NET_IPC_XunmeiS(43, "讯美s,实际协议为Onvif"), | |||
| NET_IPC_GDDW(44, "广东电网"), | |||
| NET_IPC_PSIA(45, "PSIA"), | |||
| NET_IPC_GB2818(46, "GB2818"), | |||
| NET_IPC_GDYX(47, "GDYX"), | |||
| NET_IPC_OTHER(48, "由用户自定义"), | |||
| NET_IPC_CPUNR(49, "CPPLUS NVR"), | |||
| NET_IPC_CPUAR(50, "CPPLUS DVR"), | |||
| NET_IPC_AIRLIVE(51, "Airlive"), | |||
| NET_IPC_NPE(52, "NPE"), | |||
| NET_IPC_AXVIEW(53, "AXVIEW"), | |||
| NET_IPC_DFWL(54, "东方网力"), | |||
| NET_IPC_HYUNDAI(56, "HYUNDAI DVR"), | |||
| NET_IPC_APHD(57, "爱普华顿"), | |||
| NET_IPC_WELLTRANS(58, "微创"), | |||
| NET_IPC_CDJF(59, "成都佳发"), | |||
| NET_IPC_JVC(60, "JVC"), | |||
| NET_IPC_INFINOVA(61, "英飞拓"), | |||
| NET_IPC_ADT(62, "ADT"), | |||
| NET_IPC_SIVIDI(63, "海南创先"), | |||
| NET_IPC_CPUNP(64, "CPPLUS 球机"), | |||
| NET_IPC_HX(65, "海信"), | |||
| NET_IPC_TJGS(66, "天津高速"), | |||
| NET_IPC_MULTICAST(79, "组播"), | |||
| NET_IPC_RVI(84, "RVi"), | |||
| NET_IPC_HONEYWELL(95, "Honeywell"); | |||
| private final int value; | |||
| private final String note; | |||
| private EM_IPC_TYPE(int givenValue, String note) { | |||
| this.value = givenValue; | |||
| this.note = note; | |||
| } | |||
| public String getNote() { | |||
| return this.note; | |||
| } | |||
| public int getValue() { | |||
| return this.value; | |||
| } | |||
| public static String getNoteByValue(int givenValue) { | |||
| EM_IPC_TYPE[] var1 = values(); | |||
| int var2 = var1.length; | |||
| for(int var3 = 0; var3 < var2; ++var3) { | |||
| EM_IPC_TYPE enumType = var1[var3]; | |||
| if(givenValue == enumType.getValue()) { | |||
| return enumType.getNote(); | |||
| } | |||
| } | |||
| return null; | |||
| } | |||
| public static int getValueByNote(String givenNote) { | |||
| EM_IPC_TYPE[] var1 = values(); | |||
| int var2 = var1.length; | |||
| for(int var3 = 0; var3 < var2; ++var3) { | |||
| EM_IPC_TYPE enumType = var1[var3]; | |||
| if(givenNote.equals(enumType.getNote())) { | |||
| return enumType.getValue(); | |||
| } | |||
| } | |||
| return -1; | |||
| } | |||
| public static EM_IPC_TYPE getEnum(int value) { | |||
| EM_IPC_TYPE[] var1 = values(); | |||
| int var2 = var1.length; | |||
| for(int var3 = 0; var3 < var2; ++var3) { | |||
| EM_IPC_TYPE e = var1[var3]; | |||
| if(e.getValue() == value) { | |||
| return e; | |||
| } | |||
| } | |||
| return NET_IPC_PRIVATE; | |||
| } | |||
| } | |||
| @ -1,65 +0,0 @@ | |||
| package com.inspect.access.lib.enumeration; | |||
| public enum EM_IS_RECORD { | |||
| EM_IS_RECORD_UNKNOWN(0, "未知"), | |||
| EM_IS_RECORD_ON(1, "录像"), | |||
| EM_IS_RECORD_OFF(2, "不录像"); | |||
| private int value; | |||
| private String note; | |||
| private EM_IS_RECORD(int givenValue, String note) { | |||
| this.value = givenValue; | |||
| this.note = note; | |||
| } | |||
| public String getNote() { | |||
| return this.note; | |||
| } | |||
| public int getValue() { | |||
| return this.value; | |||
| } | |||
| public static String getNoteByValue(int givenValue) { | |||
| EM_IS_RECORD[] var1 = values(); | |||
| int var2 = var1.length; | |||
| for(int var3 = 0; var3 < var2; ++var3) { | |||
| EM_IS_RECORD enumType = var1[var3]; | |||
| if(givenValue == enumType.getValue()) { | |||
| return enumType.getNote(); | |||
| } | |||
| } | |||
| return null; | |||
| } | |||
| public static int getValueByNote(String givenNote) { | |||
| EM_IS_RECORD[] var1 = values(); | |||
| int var2 = var1.length; | |||
| for(int var3 = 0; var3 < var2; ++var3) { | |||
| EM_IS_RECORD enumType = var1[var3]; | |||
| if(givenNote.equals(enumType.getNote())) { | |||
| return enumType.getValue(); | |||
| } | |||
| } | |||
| return -1; | |||
| } | |||
| public static EM_IS_RECORD getEnum(int value) { | |||
| EM_IS_RECORD[] var1 = values(); | |||
| int var2 = var1.length; | |||
| for(int var3 = 0; var3 < var2; ++var3) { | |||
| EM_IS_RECORD e = var1[var3]; | |||
| if(e.getValue() == value) { | |||
| return e; | |||
| } | |||
| } | |||
| return EM_IS_RECORD_UNKNOWN; | |||
| } | |||
| } | |||
| @ -1,51 +0,0 @@ | |||
| package com.inspect.access.lib.enumeration; | |||
| public enum EM_LEAVEDETECTION_STATE { | |||
| EM_LEAVEDETECTION_STATE_UNKNOWN(0, "未知"), | |||
| EM_LEAVEDETECTION_STATE_LEAVE(1, "离岗"), | |||
| EM_LEAVEDETECTION_STATE_ON_THE_JOB(2, "在岗"); | |||
| private int value; | |||
| private String note; | |||
| private EM_LEAVEDETECTION_STATE(int givenValue, String note) { | |||
| this.value = givenValue; | |||
| this.note = note; | |||
| } | |||
| public String getNote() { | |||
| return this.note; | |||
| } | |||
| public int getValue() { | |||
| return this.value; | |||
| } | |||
| public static String getNoteByValue(int givenValue) { | |||
| EM_LEAVEDETECTION_STATE[] var1 = values(); | |||
| int var2 = var1.length; | |||
| for(int var3 = 0; var3 < var2; ++var3) { | |||
| EM_LEAVEDETECTION_STATE enumType = var1[var3]; | |||
| if(givenValue == enumType.getValue()) { | |||
| return enumType.getNote(); | |||
| } | |||
| } | |||
| return null; | |||
| } | |||
| public static int getValueByNote(String givenNote) { | |||
| EM_LEAVEDETECTION_STATE[] var1 = values(); | |||
| int var2 = var1.length; | |||
| for(int var3 = 0; var3 < var2; ++var3) { | |||
| EM_LEAVEDETECTION_STATE enumType = var1[var3]; | |||
| if(givenNote.equals(enumType.getNote())) { | |||
| return enumType.getValue(); | |||
| } | |||
| } | |||
| return -1; | |||
| } | |||
| } | |||
| @ -1,53 +0,0 @@ | |||
| package com.inspect.access.lib.enumeration; | |||
| public enum EM_LEAVEDETECTION_TRIGGER_MODE { | |||
| EM_LEAVEDETECTION_TRIGGER_UNKNOEN(0, "未知"), | |||
| EM_LEAVEDETECTION_TRIGGER_NOPERSON(1, "无人"), | |||
| EM_LEAVEDETECTION_TRIGGER_LEAVE(2, "离开"), | |||
| EM_LEAVEDETECTION_TRIGGER_STATIC(3, "静止(睡岗)"), | |||
| EM_LEAVEDETECTION_TRIGGER_OUTPERSONLIMIT(4, "不在允许值岗人数范围内(值岗人数异常)"); | |||
| private int value; | |||
| private String note; | |||
| private EM_LEAVEDETECTION_TRIGGER_MODE(int givenValue, String note) { | |||
| this.value = givenValue; | |||
| this.note = note; | |||
| } | |||
| public String getNote() { | |||
| return this.note; | |||
| } | |||
| public int getValue() { | |||
| return this.value; | |||
| } | |||
| public static String getNoteByValue(int givenValue) { | |||
| EM_LEAVEDETECTION_TRIGGER_MODE[] var1 = values(); | |||
| int var2 = var1.length; | |||
| for(int var3 = 0; var3 < var2; ++var3) { | |||
| EM_LEAVEDETECTION_TRIGGER_MODE enumType = var1[var3]; | |||
| if(givenValue == enumType.getValue()) { | |||
| return enumType.getNote(); | |||
| } | |||
| } | |||
| return null; | |||
| } | |||
| public static int getValueByNote(String givenNote) { | |||
| EM_LEAVEDETECTION_TRIGGER_MODE[] var1 = values(); | |||
| int var2 = var1.length; | |||
| for(int var3 = 0; var3 < var2; ++var3) { | |||
| EM_LEAVEDETECTION_TRIGGER_MODE enumType = var1[var3]; | |||
| if(givenNote.equals(enumType.getNote())) { | |||
| return enumType.getValue(); | |||
| } | |||
| } | |||
| return -1; | |||
| } | |||
| } | |||
| @ -1,41 +0,0 @@ | |||
| package com.inspect.access.lib.enumeration; | |||
| public enum EM_LINE_COLOR_TYPE { | |||
| EM_LINE_COLOR_TYPE_UNKNOWN(0, "未知"), | |||
| EM_LINE_COLOR_TYPE_RED(1, "红色"), | |||
| EM_LINE_COLOR_TYPE_YELLOW(2, "黄色"), | |||
| EM_LINE_COLOR_TYPE_BLUE(3, "蓝色"), | |||
| EM_LINE_COLOR_TYPE_GREEN(4, "绿色"), | |||
| EM_LINE_COLOR_TYPE_BLACK(5, "黑色"), | |||
| EM_LINE_COLOR_TYPE_WHITE(6, "白色"); | |||
| private int type; | |||
| private String color; | |||
| private EM_LINE_COLOR_TYPE(int type, String color) { | |||
| this.type = type; | |||
| this.color = color; | |||
| } | |||
| public EM_LINE_COLOR_TYPE getColorType(int type) { | |||
| EM_LINE_COLOR_TYPE[] var2 = values(); | |||
| int var3 = var2.length; | |||
| for(int var4 = 0; var4 < var3; ++var4) { | |||
| EM_LINE_COLOR_TYPE color = var2[var4]; | |||
| if(color.getType() == type) { | |||
| return color; | |||
| } | |||
| } | |||
| return null; | |||
| } | |||
| public int getType() { | |||
| return this.type; | |||
| } | |||
| public String getColor() { | |||
| return this.color; | |||
| } | |||
| } | |||
| @ -1,21 +0,0 @@ | |||
| package com.inspect.access.lib.enumeration; | |||
| public enum EM_MIX_SNAP_SPEED_SOURCE { | |||
| EM_SNAP_SPEED_SOURCE_UNKNOWN, | |||
| EM_SNAP_SPEED_SOURCE_VIDEO, | |||
| EM_SNAP_SPEED_SOURCE_RADAR; | |||
| public static EM_MIX_SNAP_SPEED_SOURCE getMixSnapSpeedSource(int source) { | |||
| EM_MIX_SNAP_SPEED_SOURCE[] var1 = values(); | |||
| int var2 = var1.length; | |||
| for(int var3 = 0; var3 < var2; ++var3) { | |||
| EM_MIX_SNAP_SPEED_SOURCE speedSource = var1[var3]; | |||
| if(speedSource.ordinal() == source) { | |||
| return speedSource; | |||
| } | |||
| } | |||
| return EM_SNAP_SPEED_SOURCE_UNKNOWN; | |||
| } | |||
| } | |||