]> rtime.felk.cvut.cz Git - orte.git/blob - orte/java/src/org/ocera/orte/types/SendStatus.java
JORTE: initialize string_pointer variable to make Java compiler happy
[orte.git] / orte / java / src / org / ocera / orte / types / SendStatus.java
1 /* SendStatus.java */
2
3 /**
4   * Class SendStatus
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   * typedef enum ORTESendStatus {
13   *      NEED_DATA        = 0x01,
14   *      CQL              = 0x02
15   *    } ORTESendStatus;
16   *
17   * This program is free software; you can redistribute it and/or modify
18   * it under the terms of the GNU General Public License as published by
19   * the Free Software Foundation; either version 2 of the License, or
20   * (at your option) any later version.
21   *
22   * This program is distributed in the hope that it will be useful,
23   * but WITHOUT ANY WARRANTY; without even the implied warranty of
24   * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
25   * GNU General Public License for more details.
26   *
27   */
28
29 package org.ocera.orte.types;
30
31
32 public class SendStatus
33 {
34   // nemam to pridat k ostat konstantam????????
35   public static final int NEED_DATA = 0x01;
36   public static final int CQL       = 0x02;
37
38   private int value;
39
40   // constructor
41   public SendStatus(int a)
42   {
43     value = a;
44   }
45
46   public boolean needData()
47   {
48     if (this.value == NEED_DATA) return true;
49     return false;
50   }
51
52   public boolean critQueueLevel()
53   {
54     if (this.value == CQL) return true;
55     return false;
56   }
57
58 }