public class matrizDeTiempos
extends java.lang.Object
Modifier and Type | Field | Description |
---|---|---|
private int[][] |
matrizTiempos |
Array privado que almacena los tiempos en llegar de un lugar
turístico a otro
|
Constructor | Description |
---|---|
matrizDeTiempos(java.lang.String ficheroMatrizTiempos,
int numLugares) |
Constructor de la clase matrizDeTiempos
|
Modifier and Type | Method | Description |
---|---|---|
int[][] |
getMatrizTiempos() |
Método que retorna el array matrizTiempos
|
private void |
leerMatrizTiempos(java.lang.String ficheroMatrizTiempos,
int numLugares) |
Lee todos los tiempos en llegar de lugar a lugar y los almacena en el array matrizTiempos
|
void |
mostrarMatrizTiempos() |
Método para mostrar por pantalla la matriz de Tiempos
|
private int[][] matrizTiempos
public matrizDeTiempos(java.lang.String ficheroMatrizTiempos, int numLugares) throws java.io.FileNotFoundException, java.io.IOException
ficheroMatrizTiempos
- Fichero para la lectura de los datosnumLugares
- Número de lugares disponiblesjava.io.FileNotFoundException
- Error, que no se encuentre el ficherojava.io.IOException
- Error de entrada/salidaprivate void leerMatrizTiempos(java.lang.String ficheroMatrizTiempos, int numLugares) throws java.io.FileNotFoundException, java.io.IOException
ficheroMatrizTiempos
- Fichero para la lectura de datosnumLugares
- Número de lugares disponiblesjava.io.FileNotFoundException
- Error, que no se encuentre el ficherojava.io.IOException
- Error de entrada/salidapublic void mostrarMatrizTiempos()
public int[][] getMatrizTiempos()