Classes in this File | Line Coverage | Branch Coverage | Complexity | ||||
NodeSet |
|
| 1.0;1 |
1 | /* | |
2 | This file is part of Combean. | |
3 | ||
4 | Combean is free software; you can redistribute it and/or modify | |
5 | it under the terms of the GNU General Public License as published by | |
6 | the Free Software Foundation; either version 2 of the License, or | |
7 | (at your option) any later version. | |
8 | ||
9 | Combean is distributed in the hope that it will be useful, | |
10 | but WITHOUT ANY WARRANTY; without even the implied warranty of | |
11 | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | |
12 | GNU General Public License for more details. | |
13 | ||
14 | You should have received a copy of the GNU General Public License | |
15 | along with Combean; if not, write to the Free Software | |
16 | Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA | |
17 | */ | |
18 | /* | |
19 | * Created on 14.01.2005 | |
20 | * | |
21 | */ | |
22 | package net.sourceforge.combean.interfaces.graph.containers; | |
23 | ||
24 | import net.sourceforge.combean.interfaces.graph.Node; | |
25 | ||
26 | /** | |
27 | * A set of node (similar to a java.util.Set). | |
28 | * | |
29 | * @author schickin | |
30 | * | |
31 | */ | |
32 | public interface NodeSet extends FixedNodeSet { | |
33 | ||
34 | /** | |
35 | * Add a node to the set. If the node is already contained in the set, | |
36 | * nothing happens. | |
37 | * | |
38 | * @param v the node to be added. | |
39 | * @return true if node has been added. | |
40 | */ | |
41 | public boolean add(Node v); | |
42 | ||
43 | /** | |
44 | * Remove a node from the set. If the node is not contained in the set, | |
45 | * nothing happens. | |
46 | * | |
47 | * @param v the node to be removed. | |
48 | * @return true if node has been removed. | |
49 | */ | |
50 | public boolean remove(Node v); | |
51 | ||
52 | /** | |
53 | * Remove all elements from the set. | |
54 | * | |
55 | */ | |
56 | public void clear(); | |
57 | } |