1 /* SequenceNumber.java */
4 * Class SequenceNumber substitutes the struct SequenceNumber
5 * from C-source code defines in: 'typedefs_defines_rtps.h'
13 * @author Lukas Pokorny (lukas_pokorny@centrum.cz)
14 * @author CTU FEE Prague - Department of Control Engineering (dce.felk.cvut.cz)
15 * @author Project ORTE - OCERA Real Time Ethernet (www.ocera.org)
16 * @author dedication to Kj
20 * This program is free software; you can redistribute it and/or modify
21 * it under the terms of the GNU General Public License as published by
22 * the Free Software Foundation; either version 2 of the License, or
23 * (at your option) any later version.
25 * This program is distributed in the hope that it will be useful,
26 * but WITHOUT ANY WARRANTY; without even the implied warranty of
27 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
28 * GNU General Public License for more details.
32 package org.ocera.orte.types;
35 public class SequenceNumber
42 public SequenceNumber(int high, long low)
46 //System.out.println(":j: instance SequenceNumber created..");
49 public SequenceNumber get()
54 public long getDecimal()
56 long sn = ((long)high << 32) + low;