PipeBase.java

1
/*
2
 * Copyright 2006 - 2013
3
 *     Stefan Balev     <stefan.balev@graphstream-project.org>
4
 *     Julien Baudry    <julien.baudry@graphstream-project.org>
5
 *     Antoine Dutot    <antoine.dutot@graphstream-project.org>
6
 *     Yoann Pign��      <yoann.pigne@graphstream-project.org>
7
 *     Guilhelm Savin   <guilhelm.savin@graphstream-project.org>
8
 * 
9
 * This file is part of GraphStream <http://graphstream-project.org>.
10
 * 
11
 * GraphStream is a library whose purpose is to handle static or dynamic
12
 * graph, create them from scratch, file or any source and display them.
13
 * 
14
 * This program is free software distributed under the terms of two licenses, the
15
 * CeCILL-C license that fits European law, and the GNU Lesser General Public
16
 * License. You can  use, modify and/ or redistribute the software under the terms
17
 * of the CeCILL-C license as circulated by CEA, CNRS and INRIA at the following
18
 * URL <http://www.cecill.info> or under the terms of the GNU LGPL as published by
19
 * the Free Software Foundation, either version 3 of the License, or (at your
20
 * option) any later version.
21
 * 
22
 * This program is distributed in the hope that it will be useful, but WITHOUT ANY
23
 * WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A
24
 * PARTICULAR PURPOSE.  See the GNU Lesser General Public License for more details.
25
 * 
26
 * You should have received a copy of the GNU Lesser General Public License
27
 * along with this program.  If not, see <http://www.gnu.org/licenses/>.
28
 * 
29
 * The fact that you are presently reading this means that you have had
30
 * knowledge of the CeCILL-C and LGPL licenses and that you accept their terms.
31
 */
32
package org.graphstream.stream;
33
34
/**
35
 * A base pipe that merely let all events pass.
36
 * 
37
 * <p>
38
 * This pipe does nothing and let all events pass. It can be used as a base to
39
 * implement more specific filters by refining some of its methods.
40
 * </p>
41
 * 
42
 * <p>
43
 * Another use of this pipe is to duplicate a stream of events from one input
44
 * toward several outputs.
45
 * </p>
46
 */
47
public class PipeBase extends SourceBase implements Pipe {
48
	public void edgeAttributeAdded(String graphId, long timeId, String edgeId,
49
			String attribute, Object value) {
50 1 1. edgeAttributeAdded : removed call to org/graphstream/stream/PipeBase::sendEdgeAttributeAdded → NO_COVERAGE
		sendEdgeAttributeAdded(graphId, timeId, edgeId, attribute, value);
51
	}
52
53
	public void edgeAttributeChanged(String graphId, long timeId,
54
			String edgeId, String attribute, Object oldValue, Object newValue) {
55 1 1. edgeAttributeChanged : removed call to org/graphstream/stream/PipeBase::sendEdgeAttributeChanged → NO_COVERAGE
		sendEdgeAttributeChanged(graphId, timeId, edgeId, attribute, oldValue,
56
				newValue);
57
	}
58
59
	public void edgeAttributeRemoved(String graphId, long timeId,
60
			String edgeId, String attribute) {
61 1 1. edgeAttributeRemoved : removed call to org/graphstream/stream/PipeBase::sendEdgeAttributeRemoved → NO_COVERAGE
		sendEdgeAttributeRemoved(graphId, timeId, edgeId, attribute);
62
	}
63
64
	public void graphAttributeAdded(String graphId, long timeId,
65
			String attribute, Object value) {
66 1 1. graphAttributeAdded : removed call to org/graphstream/stream/PipeBase::sendGraphAttributeAdded → NO_COVERAGE
		sendGraphAttributeAdded(graphId, timeId, attribute, value);
67
	}
68
69
	public void graphAttributeChanged(String graphId, long timeId,
70
			String attribute, Object oldValue, Object newValue) {
71 1 1. graphAttributeChanged : removed call to org/graphstream/stream/PipeBase::sendGraphAttributeChanged → NO_COVERAGE
		sendGraphAttributeChanged(graphId, timeId, attribute, oldValue,
72
				newValue);
73
	}
74
75
	public void graphAttributeRemoved(String graphId, long timeId,
76
			String attribute) {
77 1 1. graphAttributeRemoved : removed call to org/graphstream/stream/PipeBase::sendGraphAttributeRemoved → NO_COVERAGE
		sendGraphAttributeRemoved(graphId, timeId, attribute);
78
	}
79
80
	public void nodeAttributeAdded(String graphId, long timeId, String nodeId,
81
			String attribute, Object value) {
82 1 1. nodeAttributeAdded : removed call to org/graphstream/stream/PipeBase::sendNodeAdded → NO_COVERAGE
		sendNodeAdded(graphId, timeId, nodeId);
83
	}
84
85
	public void nodeAttributeChanged(String graphId, long timeId,
86
			String nodeId, String attribute, Object oldValue, Object newValue) {
87 1 1. nodeAttributeChanged : removed call to org/graphstream/stream/PipeBase::sendNodeAttributeChanged → NO_COVERAGE
		sendNodeAttributeChanged(graphId, timeId, nodeId, attribute, oldValue,
88
				newValue);
89
	}
90
91
	public void nodeAttributeRemoved(String graphId, long timeId,
92
			String nodeId, String attribute) {
93 1 1. nodeAttributeRemoved : removed call to org/graphstream/stream/PipeBase::sendNodeAttributeRemoved → NO_COVERAGE
		sendNodeAttributeRemoved(graphId, timeId, nodeId, attribute);
94
	}
95
96
	public void edgeAdded(String graphId, long timeId, String edgeId,
97
			String fromNodeId, String toNodeId, boolean directed) {
98 1 1. edgeAdded : removed call to org/graphstream/stream/PipeBase::sendEdgeAdded → NO_COVERAGE
		sendEdgeAdded(graphId, timeId, edgeId, fromNodeId, toNodeId, directed);
99
	}
100
101
	public void edgeRemoved(String graphId, long timeId, String edgeId) {
102 1 1. edgeRemoved : removed call to org/graphstream/stream/PipeBase::sendEdgeRemoved → NO_COVERAGE
		sendEdgeRemoved(graphId, timeId, edgeId);
103
	}
104
105
	public void graphCleared(String graphId, long timeId) {
106 1 1. graphCleared : removed call to org/graphstream/stream/PipeBase::sendGraphCleared → NO_COVERAGE
		sendGraphCleared(graphId, timeId);
107
	}
108
109
	public void nodeAdded(String graphId, long timeId, String nodeId) {
110 1 1. nodeAdded : removed call to org/graphstream/stream/PipeBase::sendNodeAdded → NO_COVERAGE
		sendNodeAdded(graphId, timeId, nodeId);
111
	}
112
113
	public void nodeRemoved(String graphId, long timeId, String nodeId) {
114 1 1. nodeRemoved : removed call to org/graphstream/stream/PipeBase::sendNodeRemoved → NO_COVERAGE
		sendNodeRemoved(graphId, timeId, nodeId);
115
	}
116
117
	public void stepBegins(String graphId, long timeId, double step) {
118 1 1. stepBegins : removed call to org/graphstream/stream/PipeBase::sendStepBegins → NO_COVERAGE
		sendStepBegins(graphId, timeId, step);
119
	}
120
}

