Blame view

src/th/co/ais/ssbsrfc/config/State.java 1.42 KB
1048b156   Suraputt Suntimitr   Template
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
package th.co.ais.ssbsrfc.config;

public class State {
	public String name;
	public String eventType;
	public String nameReq;	//Log, Alarm, Stat, Error
	public String nameRes;	//Log, Alarm, Stat, Error
	public int msgType;
	public int flow = -1;
	
	public State(String _stateName, String _stateEventType, String _stateLASEName)
	{
		this.name = _stateName;
		this.eventType = _stateEventType;
		this.nameReq = _stateLASEName;
	}
	
	public State(String _stateName, String _stateEventType, String _nameReq, String _nameRes, int _msgType)
	{
		this.name = _stateName;
		this.eventType = _stateEventType;
		this.nameReq = _nameReq;
		this.nameRes = _nameRes;
		this.msgType = _msgType;
	}
	
	public State(String _stateName, String _stateEventType, String _nameReq, String _nameRes, int _msgType, int flow)
	{
		this.name = _stateName;
		this.eventType = _stateEventType;
		this.nameReq = _nameReq;
		this.nameRes = _nameRes;
		this.msgType = _msgType;
		this.flow = flow;
	}

	public String getName() {
		return name;
	}

	public void setName(String name) {
		this.name = name;
	}

	public String getEventType() {
		return eventType;
	}

	public void setEventType(String eventType) {
		this.eventType = eventType;
	}

	public String getLASEName() {
		return nameReq;
	}

	public void setLASEName(String lASEName) {
		nameReq = lASEName;
	}

	public int getMsgType() {
		return msgType;
	}

	public void setMsgType(int msgType) {
		this.msgType = msgType;
	}
}