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 Details

  • Method Details

    • getGraphAttributesFiltered

      public ArrayList<String> getGraphAttributesFiltered()
      Returns:
      the list of every node attributes filtered
    • setGraphAttributesFiltered

      public void setGraphAttributesFiltered​(ArrayList<String> graphAttributesFiltered)
      Set the whole list of graph attributes filtered
      Parameters:
      graphAttributesFiltered - the new list
    • addGraphAttributeFiltered

      public boolean addGraphAttributeFiltered​(String attr)
      Add a new attribute to filter
      Parameters:
      attr - the filtered attribute
      Returns:
      true if the attribute has been added, false otherwise
    • removeGraphAttributeFilter

      public boolean removeGraphAttributeFilter​(String attr)
      Remove an attribute to filter
      Parameters:
      attr - the no more filtered attribute
      Returns:
      true if the attribute has been removed, false otherwise
    • getNodeAttributesFiltered

      public ArrayList<String> getNodeAttributesFiltered()
      Returns:
      the list of every node attributes filtered
    • setNodeAttributesFiltered

      public void setNodeAttributesFiltered​(ArrayList<String> nodeAttributesFiltered)
      Set the whole list of node attributes filtered
      Parameters:
      nodeAttributesFiltered - the new list
    • addNodeAttributeFiltered

      public boolean addNodeAttributeFiltered​(String attr)
      Add a new attribute to filter
      Parameters:
      attr - the filtered attribute
      Returns:
      true if the attribute has been added, false otherwise
    • removeNodeAttributeFilter

      public boolean removeNodeAttributeFilter​(String attr)
      Remove an attribute to filter
      Parameters:
      attr - the no more filtered attribute
      Returns:
      true if the attribute has been removed, false otherwise
    • getEdgeAttributesFiltered

      public ArrayList<String> getEdgeAttributesFiltered()
      Returns:
      the list of every edge attributes filtered
    • setEdgeAttributesFiltered

      public void setEdgeAttributesFiltered​(ArrayList<String> edgeAttributesFiltered)
      Set the whole list of edge attributes filtered
      Parameters:
      edgeAttributesFiltered - the new list
    • addEdgeAttributeFiltered

      public boolean addEdgeAttributeFiltered​(String attr)
      Add a new attribute to filter
      Parameters:
      attr - the filtered attribute
      Returns:
      true if the attribute has been added, false otherwise
    • removeEdgeAttributeFilter

      public boolean removeEdgeAttributeFilter​(String attr)
      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 -