blob: e4e5674f1d0d02fbf876fda84c0bf4d3e6d26ddf (
plain)
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
|
/**
* Copyright (C) 2013 TomTom International B.V.
*
* This Source Code Form is subject to the terms of the Mozilla Public
* License, v. 2.0. If a copy of the MPL was not distributed with this
* file, You can obtain one at http://mozilla.org/MPL/2.0/.
*/
package org.genivi.tpegtecfeed.refimpl;
import org.genivi.trafficinfo.tpeg.tpegfwktypes.ServiceIdentifier;
public class TecUtil {
public static String createMessageId(ServiceIdentifier originatorSID, byte COID, int messageId) {
StringBuilder buf = new StringBuilder();
buf.append(String.valueOf(originatorSID.getSidA()));
buf.append(".");
buf.append(String.valueOf(originatorSID.getSidB()));
buf.append(".");
buf.append(String.valueOf(originatorSID.getSidC()));
buf.append(":");
buf.append(String.valueOf(COID));
buf.append(":");
buf.append(String.valueOf(messageId));
return buf.toString();
}
}
|