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

source: tmcsimulator-scriptbuilder/trunk/src/scriptbuilder/structures/events/CMSEvaluationEvent.java @ 7

Revision 7, 1.3 KB checked in by bmcguffin, 9 years ago (diff)

Renamed Interfaces in structures.events package from "*Interface" to "I_*"

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 */
6package scriptbuilder.structures.events;
7
8import java.util.ArrayList;
9import scriptbuilder.structures.ScriptEvent;
10
11/**
12 * Data model for a CMS evaluatiion event. A CMS event has a location, a set of
13 * messages, an ID, and a type. It also is an evaluation event.
14 *
15 * @author Bryan McGuffin
16 */
17public class CMSEvaluationEvent extends ScriptEvent implements I_EvaluationEvent
18{
19
20    public CMSEvaluationEvent()
21    {
22        super(ScriptEventType.CMS_EVAL_EVENT);
23    }
24
25    public String location = "";
26
27    public ArrayList<String> message = new ArrayList<String>();
28
29    public String cmsID = "";
30
31    public String cmsType = "";
32
33    public ArrayList<String> expectedAction = new ArrayList<String>();
34
35    @Override
36    public ArrayList<String> getExpectedActions()
37    {
38        return expectedAction;
39    }
40
41    @Override
42    public void addAction(String act)
43    {
44        expectedAction.add(act);
45    }
46
47    @Override
48    public void updateAction(int index, String act)
49    {
50        expectedAction.set(index, act);
51    }
52
53    @Override
54    public void removeAction(int index)
55    {
56        expectedAction.remove(index);
57    }
58}
Note: See TracBrowser for help on using the repository browser.