自动化立体仓库 - WCS系统
#
luxiaotao1123
2020-08-04 6abc20e29568c129f4ca71eccec9310534a8c779
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
package com.zy.common.HslCommunication.Core.IMessage;
 
/**
 * 本系统的消息类,包含了各种解析规则,数据信息提取规则
 */
public interface INetMessage {
 
    /**
     * 消息头的指令长度
     */
    int ProtocolHeadBytesLength();
 
 
    /**
     * 从当前的头子节文件中提取出接下来需要接收的数据长度
     * @return 返回接下来的数据内容长度
     */
    int GetContentLengthByHeadBytes();
 
 
    /**
     * 检查头子节的合法性
     * @param token 特殊的令牌,有些特殊消息的验证
     * @return 是否合法的验证
     */
    boolean CheckHeadBytesLegal(byte[] token);
 
 
    /**
     * 获取头子节里的消息标识
     * @return
     */
    int GetHeadBytesIdentity();
 
 
    /**
     * 设置消息头子节
     * @param headBytes 字节数据
     */
    void setHeadBytes(byte[] headBytes);
 
    /**
     * 获取消息头字节
     * @return
     */
    byte[] getHeadBytes();
 
 
 
    /**
     * 获取消息内容字节
     * @return
     */
    byte[] getContentBytes();
 
    /**
     * 设置消息内容字节
     * @param contentBytes 内容字节
     */
    void setContentBytes(byte[] contentBytes);
 
 
    /**
     * 获取发送的消息
     * @return
     */
    byte[] getSendBytes();
 
    /**
     * 设置发送的字节信息
     * @param sendBytes 发送的字节信息
     */
    void setSendBytes(byte[] sendBytes);
 
}