Class Table

java.lang.Object
src.parameters.Table

class Table extends Object
Un oggetto della classe Table rappresenta una tabella che contiene i valori dei prametri rilevati da una zona geografica. La tabella ha 7 categorie per i valori inseriti.
Version:
1.0.0
Author:
Lorenzo Radice
  • Field Summary

    Fields
    Modifier and Type
    Field
    Description
    protected static final short
    Numero di categorie
  • Constructor Summary

    Constructors
    Constructor
    Description
    Costruttore vuoto
    Table(short[] s)
    Costruttore senza note.
    Table(short[] s, String[] note)
    Costruttore completo.
  • Method Summary

    Modifier and Type
    Method
    Description
    static Table
    Chiede all'utente di inserire i parametri della ricerca e ritorna la tabella che li contiene.
     
    protected String[]
    Crea un array di stringhe formato dai dati inseriti.

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
  • Field Details

    • n_categories

      protected static final short n_categories
      Numero di categorie
      See Also:
  • Constructor Details

    • Table

      public Table()
      Costruttore vuoto
    • Table

      public Table(short[] s)
      Costruttore senza note. Costruisce la tabella utilizzando solo i valori dei parametri. I valori vanno inseriti come un'array di shorts. L'array deve essere di lunghezza pari al numero categorie.
      Parameters:
      s - array dei parametri
    • Table

      public Table(short[] s, String[] note)
      Costruttore completo. Costruisce la tabella utilizzando sia i valori dei parametri che possibili note. I valori vanno inseriti come un array di shorts. Le note vanno inserite come un array di stringhe. Gli array inseriti devono essere di lunghezza pari al numero di categorie.
      Parameters:
      s - array dei parametri
      note - array delle note
  • Method Details

    • MakeTable

      public static Table MakeTable()
      Chiede all'utente di inserire i parametri della ricerca e ritorna la tabella che li contiene.
      Returns:
      tabella
    • toString

      public String toString()
      Overrides:
      toString in class Object
    • toStrings

      protected String[] toStrings()
      Crea un array di stringhe formato dai dati inseriti.
      Returns:
      array di stringhe