1   /** 
2    * LOGBack: the reliable, fast and flexible logging library for Java.
3    *
4    * Copyright (C) 1999-2005, QOS.ch, LOGBack.com
5    *
6    * This library is free software, you can redistribute it and/or
7    * modify it under the terms of the GNU Lesser General Public License as
8    * published by the Free Software Foundation.
9    */
10  package ch.qos.logback.classic.control;
11  
12  import java.util.ArrayList;
13  import java.util.List;
14  import java.util.Vector;
15  
16  public class Scenario {
17  
18    private List<ScenarioAction> actionList = new Vector<ScenarioAction>();
19  
20    public void add(ScenarioAction action) {
21      actionList.add(action);
22    }
23  
24    public List<ScenarioAction> getActionList() {
25      return new ArrayList<ScenarioAction>(actionList);
26    }
27  
28    public int size() {
29      return actionList.size();
30    }
31  
32    public ScenarioAction get(int i) {
33      return (ScenarioAction) actionList.get(i);
34    }
35  }