| 1 | /* |
| 2 | * Copyright (C) 2007 Steve Ratcliffe |
| 3 | * |
| 4 | * This program is free software; you can redistribute it and/or modify |
| 5 | * it under the terms of the GNU General Public License version 2 as |
| 6 | * published by the Free Software Foundation. |
| 7 | * |
| 8 | * This program is distributed in the hope that it will be useful, |
| 9 | * but WITHOUT ANY WARRANTY; without even the implied warranty of |
| 10 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
| 11 | * GNU General Public License for more details. |
| 12 | * |
| 13 | * |
| 14 | * Author: Steve Ratcliffe |
| 15 | * Create date: 03-Sep-2007 |
| 16 | */ |
| 17 | package uk.me.parabola.util; |
| 18 | |
| 19 | /** |
| 20 | * A map reader that wants to inspect command line arguments. A separate |
| 21 | * interface as its only being used for the test maps at present. Want |
| 22 | * to leave open the possibility of a more self describing interface that |
| 23 | * might extend this one that would allow for a GUI interface. |
| 24 | * |
| 25 | * @author Steve Ratcliffe |
| 26 | */ |
| 27 | public interface Configurable { |
| 28 | |
| 29 | /** |
| 30 | * Used to mark that a reader needs to be configured by command line |
| 31 | * properties. The MapReader will be given the command line properties |
| 32 | * that were set before it is asked to load the map. |
| 33 | * |
| 34 | * @param props The input properties. |
| 35 | */ |
| 36 | public void config(EnhancedProperties props); |
| 37 | } |