]> rtime.felk.cvut.cz Git - orte.git/blob - orte/java/src/org/ocera/orte/types/AppInfo.java
improved JAVA interface from Lukas, update makefiles from msvc from Jan
[orte.git] / orte / java / src / org / ocera / orte / types / AppInfo.java
1 /* AppInfo.java */
2
3 /**
4  * Class AppInfo. 
5  *
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
10  * @version 0.1
11  *
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.
16  *
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.
21  *
22  */
23
24
25 package org.ocera.orte.types;
26 /* TODO - IpAddr!! */
27 //import  java.net.Inet4Address;
28
29 /**
30  * @author luky
31  *
32  * TODO To change the template for this generated type comment go to
33  * Window - Preferences - Java - Code Style - Code Templates
34  */
35
36 /* TODO - naucit se delat s poli JAVA/JNI */
37 public class AppInfo 
38 {
39   private long            hostId;
40   private long            appId;
41 //  private Inet4Address[]  unicastIPList; 
42     private byte            unicastIPcount;     
43 //  private Inet4Address[]  multicastIPList; 
44   private byte            multicastIPcount;
45   private long            metatrafficUniPort;
46   private long            userdataUniPort;
47   private VendorId        vendorId;
48   private ProtocolVersion protocolVersion;
49         
50
51   /* constructor */             
52   public AppInfo()
53   {
54   
55   }
56    
57   public long getHostId()
58   {
59         return this.hostId;
60   }
61
62   public long getAppId()
63   {
64         return this.appId;
65   }
66
67   public byte getUnicastIPcount()
68   {
69         return this.unicastIPcount;
70   }
71   
72   public byte getMulticastIPcount()
73   {
74         return this.multicastIPcount;
75   }
76     
77   public long getMetatrafficUniPort()
78   {
79         return this.metatrafficUniPort;
80   }
81
82   public long getUserdataUniPort()
83   {
84         return this.userdataUniPort;
85   }
86
87   public VendorId getVendorId()
88   {
89         return this.vendorId;
90   }
91
92   public ProtocolVersion getProtocolVersion()
93   {
94         return this.protocolVersion;
95   }
96
97 }