TrainVagas  0.1
frontend.Display Class Reference

Static Public Member Functions

static void showAllResults ()
 

Static Package Attributes

static int index_line = 1
 
static final String FORMAT_DOUBLE = "%.0f"
 
static final String FORMAT_DECIMAL = "%d"
 
static final String FORMAT_ROUTE = "[%s] "
 
static final String FORMAT_STRING = "%-20s"
 
static final String FORMAT_COL1 = "%-7s"
 
static final String SEPARATOR = " | "
 
static final String NEW_LINE = "\n"
 

Static Private Member Functions

static void printHead ()
 
static void printResultShortest (Map< String, Route[]> shortest)
 
static void printResultCalculateDistance (Route[] routes)
 
static void printResultFilter (Route[] routes)
 
static void printLine (String line)
 

Member Function Documentation

◆ printHead()

static void frontend.Display.printHead ( )
staticprivate

Imprime cabecalho

Here is the caller graph for this function:

◆ printLine()

static void frontend.Display.printLine ( String  line)
staticprivate

Imprime a linha na tela adicionando o numero da linha

Parameters
lineFormatada e tabulada
Here is the caller graph for this function:

◆ printResultCalculateDistance()

static void frontend.Display.printResultCalculateDistance ( Route []  routes)
staticprivate

Imprime resultado dos calculos de distancias das rotas

Parameters
routesLista das rotas e seus respectivo valores de distancia
Here is the call graph for this function:
Here is the caller graph for this function:

◆ printResultFilter()

static void frontend.Display.printResultFilter ( Route []  routes)
staticprivate

Imprime resultados dos filtros

Parameters
routes
Here is the call graph for this function:
Here is the caller graph for this function:

◆ printResultShortest()

static void frontend.Display.printResultShortest ( Map< String, Route[]>  shortest)
staticprivate

Imprime resulatado relacionado da consulta de menores rotas

Parameters
shortesdLista das menores rotas
Here is the call graph for this function:
Here is the caller graph for this function:

◆ showAllResults()

static void frontend.Display.showAllResults ( )
static

Mostra todos os resultados.

Here is the call graph for this function:
Here is the caller graph for this function:

Member Data Documentation

◆ FORMAT_COL1

final String frontend.Display.FORMAT_COL1 = "%-7s"
staticpackage

◆ FORMAT_DECIMAL

final String frontend.Display.FORMAT_DECIMAL = "%d"
staticpackage

◆ FORMAT_DOUBLE

final String frontend.Display.FORMAT_DOUBLE = "%.0f"
staticpackage

◆ FORMAT_ROUTE

final String frontend.Display.FORMAT_ROUTE = "[%s] "
staticpackage

◆ FORMAT_STRING

final String frontend.Display.FORMAT_STRING = "%-20s"
staticpackage

◆ index_line

int frontend.Display.index_line = 1
staticpackage

◆ NEW_LINE

final String frontend.Display.NEW_LINE = "\n"
staticpackage

◆ SEPARATOR

final String frontend.Display.SEPARATOR = " | "
staticpackage

The documentation for this class was generated from the following file: