TrainVagas  0.1
controller.RailSystem Class Reference

Static Public Member Functions

static Route [] filterByStops1 ()
 
static Route [] filterByStops2 ()
 
static Route [] filterByDistance ()
 
static Route [] calculateDistance ()
 
static Map< String,Route[]> shortestRoute ()
 
static boolean init ()
 
static void deInit ()
 

Member Function Documentation

◆ calculateDistance()

static Route [] controller.RailSystem.calculateDistance ( )
static

Calcula as distancias da rotas mapeadas no arquivo na propriedade 'distance.routes'

Returns
Retorna lista de rotas com as distancias calculadas
Here is the call graph for this function:
Here is the caller graph for this function:

◆ deInit()

static void controller.RailSystem.deInit ( )
static

Finaliza o sistema de rotas

Here is the caller graph for this function:

◆ filterByDistance()

static Route [] controller.RailSystem.filterByDistance ( )
static

Esse filtro esta mapeado no arquivo de entrada com o index = 3(DataFile.DISTANCE_CONDITION) Condicao do filtro DISTANCE < 30

Returns
Retorna uma lista de rotas filtradas pela condicao
Here is the call graph for this function:
Here is the caller graph for this function:

◆ filterByStops1()

static Route [] controller.RailSystem.filterByStops1 ( )
static

Esse filtro esta mapeado no arquivo de entrada com o index = 1(DataFile.STOP1_CONDITION) Condicao do filtro STOPS <= 3

Returns
Retorna rotas filtradas pela condicao
Here is the call graph for this function:
Here is the caller graph for this function:

◆ filterByStops2()

static Route [] controller.RailSystem.filterByStops2 ( )
static

Esse filtro esta mapeado no arquivo de entrada com o index = 2(DataFile.STOP2_CONDITION) Condicao do filtro STOPS == 4

Returns
Retorna uma lista de rotas filtradas pela condicao
Here is the call graph for this function:
Here is the caller graph for this function:

◆ init()

static boolean controller.RailSystem.init ( )
static

Inicializa o sistema de rotas

Returns
Se a inicializacao ocorreu com sucesso retorna true
Here is the call graph for this function:
Here is the caller graph for this function:

◆ shortestRoute()

static Map<String ,Route[]> controller.RailSystem.shortestRoute ( )
static

Mapeia todas as rotas mais curtas de todas as viagens

Returns
Retorna uma lista de rotas mais curtas para cada viagem/rota
Here is the call graph for this function:
Here is the caller graph for this function:

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