| Revision 1,
1.1 KB
checked in by bmcguffin, 9 years ago
(diff) |
|
2017/07/18: Uploaded entire prototype to SVN repo.
|
| Rev | 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 | */ |
|---|
| 6 | |
|---|
| 7 | package scriptbuilder.structures.events; |
|---|
| 8 | |
|---|
| 9 | import java.util.ArrayList; |
|---|
| 10 | import scriptbuilder.structures.ScriptEvent; |
|---|
| 11 | |
|---|
| 12 | /** |
|---|
| 13 | * Data model for a radio evaluation event. This is an evaluation event. |
|---|
| 14 | * |
|---|
| 15 | * @author Bryan McGuffin |
|---|
| 16 | */ |
|---|
| 17 | public 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.