|
|||||||||||||||||||
| Source file | Conditionals | Statements | Methods | TOTAL | |||||||||||||||
| Nodes.java | - | 100% | 100% | 100% |
|
||||||||||||||
| 1 | /* | |
| 2 | * JTRunner is free software; you can redistribute it and/or modify it under the | |
| 3 | * terms of the GNU General Public License as published by the Free Software | |
| 4 | * Foundation; either version 2, or (at your option) any later version. | |
| 5 | */ | |
| 6 | ||
| 7 | package jtr.config.remote; | |
| 8 | ||
| 9 | import java.io.Serializable; | |
| 10 | import java.util.ArrayList; | |
| 11 | import java.util.List; | |
| 12 | ||
| 13 | /** | |
| 14 | * This class maps the <code>nodes</code> element of a JTR configuration file. | |
| 15 | * @author frusso | |
| 16 | * @version 4.0 | |
| 17 | * @since 4.0 | |
| 18 | */ | |
| 19 | public class Nodes implements Serializable { | |
| 20 | ||
| 21 | /** Creates a new instance of Nodes */ | |
| 22 | 1 | public Nodes() { |
| 23 | 1 | nodes = new ArrayList<Node>(); |
| 24 | } | |
| 25 | ||
| 26 | 1 | public void addNode(Node host) { |
| 27 | 1 | nodes.add(host); |
| 28 | } | |
| 29 | ||
| 30 | 1 | public List<Node> getNodes() { |
| 31 | 1 | return nodes; |
| 32 | } | |
| 33 | ||
| 34 | private List<Node> nodes; | |
| 35 | } |
|
||||||||||