| New file | 
|  |  |  | 
|---|
|  |  |  | package com.dy.common.mw.protocol.p206V1; | 
|---|
|  |  |  |  | 
|---|
|  |  |  | import com.dy.common.mw.protocol.CodeParseParams; | 
|---|
|  |  |  |  | 
|---|
|  |  |  | public class ParseParamsForDownV1 implements CodeParseParams{ | 
|---|
|  |  |  |  | 
|---|
|  |  |  | public String rtuResultSendWebUrl ;//rtu返回命令结果 发向目的地web URL | 
|---|
|  |  |  | public String protocolName ; | 
|---|
|  |  |  | public Short protocolVersion ; | 
|---|
|  |  |  | public String rtuAddr ;//控制器地址 | 
|---|
|  |  |  | public String commandId ; | 
|---|
|  |  |  | public String commandCode ; | 
|---|
|  |  |  | public Object param ; | 
|---|
|  |  |  | public Object attachment ; | 
|---|
|  |  |  |  | 
|---|
|  |  |  | public ParseParamsForDownV1(){} | 
|---|
|  |  |  |  | 
|---|
|  |  |  | public void clear(){ | 
|---|
|  |  |  | this.protocolName = null ; | 
|---|
|  |  |  | this.protocolVersion = null ; | 
|---|
|  |  |  | this.rtuAddr = null ; | 
|---|
|  |  |  | this.commandId = null ; | 
|---|
|  |  |  | this.commandCode = null ; | 
|---|
|  |  |  | this.param = null ; | 
|---|
|  |  |  | this.attachment = null ; | 
|---|
|  |  |  | } | 
|---|
|  |  |  |  | 
|---|
|  |  |  | public void setValue( | 
|---|
|  |  |  | String rtuResultSendWebUrl, | 
|---|
|  |  |  | String protocolName, | 
|---|
|  |  |  | Short protocolVersion, | 
|---|
|  |  |  | String rtuAddr, | 
|---|
|  |  |  | String commandId, | 
|---|
|  |  |  | String commandCode, | 
|---|
|  |  |  | Object param, | 
|---|
|  |  |  | Object attachment ){ | 
|---|
|  |  |  | this.rtuResultSendWebUrl = rtuResultSendWebUrl ; | 
|---|
|  |  |  | this.protocolName = protocolName ; | 
|---|
|  |  |  | this.protocolVersion = protocolVersion ; | 
|---|
|  |  |  | this.rtuAddr = rtuAddr ; | 
|---|
|  |  |  | this.commandId = commandId ; | 
|---|
|  |  |  | this.commandCode = commandCode ; | 
|---|
|  |  |  | this.param = param ; | 
|---|
|  |  |  | this.attachment = attachment ; | 
|---|
|  |  |  | } | 
|---|
|  |  |  |  | 
|---|
|  |  |  | } | 
|---|