Documentation of 'ca.pfv.spmf.algorithms.sequentialpatterns.fournier2008_seqdim.SequenceDatabase' Java class
SequenceDatabase
ca.pfv.spmf.algorithms.sequentialpatterns.fournier2008_seqdim

Class SequenceDatabase



  • public class SequenceDatabase
    extends java.lang.Object
    Implementation of a sequence database as used by the SeqDim and Fournier-Vier (2008) algorithms. Each sequence need to hvae a unique ID. See examples in the /test/ directory for the format of input files. that can be read by this class.
    See Also:
    AlgoFournierViger08, AlgoSeqDim, Sequence
    • Constructor Summary

      Constructors 
      Constructor and Description
      SequenceDatabase() 
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method and Description
      void addSequence(Sequence sequence)
      Add a sequence to the sequence database
      java.util.Set<java.lang.Integer> getSequenceIDs()
      Get the set of sequence IDs.
      java.util.List<Sequence> getSequences()
      Get the list of sequences.
      void loadFile(java.lang.String path)
      Load a sequence database from an input file
      void print()
      Print this sequence database to System.out
      int size()
      Get the number of sequences.
      java.lang.String toString()
      Get a string representation of this sequence
      • Methods inherited from class java.lang.Object

        equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
    • Constructor Detail

      • SequenceDatabase

        public SequenceDatabase()
    • Method Detail

      • loadFile

        public void loadFile(java.lang.String path)
                      throws java.io.IOException
        Load a sequence database from an input file
        Parameters:
        path - the input file path
        Throws:
        java.io.IOException - exception if error reading file
      • addSequence

        public void addSequence(Sequence sequence)
        Add a sequence to the sequence database
        Parameters:
        sequence - the sequence
      • print

        public void print()
        Print this sequence database to System.out
      • toString

        public java.lang.String toString()
        Get a string representation of this sequence
        Overrides:
        toString in class java.lang.Object
      • size

        public int size()
        Get the number of sequences.
        Returns:
        an integer
      • getSequences

        public java.util.List<Sequence> getSequences()
        Get the list of sequences.
        Returns:
        a List of sequences.
      • getSequenceIDs

        public java.util.Set<java.lang.Integer> getSequenceIDs()
        Get the set of sequence IDs.
        Returns:
        a Set of Integer.

DMelt 3.0 © DataMelt by jWork.ORG

You see the box below because you did not login.