Package | Description |
---|---|
com.vsegouin.mowitnow.controllers |
Created by v.segouin on 13/09/2016.
|
com.vsegouin.mowitnow.controllers.interfaces |
Created by v.segouin on 13/09/2016.
|
com.vsegouin.mowitnow.mower.core |
Created by v.segouin on 13/09/2016.
|
com.vsegouin.mowitnow.mower.core.detection |
Created by v.segouin on 13/09/2016.
|
com.vsegouin.mowitnow.services.file |
Created by v.segouin on 11/09/2016.
|
com.vsegouin.mowitnow.services.file.interfaces |
Created by v.segouin on 13/09/2016.
|
com.vsegouin.mowitnow.ui.gui.components.visualization |
Created by v.segouin on 11/09/2016.
|
com.vsegouin.mowitnow.ui.gui.controllers |
Created by v.segouin on 13/09/2016.
|
com.vsegouin.mowitnow.ui.gui.controllers.infos |
Created by v.segouin on 13/09/2016.
|
com.vsegouin.mowitnow.ui.gui.controllers.interfaces |
Created by v.segouin on 13/09/2016.
|
Modifier and Type | Method and Description |
---|---|
MapArea |
MainController.createMap(int x,
int y) |
MapArea |
MainController.executeFileCommands(List<String> fileContent) |
MapArea |
MainController.fetchMapFromIndex(int selectedIndex) |
MapArea |
MainController.init(int x,
int y)
initialize the map.
|
Modifier and Type | Method and Description |
---|---|
Map<MapArea,Map<Mower,String>> |
MainController.getMapMowersList() |
Modifier and Type | Method and Description |
---|---|
void |
MainController.addMower(MapArea map,
int abscissa,
int ordinate)
create a new mower at the cordinates provided.
|
void |
MainController.addMower(MapArea map,
Mower mower)
add a new mower.
|
Mower |
MainController.fetchMowerFromCoordinates(MapArea map,
int x,
int y)
Will check the mower's state and will return the mower located at the 'x','y' position.
|
int |
MainController.getMapIndex(MapArea map) |
int |
MainController.getMowerIndex(MapArea map,
Mower mower)
will check the mower's position in the map.
|
void |
MainController.removeMower(MapArea map,
int abscissa,
int ordinate) |
Modifier and Type | Method and Description |
---|---|
void |
MainController.setMapMowersList(Map<MapArea,Map<Mower,String>> mapMowersList) |
Modifier and Type | Method and Description |
---|---|
MapArea |
MowerController.createMap(int x,
int y)
Create a new empty map and add it to the mowerMapsList.
|
MapArea |
MowerController.executeFileCommands(List<String> fileContent)
Create a new map, its mowers and their commands and execute it all.
|
MapArea |
MowerController.fetchMapFromIndex(int index)
Get the map located at the provided index.
|
Modifier and Type | Method and Description |
---|---|
Map<MapArea,Map<Mower,String>> |
MowerController.getMapMowersList()
Get the complete list of the Map and the mowers and their commands line.
|
Modifier and Type | Method and Description |
---|---|
void |
MowerController.addMower(MapArea map,
int abscissa,
int ordinate)
Add a new mower in the map at the x y coordinate.
|
void |
MowerController.addMower(MapArea map,
Mower mower)
Add a new mower in the map at the x y coordinate.
|
Mower |
MowerController.fetchMowerFromCoordinates(MapArea map,
int x,
int y)
Return the mower presents in the map at coordinate x y.
|
int |
MowerController.getMapIndex(MapArea map)
Get the map index.
|
int |
MowerController.getMowerIndex(MapArea map,
Mower mower)
Get the mower's addition number.
|
void |
MowerController.removeMower(MapArea map,
int abscissa,
int ordinate)
Remove the mower from the map.
|
Constructor and Description |
---|
Mower(int initialAbscissa,
int initialOrdinate,
Direction initialDirection,
MapArea map)
Standard constructor, will the mower at the given coordinates.
|
Mower(MapArea map)
Basic constructor, will place the mower at 0,0,N.
|
Modifier and Type | Method and Description |
---|---|
MapArea |
Detector.getMap() |
Constructor and Description |
---|
Detector(int abscissa,
int ordinate,
Direction initialDirection,
MapArea map)
Initializes the detector with the current state of the mower.
|
Modifier and Type | Method and Description |
---|---|
MapArea |
FileControl.initializeMap(List<String> fileContents)
use the maps configured in the file and will create a new map.
|
Modifier and Type | Method and Description |
---|---|
Map<Mower,String> |
FileControl.loadMowers(List<String> commandsLines,
MapArea initialMap)
Will read and parse the 'commandLines' extracted with the 'readFile' method and will set them on the map,
it will return a map with the mowers and their commands.
|
Modifier and Type | Method and Description |
---|---|
MapArea |
FileControlInterface.initializeMap(List<String> fileContent)
Initialize a new map thanks to the command file.
|
Modifier and Type | Method and Description |
---|---|
Map<Mower,String> |
FileControlInterface.loadMowers(List<String> fileContent,
MapArea map)
Load the mowers and their corresponding commands line from file.
|
Constructor and Description |
---|
MatrixVisualizerPane(GUIController context,
MowerController mowerController,
MapArea map)
The basic constructor.
|
Modifier and Type | Method and Description |
---|---|
MapArea |
MainControllerGUI.addMapPane(int x,
int y) |
MapArea |
MainControllerGUI.addMapPane(List<String> file) |
MapArea |
MainControllerGUI.getCurrentMap() |
Modifier and Type | Method and Description |
---|---|
void |
MainControllerGUI.setCurrentMap(MapArea mapArea) |
Modifier and Type | Method and Description |
---|---|
void |
TabMapController.createTab(MapArea map)
Create a new tab with a visualization matrix which correspond to the provided map.
|
void |
TabMapController.redrawMatrix(MapArea map)
Redraw the matrix which is related to the given map.
|
void |
TabMapController.setCurrentTab(MapArea map)
Set the focus on the corresponding tab.
|
void |
HistoricPaneController.updateHistoric(MapArea map)
Get the different action done in the corresponding map and write them.
|
void |
MowerListController.updateMowerList(MapArea currentMap)
Update the list of mower related to the map.
|
Modifier and Type | Method and Description |
---|---|
MapArea |
GUIController.addMapPane(int x,
int y)
Create a tab with an empty matrix.
|
MapArea |
GUIController.addMapPane(List<String> file)
Create a new tab containing the results of file executing.
|
MapArea |
GUIController.getCurrentMap()
Get the currently selected map.
|
Modifier and Type | Method and Description |
---|---|
void |
GUIController.setCurrentMap(MapArea mapArea)
Set the currently selected map.
|
Copyright © 2016. All Rights Reserved.