Warning: Can't use blame annotator:
svn blame failed on src/scriptbuilder/structures/events/RadioEvaluationEvent.java: ("Can't find a temporary directory: Internal error", 20014)

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

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

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

RevLine 
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 */
6
7package scriptbuilder.structures.events;
8
9import java.util.ArrayList;
10import scriptbuilder.structures.ScriptEvent;
11
12/**
13 * Data model for a radio evaluation event. This is an evaluation event.
14 *
15 * @author Bryan McGuffin
16 */
17public class RadioEvaluationEvent extends ScriptEvent implements EvaluationEventInterface
18{
19
20    public RadioEvaluationEvent()
21    {
22        super(ScriptEventType.RADIO_EVAL_EVENT);
23    }
24   
25    public ArrayList<String> expectedAction = new ArrayList<String>();
26   
27    @Override
28    public ArrayList<String> getExpectedActions()
29    {
30        return expectedAction;
31    }
32   
33    @Override
34    public void addAction(String act)
35    {
36        expectedAction.add(act);
37    }
38
39    @Override
40    public void updateAction(int index, String act)
41    {
42        expectedAction.set(index, act);
43    }
44   
45    @Override
46    public void removeAction(int index)
47    {
48        expectedAction.remove(index);
49    }
50}
Note: See TracBrowser for help on using the repository browser.