Returns all protocols in a list, from top to bottom. These are not copies of protocols, so modifications will affect the actual instances !
()
| 203 | /** Returns all protocols in a list, from top to bottom. <em>These are not copies of protocols, |
| 204 | so modifications will affect the actual instances !</em> */ |
| 205 | public List<Protocol> getProtocols() { |
| 206 | List<Protocol> v=new ArrayList<>(15); |
| 207 | Protocol p=top_prot; |
| 208 | while(p != null) { |
| 209 | v.add(p); |
| 210 | p=p.getDownProtocol(); |
| 211 | } |
| 212 | return v; |
| 213 | } |
| 214 | |
| 215 | |
| 216 | /** Returns the bottom most protocol */ |
no test coverage detected