Debian Codegraph @

arduino-core/src/processing/app/debug/TargetBoard.java

raw symbols SCIP
1 /*
2 TargetBoard - Represents a hardware board
3 Part of the Arduino project - http://www.arduino.cc/
4
5 Copyright (c) 2014 Cristian Maglie
6
7 This program is free software; you can redistribute it and/or modify
8 it under the terms of the GNU General Public License as published by
9 the Free Software Foundation; either version 2 of the License, or
10 (at your option) any later version.
11
12 This program is distributed in the hope that it will be useful,
13 but WITHOUT ANY WARRANTY; without even the implied warranty of
14 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
15 GNU General Public License for more details.
16
17 You should have received a copy of the GNU General Public License
18 along with this program; if not, write to the Free Software Foundation,
19 Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
20 */
21 package processing.app.debug;
22
23 import java.util.Set;
24
25 import processing.app.helpers.PreferencesMap;
26
27 public interface TargetBoard {
28
29 /**
30 * Get the name of the board.
31 *
32 * @return
33 */
34 public String getName();
35
36 /**
37 * Get the identifier of the board
38 *
39 * @return
40 */
41 public String getId();
42
43 /**
44 * Get the full preferences map of the board
45 *
46 * @return
47 */
48 public PreferencesMap getPreferences();
49
50 /**
51 * Check if the board has a sub menu.
52 *
53 * @param menuId
54 * The menu ID to check
55 * @return
56 */
57 public boolean hasMenu(String menuId);
58
59 /**
60 * Returns the options available on a specific menu
61 *
62 * @param menuId
63 * The menu ID
64 * @return
65 */
66 public PreferencesMap getMenuLabels(String menuId);
67
68 /**
69 * Returns the label of the specified option in the specified menu
70 *
71 * @param menuId
72 * The menu ID
73 * @param selectionId
74 * The option ID
75 * @return
76 */
77 public String getMenuLabel(String menuId, String selectionId);
78
79 public Set<String> getMenuIds();
80
81 /**
82 * Returns the configuration parameters to override (as a PreferenceMap) when
83 * the specified option in the specified menu is selected
84 *
85 * @param menuId
86 * The menu ID
87 * @param selectionId
88 * The option ID
89 * @return
90 */
91 public PreferencesMap getMenuPreferences(String menuId, String selectionId);
92
93 public TargetPlatform getContainerPlatform();
94
95 public String getFQBN();
96
97 }