edu.iu.iv.modeling.tarl.output
Interface OutputWriter

All Known Implementing Classes:
DefaultOutputWriter

public interface OutputWriter

This interface defines methods to write the output of the model to the file system. The interface supports output in the form of Pajek files and Data Files.

Author:
Jeegar T Maru
See Also:
PublicationGroup, AuthorGroup, TopicGroup

Method Summary
 void initialize(PublicationGroup publicationGroup, AuthorGroup authorGroup, TopicGroup topicGroup)
          Initializes the OutputWriter with the given publications, authors and topics
 void writeDataFiles(java.lang.String folderPath)
          Writes out the Data Files to the file system in the given folder
 void writePajekFiles(java.lang.String folderPath)
          Writes out Pajek Files to the file system in the given folder
 

Method Detail

initialize

public void initialize(PublicationGroup publicationGroup,
                       AuthorGroup authorGroup,
                       TopicGroup topicGroup)
Initializes the OutputWriter with the given publications, authors and topics

Parameters:
publicationGroup - Specifies the group of all the publications for the model
authorGroup - Specifies the group of all authors for the model
topicGroup - Specifies the group of all topics for the model

writePajekFiles

public void writePajekFiles(java.lang.String folderPath)
                     throws java.io.FileNotFoundException
Writes out Pajek Files to the file system in the given folder

Parameters:
folderPath - Specifies the location of the folder for the output files
Throws:
java.io.FileNotFoundException - if the files cannot be written to the file system

writeDataFiles

public void writeDataFiles(java.lang.String folderPath)
                    throws java.io.FileNotFoundException
Writes out the Data Files to the file system in the given folder

Parameters:
folderPath - Specifies the location of the folder for the output files
Throws:
java.io.FileNotFoundException - if the files cannot be written to the file system