|  |  |  | 
|---|
|  |  |  | public class ParseParamsForUpV1 implements CodeParseParams{ | 
|---|
|  |  |  |  | 
|---|
|  |  |  | public String protocolName ;//协议名称 | 
|---|
|  |  |  | public Short protocolVersion ; | 
|---|
|  |  |  | public String rtuAddr ;//控制器址 | 
|---|
|  |  |  | public String upCode ;//上行报文数据中的功能码 | 
|---|
|  |  |  | public String upHex ;//行报文数据十六进制形式 | 
|---|
|  |  |  | 
|---|
|  |  |  |  | 
|---|
|  |  |  | public void clear(){ | 
|---|
|  |  |  | this.protocolName = null ; | 
|---|
|  |  |  | this.rtuAddr = null ; | 
|---|
|  |  |  | this.protocolVersion = null ; | 
|---|
|  |  |  | this.rtuAddr = null ; | 
|---|
|  |  |  | this.upCode = null ; | 
|---|
|  |  |  | this.upHex = null ; | 
|---|
|  |  |  | this.upBuffer = null ; | 
|---|
|  |  |  | 
|---|
|  |  |  | } | 
|---|
|  |  |  |  | 
|---|
|  |  |  | public void setValue(String protocolName, | 
|---|
|  |  |  | String rtuAddr, | 
|---|
|  |  |  | Short protocolVersion, | 
|---|
|  |  |  | String rtuAddr, | 
|---|
|  |  |  | String upCode, | 
|---|
|  |  |  | String upHex, | 
|---|
|  |  |  | byte[] upBuffer, | 
|---|
|  |  |  | Data data){ | 
|---|
|  |  |  | this.protocolName = protocolName ; | 
|---|
|  |  |  | this.rtuAddr = rtuAddr ; | 
|---|
|  |  |  | this.protocolVersion = protocolVersion ; | 
|---|
|  |  |  | this.rtuAddr = rtuAddr ; | 
|---|
|  |  |  | this.upCode = upCode ; | 
|---|
|  |  |  | this.upHex = upHex ; | 
|---|
|  |  |  | this.upBuffer = upBuffer ; | 
|---|