Mutations

50

1.1
Location : edgeAttributeAdded
Killed by : none
removed call to org/graphstream/stream/PipeBase::sendEdgeAttributeAdded → NO_COVERAGE

55

1.1
Location : edgeAttributeChanged
Killed by : none
removed call to org/graphstream/stream/PipeBase::sendEdgeAttributeChanged → NO_COVERAGE

61

1.1
Location : edgeAttributeRemoved
Killed by : none
removed call to org/graphstream/stream/PipeBase::sendEdgeAttributeRemoved → NO_COVERAGE

66

1.1
Location : graphAttributeAdded
Killed by : none
removed call to org/graphstream/stream/PipeBase::sendGraphAttributeAdded → NO_COVERAGE

71

1.1
Location : graphAttributeChanged
Killed by : none
removed call to org/graphstream/stream/PipeBase::sendGraphAttributeChanged → NO_COVERAGE

77

1.1
Location : graphAttributeRemoved
Killed by : none
removed call to org/graphstream/stream/PipeBase::sendGraphAttributeRemoved → NO_COVERAGE

82

1.1
Location : nodeAttributeAdded
Killed by : none
removed call to org/graphstream/stream/PipeBase::sendNodeAdded → NO_COVERAGE

87

1.1
Location : nodeAttributeChanged
Killed by : none
removed call to org/graphstream/stream/PipeBase::sendNodeAttributeChanged → NO_COVERAGE

93

1.1
Location : nodeAttributeRemoved
Killed by : none
removed call to org/graphstream/stream/PipeBase::sendNodeAttributeRemoved → NO_COVERAGE

98

1.1
Location : edgeAdded
Killed by : none
removed call to org/graphstream/stream/PipeBase::sendEdgeAdded → NO_COVERAGE

102

1.1
Location : edgeRemoved
Killed by : none
removed call to org/graphstream/stream/PipeBase::sendEdgeRemoved → NO_COVERAGE

106

1.1
Location : graphCleared
Killed by : none
removed call to org/graphstream/stream/PipeBase::sendGraphCleared → NO_COVERAGE

110

1.1
Location : nodeAdded
Killed by : none
removed call to org/graphstream/stream/PipeBase::sendNodeAdded → NO_COVERAGE

114

1.1
Location : nodeRemoved
Killed by : none
removed call to org/graphstream/stream/PipeBase::sendNodeRemoved → NO_COVERAGE

118

1.1
Location : stepBegins
Killed by : none
removed call to org/graphstream/stream/PipeBase::sendStepBegins → NO_COVERAGE

Active mutators

Tests examined


Report generated by PIT 0.33