source: tmcsimulator-scriptbuilder/trunk/src/scriptbuilder/structures/events/EvaluationEventInterface.java @ 1

Revision 1, 1.2 KB checked in by bmcguffin, 9 years ago (diff)

2017/07/18: Uploaded entire prototype to SVN repo.

Line 
1/*
2 * To change this license header, choose License Headers in Project Properties.
3 * To change this template file, choose Tools | Templates
4 * and open the template in the editor.
5 */
6package scriptbuilder.structures.events;
7
8import java.util.ArrayList;
9
10/**
11 * Generic interface for an evaluation event. An evaluation event has some set
12 * of expected actions.
13 *
14 * @author Bryan McGuffin
15 */
16public interface EvaluationEventInterface
17{
18
19    /**
20     * Get all the expected actions stored in this event.
21     *
22     * @return a list of expected actions
23     */
24    ArrayList<String> getExpectedActions();
25
26    /**
27     * Add a new action to the list of expected actions.
28     *
29     * @param act the new expected action
30     */
31    void addAction(String act);
32
33    /**
34     * Update the description of an existing expected action.
35     *
36     * @param index The zero-based index of the action to update.
37     * @param act the new description of that action
38     */
39    void updateAction(int index, String act);
40
41    /**
42     * Remove an action from the list.
43     *
44     * @param index the zero-based index of the action to remove
45     */
46    void removeAction(int index);
47}
Note: See TracBrowser for help on using the repository browser.