Commit | Line | Data |
---|---|---|
970ed795 | 1 | /****************************************************************************** |
3abe9331 | 2 | * Copyright (c) 2000-2015 Ericsson Telecom AB |
970ed795 EL |
3 | * All rights reserved. This program and the accompanying materials |
4 | * are made available under the terms of the Eclipse Public License v1.0 | |
5 | * which accompanies this distribution, and is available at | |
6 | * http://www.eclipse.org/legal/epl-v10.html | |
7 | ******************************************************************************/ | |
8 | package org.eclipse.titan.executor.jni; | |
9 | ||
10 | /** | |
11 | * Possible states of a TC (MTC or PTC). | |
12 | * <p> | |
13 | * The original C++ structure can be found at TTCNv3\mctr2\mctr\MainController.h | |
14 | * */ | |
15 | public enum TcStateEnum { | |
16 | ||
17 | TC_INITIAL(0), | |
18 | TC_IDLE(1), | |
19 | TC_CREATE(2), | |
20 | TC_START(3), | |
21 | TC_STOP(4), | |
22 | ||
23 | TC_KILL(5), | |
24 | TC_CONNECT(6), | |
25 | TC_DISCONNECT(7), | |
26 | TC_MAP(8), | |
27 | TC_UNMAP(9), | |
28 | ||
29 | TC_STOPPING(10), | |
30 | TC_EXITING(11), | |
31 | TC_EXITED(12), | |
32 | MTC_CONTROLPART(13), | |
33 | MTC_TESTCASE(14), | |
34 | ||
35 | MTC_ALL_COMPONENT_STOP(15), | |
36 | MTC_ALL_COMPONENT_KILL(16), | |
37 | MTC_TERMINATING_TESTCASE(17), | |
38 | MTC_PAUSED(18), | |
39 | PTC_FUNCTION(19), | |
40 | ||
41 | PTC_STARTING(20), | |
42 | PTC_STOPPED(21), | |
43 | PTC_KILLING(22), | |
44 | PTC_STOPPING_KILLING(23), | |
45 | PTC_STALE(24), | |
46 | ||
47 | TC_SYSTEM(25); | |
48 | ||
49 | private int value; | |
50 | ||
51 | private TcStateEnum(final int aValue) { | |
52 | value = aValue; | |
53 | } | |
54 | ||
55 | public int getValue() { | |
56 | return value; | |
57 | } | |
58 | } |