| Revision 7,
990 bytes
checked in by bmcguffin, 9 years ago
(diff) |
|
Renamed Interfaces in structures.events package from "*Interface" to "I_*"
|
| Rev | Line | |
|---|
| 1 | package scriptbuilder.structures.events; |
|---|
| 2 | |
|---|
| 3 | import java.util.ArrayList; |
|---|
| 4 | |
|---|
| 5 | /** |
|---|
| 6 | * Generic interface for an evaluation event. An evaluation event has some set |
|---|
| 7 | * of expected actions. |
|---|
| 8 | * |
|---|
| 9 | * @author Bryan McGuffin |
|---|
| 10 | */ |
|---|
| 11 | public interface I_EvaluationEvent |
|---|
| 12 | { |
|---|
| 13 | |
|---|
| 14 | /** |
|---|
| 15 | * Get all the expected actions stored in this event. |
|---|
| 16 | * |
|---|
| 17 | * @return a list of expected actions |
|---|
| 18 | */ |
|---|
| 19 | ArrayList<String> getExpectedActions(); |
|---|
| 20 | |
|---|
| 21 | /** |
|---|
| 22 | * Add a new action to the list of expected actions. |
|---|
| 23 | * |
|---|
| 24 | * @param act the new expected action |
|---|
| 25 | */ |
|---|
| 26 | void addAction(String act); |
|---|
| 27 | |
|---|
| 28 | /** |
|---|
| 29 | * Update the description of an existing expected action. |
|---|
| 30 | * |
|---|
| 31 | * @param index The zero-based index of the action to update. |
|---|
| 32 | * @param act the new description of that action |
|---|
| 33 | */ |
|---|
| 34 | void updateAction(int index, String act); |
|---|
| 35 | |
|---|
| 36 | /** |
|---|
| 37 | * Remove an action from the list. |
|---|
| 38 | * |
|---|
| 39 | * @param index the zero-based index of the action to remove |
|---|
| 40 | */ |
|---|
| 41 | void removeAction(int index); |
|---|
| 42 | } |
|---|
Note: See
TracBrowser
for help on using the repository browser.