anl.aida.client.net
Class NetworkOutputter

java.lang.Object
  extended by anl.aida.client.net.TSConceptGraphs
      extended by anl.aida.client.net.NetworkOutputter

public class NetworkOutputter
extends TSConceptGraphs

Class for creating text output of data contained in graphs displayed.


Field Summary
private static java.lang.String DELIMITER
          Delimiter for file outputs
private static java.lang.String directory
          Directory for placing file outputs
private  java.util.Map<anl.aida.util.DateRange,java.lang.Integer> documents
          The document counts arranged by DateRange
private  java.util.List<anl.aida.util.DateRange> ranges
          List of DataRange objects
 
Fields inherited from class anl.aida.client.net.TSConceptGraphs
bean, cache, docOp, graphs, msg
 
Constructor Summary
NetworkOutputter(Cache cache, VizPropertyBean bean, TSConceptGraphs graphs)
          Constructor for creating network data output files.
 
Method Summary
private static boolean deleteDirContent(java.io.File dir)
          Method deletes directory content prior to filling it with new output files.
private  void determineGraphRanges()
          Method to determine the graph time range
private  void populateGraph(anl.aida.util.DateRange range)
          Method to place relevant graphs for the time range investigated.
private  void readGraphs()
          Method to read graph data for output.
static void setDELIMITER(java.lang.String delimiter)
           
static void setDirectory(java.lang.String directory)
           
private  void writeOutput(java.util.Date start, java.util.Date end, java.util.Map<java.lang.String,java.lang.Integer> rangeValues, java.lang.String type)
          Method writes data out to a specific file.
 void writeOutputOut()
          Method to control the graph population process as well as file outputs.
private  void writeSummary(java.util.Date start, java.util.Date end, int count)
          Output provided for the summary of the total number of documents per time range
 
Methods inherited from class anl.aida.client.net.TSConceptGraphs
getDocSetOp, getGraph, getRanger
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

ranges

private java.util.List<anl.aida.util.DateRange> ranges
List of DataRange objects


DELIMITER

private static java.lang.String DELIMITER
Delimiter for file outputs


directory

private static java.lang.String directory
Directory for placing file outputs


documents

private java.util.Map<anl.aida.util.DateRange,java.lang.Integer> documents
The document counts arranged by DateRange

Constructor Detail

NetworkOutputter

public NetworkOutputter(Cache cache,
                        VizPropertyBean bean,
                        TSConceptGraphs graphs)
Constructor for creating network data output files.

Parameters:
cache - the cache of data
bean - the visualization bean
graphs - the graphs containing term nodes and links
Method Detail

writeOutputOut

public void writeOutputOut()
Method to control the graph population process as well as file outputs.


populateGraph

private void populateGraph(anl.aida.util.DateRange range)
Method to place relevant graphs for the time range investigated.

Parameters:
range - the DateRange object.

setDirectory

public static void setDirectory(java.lang.String directory)

determineGraphRanges

private void determineGraphRanges()
Method to determine the graph time range


readGraphs

private void readGraphs()
Method to read graph data for output.


setDELIMITER

public static void setDELIMITER(java.lang.String delimiter)

deleteDirContent

private static boolean deleteDirContent(java.io.File dir)
Method deletes directory content prior to filling it with new output files.

Parameters:
dir - the directory
Returns:
a boolean for file deletion

writeSummary

private void writeSummary(java.util.Date start,
                          java.util.Date end,
                          int count)
Output provided for the summary of the total number of documents per time range

Parameters:
start - the start date
end - the end date
count - the total count of documents for the time range

writeOutput

private void writeOutput(java.util.Date start,
                         java.util.Date end,
                         java.util.Map<java.lang.String,java.lang.Integer> rangeValues,
                         java.lang.String type)
Method writes data out to a specific file.

Parameters:
start - the start data of a DateRange
end - the end date of a DateRange
rangeValues - values based on combined link label and their document count values
type - the type of file output (nodes or links)