All Downloads are FREE. Search and download functionalities are using the official Maven repository.

timeBench.data.io.TemporalDatasetWriter Maven / Gradle / Ivy

Go to download

TimeBench, a flexible, easy-to-use, and reusable software library written in Java that provides foundational data structures and algorithms for time- oriented data in Visual Analytics.

The newest version!
package timeBench.data.io;

import java.io.File;
import java.io.OutputStream;

import prefuse.data.io.DataIOException;
import timeBench.data.TemporalDataset;

/**
 * interface for classes that write a temporal dataset to a particular file
 * format.
 * 
 * Based on {@link prefuse.data.io.GraphWriter}.
 * 
 * @author Alexander Rind
 */
public interface TemporalDatasetWriter {

    /**
     * Write a {@link TemporalDataset} to the file with the given filename.
     * 
     * @param tmpds
     *            the {@link TemporalDataset} to write
     * @param filename
     *            the file to write the temporal dataset to
     * @throws DataIOException
     */
    public void writeData(TemporalDataset tmpds, String filename)
            throws DataIOException;

    /**
     * Write a {@link TemporalDataset} to the given {@link File}.
     * 
     * @param tmpds
     *            the {@link TemporalDataset} to write
     * @param f
     *            the file to write the temporal dataset to
     * @throws DataIOException
     */
    public void writeData(TemporalDataset tmpds, File f)
            throws DataIOException;

    /**
     * Write a {@link TemporalDataset} to the given {@link OutputStream}.
     * 
     * @param tmpds
     *            the {@link TemporalDataset} to write
     * @param os
     *            the OutputStream to write the temporal dataset to
     * @throws DataIOException
     */
    public void writeData(TemporalDataset tmpds, OutputStream os)
            throws DataIOException;
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy