6 * @author Lukas Pokorny (lukas_pokorny@centrum.cz)
7 * @author CTU FEE Prague - Department of Control Engineering (dce.felk.cvut.cz)
8 * @author Project ORTE - OCERA Real Time Ethernet (www.ocera.org)
9 * @author dedication to Kj
12 * This program is free software; you can redistribute it and/or modify
13 * it under the terms of the GNU General Public License as published by
14 * the Free Software Foundation; either version 2 of the License, or
15 * (at your option) any later version.
17 * This program is distributed in the hope that it will be useful,
18 * but WITHOUT ANY WARRANTY; without even the implied warranty of
19 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
20 * GNU General Public License for more details.
24 package org.ocera.orte.types;
31 private String typeName;
32 private GUID_RTPS senderGUID;
33 private NtpTime localTimeRecv;
34 private NtpTime remoteTimePub;
35 private SequenceNumber sn;
39 //System.out.println(":j: instance of RecvInfo created..");
43 public byte getRecvStatus()
48 public String getTopic()
53 public String getTypeName()
58 public GUID_RTPS getSenderGuid()
60 return this.senderGUID.get();
63 public NtpTime getLocalTimeRecv()
65 return this.localTimeRecv.get();
68 public NtpTime getRemoteTimePub()
70 return this.remoteTimePub.get();
73 public SequenceNumber getSeqNumber()
78 /** only for test purposes */
81 System.out.println(":j: RecvInfo:");
82 System.out.println(":j: recvStatus: " + this.getRecvStatus());
83 System.out.println(":j: topic: " + this.getTopic());
84 System.out.println(":j: type: " + this.getTypeName());
85 System.out.println(":j: senderGuid: " + this.getSenderGuid());
86 System.out.println(":j: localTimerecv: " + this.getLocalTimeRecv());
87 System.out.println(":j: remoteTimePub: " + this.getRemoteTimePub());
88 sn = this.getSeqNumber();
89 System.out.println(":j: seqNr: " + sn.getDecimal());