/
TransmissionSettings.java
59 lines (48 loc) · 1.45 KB
/
TransmissionSettings.java
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
/*
* DAPNET CORE PROJECT
* Copyright (C) 2016
*
* Daniel Sialkowski
*
* daniel.sialkowski@rwth-aachen.de
*
* Institute of High Frequency Technology
* RWTH AACHEN UNIVERSITY
* Melatener Str. 25
* 52074 Aachen
*/
package org.dapnet.core.transmission;
import java.io.Serializable;
public final class TransmissionSettings implements Serializable {
private static final long serialVersionUID = 6990520510506509511L;
private PagingProtocolSettings pagingProtocolSettings = new PagingProtocolSettings();
private ServerSettings serverSettings = new ServerSettings();
public PagingProtocolSettings getPagingProtocolSettings() {
return pagingProtocolSettings;
}
public ServerSettings getServerSettings() {
return serverSettings;
}
public final class PagingProtocolSettings implements Serializable {
private static final long serialVersionUID = 2535179621136596934L;
private int numberOfSyncLoops = 5;
private int sendSpeed = 1;// 0: 512, 1: 1200, 2:2400
private String activationCode = "0 7 50,0 7 34,0 7 53,0 7 51,0 7 51,0 7 52,0 7 52,0 7 56";
public int getNumberOfSyncLoops() {
return numberOfSyncLoops;
}
public int getSendSpeed() {
return sendSpeed;
}
public String getActivationCode() {
return activationCode;
}
}
public final class ServerSettings implements Serializable {
private static final long serialVersionUID = 5452321606678683312L;
private int port = 43434;
public int getPort() {
return port;
}
}
}