Commit | Line | Data |
---|---|---|
6e512b93 ASL |
1 | /******************************************************************************* |
2 | * Copyright (c) 2009 Ericsson | |
3 | * | |
4 | * All rights reserved. This program and the accompanying materials are | |
5 | * made available under the terms of the Eclipse Public License v1.0 which | |
6 | * accompanies this distribution, and is available at | |
7 | * http://www.eclipse.org/legal/epl-v10.html | |
8 | * | |
9 | * Contributors: | |
10 | * Alvaro Sanchez-Leon (alvsan09@gmail.com) - Initial API and implementation | |
860cadcf | 11 | * Michel Dagenais (michel.dagenais@polymtl.ca) - Reference C implementation, used with permission |
6e512b93 ASL |
12 | *******************************************************************************/ |
13 | package org.eclipse.linuxtools.lttng.ui.views.controlflow.model; | |
14 | ||
15 | import org.eclipse.linuxtools.lttng.ui.views.common.ParamsUpdater; | |
16 | ||
17 | /** | |
18 | * Instantiates the entry point classes to build the data model for this view | |
19 | * | |
20 | * @author alvaro | |
21 | * | |
22 | */ | |
23 | public class FlowModelFactory { | |
24 | // ======================================================================== | |
25 | // Data | |
26 | // ======================================================================== | |
27 | private static FlowProcessContainer procContainer = null; | |
28 | private static ParamsUpdater updater = null; | |
29 | ||
30 | ||
31 | // ======================================================================== | |
32 | // Methods | |
33 | // ======================================================================== | |
34 | /** | |
35 | * Get Process data container | |
36 | * @return | |
37 | */ | |
38 | public static FlowProcessContainer getProcContainer() { | |
39 | if (procContainer == null) { | |
40 | procContainer = new FlowProcessContainer(); | |
41 | } | |
42 | return procContainer; | |
43 | } | |
44 | ||
45 | public static ParamsUpdater getParamsUpdater() { | |
46 | if (updater == null) { | |
47 | updater = new ParamsUpdater(); | |
48 | } | |
49 | return updater; | |
50 | } | |
51 | ||
52 | } |