]> rtime.felk.cvut.cz Git - orte.git/blob - orte/java/src/org/ocera/orte/types/VendorId.java
improved JAVA interface from Lukas, update makefiles from msvc from Jan
[orte.git] / orte / java / src / org / ocera / orte / types / VendorId.java
1 /* VendorId.java */
2
3 /**
4   * Class VendorId substitutes the struct VendorId
5   * from C-source code defines in: 'typedefs_defines_rtps.h'
6   *
7   *  typedef struct {
8   *     int8_t        major;
9   *     int8_t        minor;
10   *   } VendorId;
11   *
12   *
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
17   * @version 0.1
18   *
19   *
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.
24   *
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.
29   *
30   */
31
32 package org.ocera.orte.types;
33
34
35 public class VendorId {
36
37    byte           major;
38    byte           minor;
39
40    /* constructor */
41    public VendorId(byte major,byte minor) {
42       this.major = major;
43       this.minor = minor;
44    }
45
46   public String toString()
47   {
48         return (major + "." + minor); 
49   }
50 }
51