Package org.graphstream.stream.file
Class FileSinkBaseFiltered
java.lang.Object
org.graphstream.stream.file.FileSinkBase
org.graphstream.stream.file.FileSinkBaseFiltered
- All Implemented Interfaces:
AttributeSink,ElementSink,FileSink,Sink
- Direct Known Subclasses:
FileSinkDGSFiltered
public abstract class FileSinkBaseFiltered extends FileSinkBase
Base implementation for filtered graph output to files.
This class provides the list of possible filters which could be used by the final user to write graphs into files using a specific file format. Thus, it allows to create an output stream where the dynamic events of addition/deletion/modification can be filtered.
Since it extends FileSinkBase, you have to override the same methods in order to implement an output.
-
Constructor Summary
Constructors Constructor Description FileSinkBaseFiltered()Initialize with no filter -
Method Summary
Modifier and Type Method Description booleanaddEdgeAttributeFiltered(String attr)Add a new attribute to filterbooleanaddGraphAttributeFiltered(String attr)Add a new attribute to filterbooleanaddNodeAttributeFiltered(String attr)Add a new attribute to filterArrayList<String>getEdgeAttributesFiltered()ArrayList<String>getGraphAttributesFiltered()ArrayList<String>getNodeAttributesFiltered()booleanisNoFilterEdgeAdded()booleanisNoFilterEdgeAttributeAdded()booleanisNoFilterEdgeAttributeChanged()booleanisNoFilterEdgeAttributeRemoved()booleanisNoFilterEdgeRemoved()booleanisNoFilterGraphAttributeAdded()booleanisNoFilterGraphAttributeChanged()booleanisNoFilterGraphAttributeRemoved()booleanisNoFilterGraphCleared()booleanisNoFilterNodeAdded()booleanisNoFilterNodeAttributeAdded()booleanisNoFilterNodeAttributeChanged()booleanisNoFilterNodeAttributeRemoved()booleanisNoFilterNodeRemoved()booleanisNoFilterStepBegins()booleanremoveEdgeAttributeFilter(String attr)Remove an attribute to filterbooleanremoveGraphAttributeFilter(String attr)Remove an attribute to filterbooleanremoveNodeAttributeFilter(String attr)Remove an attribute to filtervoidsetEdgeAttributesFiltered(ArrayList<String> edgeAttributesFiltered)Set the whole list of edge attributes filteredvoidsetGraphAttributesFiltered(ArrayList<String> graphAttributesFiltered)Set the whole list of graph attributes filteredvoidsetNodeAttributesFiltered(ArrayList<String> nodeAttributesFiltered)Set the whole list of node attributes filteredvoidsetNoFilterEdgeAdded(boolean noFilterEdgeAdded)voidsetNoFilterEdgeAttributeAdded(boolean noFilterEdgeAttributeAdded)Disable or enable this filtervoidsetNoFilterEdgeAttributeChanged(boolean noFilterEdgeAttributeChanged)voidsetNoFilterEdgeAttributeRemoved(boolean noFilterEdgeAttributeRemoved)voidsetNoFilterEdgeRemoved(boolean noFilterEdgeRemoved)Disable or enable this filtervoidsetNoFilterGraphAttributeAdded(boolean noFilterGraphAttributeAdded)Disable or enable this filtervoidsetNoFilterGraphAttributeChanged(boolean noFilterGraphAttributeChanged)Disable or enable this filtervoidsetNoFilterGraphAttributeRemoved(boolean noFilterGraphAttributeRemoved)Disable or enable this filtervoidsetNoFilterGraphCleared(boolean noFilterGraphCleared)Disable or enable this filtervoidsetNoFilterNodeAdded(boolean noFilterNodeAdded)Disable or enable this filtervoidsetNoFilterNodeAttributeAdded(boolean noFilterNodeAttributeAdded)Disable or enable this filtervoidsetNoFilterNodeAttributeChanged(boolean noFilterNodeAttributeChanged)Disable or enable this filtervoidsetNoFilterNodeAttributeRemoved(boolean noFilterNodeAttributeRemoved)Disable or enable this filtervoidsetNoFilterNodeRemoved(boolean noFilterNodeRemoved)Disable or enable this filtervoidsetNoFilterStepBegins(boolean noFilterStepBegins)Disable or enable this filterMethods inherited from class org.graphstream.stream.file.FileSinkBase
begin, begin, begin, end, flush, writeAll, writeAll, writeAllMethods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.graphstream.stream.AttributeSink
edgeAttributeAdded, edgeAttributeChanged, edgeAttributeRemoved, graphAttributeAdded, graphAttributeChanged, graphAttributeRemoved, nodeAttributeAdded, nodeAttributeChanged, nodeAttributeRemovedMethods inherited from interface org.graphstream.stream.ElementSink
edgeAdded, edgeRemoved, graphCleared, nodeAdded, nodeRemoved, stepBegins
-
Constructor Details
-
FileSinkBaseFiltered
public FileSinkBaseFiltered()Initialize with no filter
-
-
Method Details
-
getGraphAttributesFiltered
- Returns:
- the list of every node attributes filtered
-
setGraphAttributesFiltered
Set the whole list of graph attributes filtered- Parameters:
graphAttributesFiltered- the new list
-
addGraphAttributeFiltered
Add a new attribute to filter- Parameters:
attr- the filtered attribute- Returns:
- true if the attribute has been added, false otherwise
-
removeGraphAttributeFilter
Remove an attribute to filter- Parameters:
attr- the no more filtered attribute- Returns:
- true if the attribute has been removed, false otherwise
-
getNodeAttributesFiltered
- Returns:
- the list of every node attributes filtered
-
setNodeAttributesFiltered
Set the whole list of node attributes filtered- Parameters:
nodeAttributesFiltered- the new list
-
addNodeAttributeFiltered
Add a new attribute to filter- Parameters:
attr- the filtered attribute- Returns:
- true if the attribute has been added, false otherwise
-
removeNodeAttributeFilter
Remove an attribute to filter- Parameters:
attr- the no more filtered attribute- Returns:
- true if the attribute has been removed, false otherwise
-
getEdgeAttributesFiltered
- Returns:
- the list of every edge attributes filtered
-
setEdgeAttributesFiltered
Set the whole list of edge attributes filtered- Parameters:
edgeAttributesFiltered- the new list
-
addEdgeAttributeFiltered
Add a new attribute to filter- Parameters:
attr- the filtered attribute- Returns:
- true if the attribute has been added, false otherwise
-
removeEdgeAttributeFilter
Remove an attribute to filter- Parameters:
attr- the filtered attribute- Returns:
- true if the attribute has been removed, false otherwise
-
isNoFilterGraphAttributeAdded
public boolean isNoFilterGraphAttributeAdded()- Returns:
- true if this filter is disable, false otherwise
-
setNoFilterGraphAttributeAdded
public void setNoFilterGraphAttributeAdded(boolean noFilterGraphAttributeAdded)Disable or enable this filter- Parameters:
noFilterGraphAttributeAdded-
-
isNoFilterGraphAttributeChanged
public boolean isNoFilterGraphAttributeChanged()- Returns:
- true if this filter is disable, false otherwise
-
setNoFilterGraphAttributeChanged
public void setNoFilterGraphAttributeChanged(boolean noFilterGraphAttributeChanged)Disable or enable this filter- Parameters:
noFilterGraphAttributeChanged-
-
isNoFilterGraphAttributeRemoved
public boolean isNoFilterGraphAttributeRemoved()- Returns:
- true if this filter is disable, false otherwise
-
setNoFilterGraphAttributeRemoved
public void setNoFilterGraphAttributeRemoved(boolean noFilterGraphAttributeRemoved)Disable or enable this filter- Parameters:
noFilterGraphAttributeRemoved-
-
isNoFilterNodeAttributeAdded
public boolean isNoFilterNodeAttributeAdded()- Returns:
- true if this filter is disable, false otherwise
-
setNoFilterNodeAttributeAdded
public void setNoFilterNodeAttributeAdded(boolean noFilterNodeAttributeAdded)Disable or enable this filter- Parameters:
noFilterNodeAttributeAdded-
-
isNoFilterNodeAttributeChanged
public boolean isNoFilterNodeAttributeChanged()- Returns:
- true if this filter is disable, false otherwise
-
setNoFilterNodeAttributeChanged
public void setNoFilterNodeAttributeChanged(boolean noFilterNodeAttributeChanged)Disable or enable this filter- Parameters:
noFilterNodeAttributeChanged-
-
isNoFilterNodeAttributeRemoved
public boolean isNoFilterNodeAttributeRemoved()- Returns:
- true if this filter is disable, false otherwise
-
setNoFilterNodeAttributeRemoved
public void setNoFilterNodeAttributeRemoved(boolean noFilterNodeAttributeRemoved)Disable or enable this filter- Parameters:
noFilterNodeAttributeRemoved-
-
isNoFilterNodeAdded
public boolean isNoFilterNodeAdded()- Returns:
- true if this filter is disable, false otherwise
-
setNoFilterNodeAdded
public void setNoFilterNodeAdded(boolean noFilterNodeAdded)Disable or enable this filter- Parameters:
noFilterNodeAdded-
-
isNoFilterNodeRemoved
public boolean isNoFilterNodeRemoved()- Returns:
- true if this filter is disable, false otherwise
-
setNoFilterNodeRemoved
public void setNoFilterNodeRemoved(boolean noFilterNodeRemoved)Disable or enable this filter- Parameters:
noFilterNodeRemoved-
-
isNoFilterEdgeAttributeAdded
public boolean isNoFilterEdgeAttributeAdded()- Returns:
- true if this filter is disable, false otherwise
-
setNoFilterEdgeAttributeAdded
public void setNoFilterEdgeAttributeAdded(boolean noFilterEdgeAttributeAdded)Disable or enable this filter- Parameters:
noFilterEdgeAttributeAdded-
-
isNoFilterEdgeAttributeChanged
public boolean isNoFilterEdgeAttributeChanged()- Returns:
- true if this filter is disable, false otherwise
-
setNoFilterEdgeAttributeChanged
public void setNoFilterEdgeAttributeChanged(boolean noFilterEdgeAttributeChanged)- Parameters:
noFilterEdgeAttributeChanged-
-
isNoFilterEdgeAttributeRemoved
public boolean isNoFilterEdgeAttributeRemoved()- Returns:
- true if this filter is disable, false otherwise
-
setNoFilterEdgeAttributeRemoved
public void setNoFilterEdgeAttributeRemoved(boolean noFilterEdgeAttributeRemoved)- Parameters:
noFilterEdgeAttributeRemoved-
-
isNoFilterEdgeAdded
public boolean isNoFilterEdgeAdded()- Returns:
- true if this filter is disable, false otherwise
-
setNoFilterEdgeAdded
public void setNoFilterEdgeAdded(boolean noFilterEdgeAdded)- Parameters:
noFilterEdgeAdded-
-
isNoFilterEdgeRemoved
public boolean isNoFilterEdgeRemoved()- Returns:
- true if this filter is disable, false otherwise
-
setNoFilterEdgeRemoved
public void setNoFilterEdgeRemoved(boolean noFilterEdgeRemoved)Disable or enable this filter- Parameters:
noFilterEdgeRemoved-
-
isNoFilterGraphCleared
public boolean isNoFilterGraphCleared()- Returns:
- true if this filter is disable, false otherwise
-
setNoFilterGraphCleared
public void setNoFilterGraphCleared(boolean noFilterGraphCleared)Disable or enable this filter- Parameters:
noFilterGraphCleared-
-
isNoFilterStepBegins
public boolean isNoFilterStepBegins()- Returns:
- true if this filter is disable, false otherwise
-
setNoFilterStepBegins
public void setNoFilterStepBegins(boolean noFilterStepBegins)Disable or enable this filter- Parameters:
noFilterStepBegins-
-