New file |
| | |
| | | package com.dy.rtuMw.server.local.localProtocol; |
| | | |
| | | import java.io.Serializable; |
| | | import java.util.ArrayList; |
| | | import java.util.List; |
| | | |
| | | public class RtuProtocolVo implements Serializable{ |
| | | |
| | | private static final long serialVersionUID = 202312211601001001L; |
| | | |
| | | private List<String> protocolList ; |
| | | |
| | | public RtuProtocolVo(){ |
| | | this.protocolList = new ArrayList<String>() ; |
| | | } |
| | | public String toString(){ |
| | | String s = "" ; |
| | | if(protocolList != null){ |
| | | for(String str : protocolList){ |
| | | s += str + "\n"; |
| | | } |
| | | } |
| | | return s ; |
| | | } |
| | | /** |
| | | * 存入RTU在线情况 |
| | | * @param protocolList 协议集合 |
| | | */ |
| | | public RtuProtocolVo setRtuProtocolList(List<String> protocolList){ |
| | | this.protocolList = protocolList ; |
| | | return this ; |
| | | } |
| | | |
| | | public List<String> getRtuProtocolList() { |
| | | return protocolList; |
| | | } |
| | | |
| | | } |